aboutsummaryrefslogtreecommitdiffstats
path: root/test/widget/inputSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/widget/inputSpec.js')
-rw-r--r--test/widget/inputSpec.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/widget/inputSpec.js b/test/widget/inputSpec.js
index d8e88d2b..e4df4fa5 100644
--- a/test/widget/inputSpec.js
+++ b/test/widget/inputSpec.js
@@ -334,6 +334,16 @@ describe('input', function() {
});
+ it('should render 0 even if it is a number', function() {
+ compileInput('<input type="text" ng:model="value" />');
+ scope.$apply(function() {
+ scope.value = 0;
+ });
+
+ expect(inputElm.val()).toBe('0');
+ });
+
+
describe('pattern', function() {
it('should validate in-lined pattern', function() {