From 91b6c5f7ffaa19f967547ae3916641fed9e0f04c Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sun, 7 Nov 2010 13:04:48 -0800 Subject: 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 --- src/filters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/filters.js') 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</p> }); it('should update', function(){ - textarea('snippet').enter('new text'); + input('snippet').enter('new text'); expect(using('#html-filter').binding('snippet | html')).toBe('new text'); expect(using('#escaped-html').binding('snippet')).toBe("new <b>text</b>"); expect(using('#html-unsafe-filter').binding("snippet | html:'unsafe'")).toBe('new text'); @@ -415,7 +415,7 @@ and one more: ftp://127.0.0.1/. }); 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 http://link.'); expect(using('#escaped-html').binding('snippet')).toBe('new http://link.'); -- cgit v1.2.3