aboutsummaryrefslogtreecommitdiffstats
path: root/test/WidgetsTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/WidgetsTest.js')
-rw-r--r--test/WidgetsTest.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/WidgetsTest.js b/test/WidgetsTest.js
index c0a2d082..4e3852a5 100644
--- a/test/WidgetsTest.js
+++ b/test/WidgetsTest.js
@@ -3,7 +3,7 @@ WidgetTest = TestCase('WidgetTest');
WidgetTest.prototype.testRequired = function () {
var view = $('<input name="a" ng-required>');
var scope = new Scope({$invalidWidgets:[]});
- var cntl = new TextController(view[0], 'a');
+ var cntl = new TextController(view[0], 'a', angularFormatter.noop);
cntl.updateView(scope);
assertTrue(view.hasClass('ng-validation-error'));
assertEquals("Required Value", view.attr('ng-error'));
@@ -16,7 +16,7 @@ WidgetTest.prototype.testRequired = function () {
WidgetTest.prototype.testValidator = function () {
var view = $('<input name="a" ng-validate="testValidator:\'ABC\'">');
var scope = new Scope({$invalidWidgets:[]});
- var cntl = new TextController(view[0], 'a');
+ var cntl = new TextController(view[0], 'a', angularFormatter.noop);
angular.validator.testValidator = function(value, expect){
return value == expect ? null : "Error text";
};
@@ -44,7 +44,7 @@ WidgetTest.prototype.testValidator = function () {
WidgetTest.prototype.testRequiredValidator = function () {
var view = $('<input name="a" ng-required ng-validate="testValidator:\'ABC\'">');
var scope = new Scope({$invalidWidgets:[]});
- var cntl = new TextController(view[0], 'a');
+ var cntl = new TextController(view[0], 'a', angularFormatter.noop);
angular.validator.testValidator = function(value, expect){
return value == expect ? null : "Error text";
};