aboutsummaryrefslogtreecommitdiffstats
path: root/test/BinderTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/BinderTest.js')
-rw-r--r--test/BinderTest.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/BinderTest.js b/test/BinderTest.js
index 450100e4..a45183a4 100644
--- a/test/BinderTest.js
+++ b/test/BinderTest.js
@@ -767,6 +767,14 @@ BinderTest.prototype.testValidateForm = function() {
c.binder.updateView();
assertEquals(3, c.scope.get("$invalidWidgets.length"));
+ c.scope.set('name', '');
+ c.binder.updateView();
+ assertEquals(3, c.scope.get("$invalidWidgets.length"));
+
+ c.scope.set('name', ' ');
+ c.binder.updateView();
+ assertEquals(3, c.scope.get("$invalidWidgets.length"));
+
c.scope.set('name', 'abc');
c.binder.updateView();
assertEquals(2, c.scope.get("$invalidWidgets.length"));