aboutsummaryrefslogtreecommitdiffstats
path: root/src/filters.js
diff options
context:
space:
mode:
authorMisko Hevery2010-11-07 13:04:48 -0800
committerMisko Hevery2010-11-07 13:06:55 -0800
commit91b6c5f7ffaa19f967547ae3916641fed9e0f04c (patch)
tree24be352f7e30519848e1364db5ea2dd6ff87e983 /src/filters.js
parent5be325a0c1a660268d29541bc668d9cb7d641fcb (diff)
downloadangular.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 'src/filters.js')
-rw-r--r--src/filters.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filters.js b/src/filters.js
index 206da240..14d0dff8 100644
--- a/src/filters.js
+++ b/src/filters.js
@@ -343,7 +343,7 @@ snippet&lt;/p&gt;</textarea>
});
it('should update', function(){
- textarea('snippet').enter('new <b>text</b>');
+ input('snippet').enter('new <b>text</b>');
expect(using('#html-filter').binding('snippet | html')).toBe('new <b>text</b>');
expect(using('#escaped-html').binding('snippet')).toBe("new &lt;b&gt;text&lt;/b&gt;");
expect(using('#html-unsafe-filter').binding("snippet | html:'unsafe'")).toBe('new <b>text</b>');
@@ -415,7 +415,7 @@ and one more: ftp://127.0.0.1/.</textarea>
});
it('should update', function(){
- textarea('snippet').enter('new http://link.');
+ input('snippet').enter('new http://link.');
expect(using('#linky-filter').binding('snippet | linky')).
toBe('new <a href="http://link">http://link</a>.');
expect(using('#escaped-html').binding('snippet')).toBe('new http://link.');