From 04450c48dfea065e1c9e4ab8adad94993ed1b037 Mon Sep 17 00:00:00 2001 From: Anna Vester Date: Sat, 10 Nov 2012 14:37:17 -0600 Subject: feat($sanitize): support telephone links Per http://www.ietf.org/rfc/rfc3966.txt support tel: links --- test/ngSanitize/sanitizeSpec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ngSanitize/sanitizeSpec.js b/test/ngSanitize/sanitizeSpec.js index b4fd8a2a..150072d9 100644 --- a/test/ngSanitize/sanitizeSpec.js +++ b/test/ngSanitize/sanitizeSpec.js @@ -188,7 +188,7 @@ describe('HTML', function() { expect(html).toEqual('
'); }); - describe('explicitly dissallow', function() { + describe('explicitly disallow', function() { it('should not allow attributes', function() { writer.start('div', {id:'a', name:'a', style:'a'}); expect(html).toEqual('
'); @@ -230,10 +230,11 @@ describe('HTML', function() { expect(isUri('https://abc')).toBeTruthy(); expect(isUri('ftp://abc')).toBeTruthy(); expect(isUri('mailto:me@example.com')).toBeTruthy(); + expect(isUri('tel:123-123-1234')).toBeTruthy(); expect(isUri('#anchor')).toBeTruthy(); }); - it('should not be UIR', function() { + it('should not be URI', function() { expect(isUri('')).toBeFalsy(); expect(isUri('javascript:alert')).toBeFalsy(); }); -- cgit v1.2.3