aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/inputSpec.js
diff options
context:
space:
mode:
authorIgor Minar2013-07-11 11:58:47 -0700
committerIgor Minar2013-07-11 11:58:47 -0700
commit338264b5f6964999d36b4889fed95464a1f0fa84 (patch)
tree5cd742681ff428f55a668238cf92115c72110701 /test/ng/directive/inputSpec.js
parent19b51caa2c19f5c622c08d37a04266794950b91e (diff)
downloadangular.js-338264b5f6964999d36b4889fed95464a1f0fa84.tar.bz2
test(ngPattern): fix disabled test
Diffstat (limited to 'test/ng/directive/inputSpec.js')
-rw-r--r--test/ng/directive/inputSpec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ng/directive/inputSpec.js b/test/ng/directive/inputSpec.js
index 275324f5..ff504872 100644
--- a/test/ng/directive/inputSpec.js
+++ b/test/ng/directive/inputSpec.js
@@ -516,11 +516,11 @@ describe('input', function() {
});
- xit('should throw an error when scope pattern can\'t be found', function() {
- compileInput('<input type="text" ng-model="foo" ng-pattern="fooRegexp" />');
-
- expect(function() { changeInputValueTo('xx'); }).
- toThrow('Expected fooRegexp to be a RegExp but was undefined');
+ it('should throw an error when scope pattern can\'t be found', function() {
+ expect(function() {
+ compileInput('<input type="text" ng-model="foo" ng-pattern="fooRegexp" />');
+ scope.$apply();
+ }).toThrow('Expected fooRegexp to be a RegExp but was undefined');
});
});