aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMisko Hevery2010-02-11 09:57:42 -0800
committerMisko Hevery2010-02-11 09:57:42 -0800
commitb2a8a089b6c31c8ff176c2483f659caae4f71afb (patch)
treeb4b0ccb1598dc824674eff5b19f63af47dc8fbe5 /test
parent9d566fe98c3fa0091efef4adb0178f063da74f7c (diff)
downloadangular.js-b2a8a089b6c31c8ff176c2483f659caae4f71afb.tar.bz2
make validator more leniant for errors which are false instead of null
Diffstat (limited to 'test')
-rw-r--r--test/WidgetsTest.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/WidgetsTest.js b/test/WidgetsTest.js
index 4e3852a5..313d7372 100644
--- a/test/WidgetsTest.js
+++ b/test/WidgetsTest.js
@@ -18,7 +18,7 @@ WidgetTest.prototype.testValidator = function () {
var scope = new Scope({$invalidWidgets:[]});
var cntl = new TextController(view[0], 'a', angularFormatter.noop);
angular.validator.testValidator = function(value, expect){
- return value == expect ? null : "Error text";
+ return value == expect ? false : "Error text";
};
scope.set('a', '');