diff options
| author | Misko Hevery | 2010-01-18 17:56:08 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-01-18 17:56:08 -0800 |
| commit | 0e566fe6cb41de388df6793b350fb81aaa4a8476 (patch) | |
| tree | dc526a2a5de174f820ef375ffcdb45e32de9cda7 /test | |
| parent | 7b558b5382c864b00392f50fa5095e53f7b486d0 (diff) | |
| download | angular.js-0e566fe6cb41de388df6793b350fb81aaa4a8476.tar.bz2 | |
tweeter demo client
Diffstat (limited to 'test')
| -rw-r--r-- | test/FiltersTest.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/FiltersTest.js b/test/FiltersTest.js index c219f24f..fee59bac 100644 --- a/test/FiltersTest.js +++ b/test/FiltersTest.js @@ -151,3 +151,12 @@ FiltersTest.prototype.testHtml = function() { angular.filter.html("a<b>c</b>d").html); assertTrue(angular.filter.html("a<b>c</b>d") instanceof angular.filter.Meta); }; + +FiltersTest.prototype.testLinky = function() { + assertEquals( + 'a (<a href="http://a">http://a</a>) <a href="http://a">http://a</a> \n <a href="http://1.2/v:~-123">http://1.2/v:~-123</a>. c', + angular.filter.linky("a (http://a) http://a \n http://1.2/v:~-123. c").html); + assertTrue(angular.filter.linky("a") instanceof angular.filter.Meta); +}; + + |
