diff options
| author | Misko Hevery | 2010-11-07 13:04:48 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-11-07 13:06:55 -0800 |
| commit | 91b6c5f7ffaa19f967547ae3916641fed9e0f04c (patch) | |
| tree | 24be352f7e30519848e1364db5ea2dd6ff87e983 /test | |
| parent | 5be325a0c1a660268d29541bc668d9cb7d641fcb (diff) | |
| download | angular.js-91b6c5f7ffaa19f967547ae3916641fed9e0f04c.tar.bz2 | |
Added documentation for validators.
BACKWARD INCOMPATIBLE: removed ssn validators, since it is unlikely that most people will need it and if they do, they can added it thorough RegExp
Diffstat (limited to 'test')
| -rw-r--r-- | test/ValidatorsTest.js | 6 | ||||
| -rw-r--r-- | test/scenario/dslSpec.js | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/test/ValidatorsTest.js b/test/ValidatorsTest.js index 463e05de..cc77b6da 100644 --- a/test/ValidatorsTest.js +++ b/test/ValidatorsTest.js @@ -69,12 +69,6 @@ ValidatorTest.prototype.testPhone = function() { assertEquals(null, angular.validator.phone("+421 0905 933 297")); }; -ValidatorTest.prototype.testSSN = function() { - var error = "SSN needs to be in 999-99-9999 format."; - assertEquals(angular.validator.ssn("ab"), error); - assertEquals(angular.validator.ssn("123-45-6789"), null); -}; - ValidatorTest.prototype.testURL = function() { var error = "URL needs to be in http://server[:port]/path format."; assertEquals(angular.validator.url("ab"), error); diff --git a/test/scenario/dslSpec.js b/test/scenario/dslSpec.js index f9833e8b..e33cd056 100644 --- a/test/scenario/dslSpec.js +++ b/test/scenario/dslSpec.js @@ -509,7 +509,7 @@ describe("angular.scenario.dsl", function() { it('should change value in textarea', function() { doc.append('<textarea name="test.textarea">something</textarea>'); - var chain = $root.dsl.textarea('test.textarea'); + var chain = $root.dsl.input('test.textarea'); chain.enter('foo'); expect(_jQuery('textarea[name="test.textarea"]').val()).toEqual('foo'); }); |
