From 948e8ca3250f2e806e6c822fbaee64f8e54c2a53 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Fri, 4 Oct 2013 13:43:11 -0400 Subject: chore(docs): fix broken IE8 test due to sanitization bug --- docs/component-spec/errorLinkFilterSpec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'docs/component-spec') diff --git a/docs/component-spec/errorLinkFilterSpec.js b/docs/component-spec/errorLinkFilterSpec.js index 36f5f46b..1b3cbf73 100644 --- a/docs/component-spec/errorLinkFilterSpec.js +++ b/docs/component-spec/errorLinkFilterSpec.js @@ -13,7 +13,10 @@ describe("errorLinkFilter", function () { }); it('should find links in text and linkify them', function () { - expect(errorLinkFilter("http://ab/ (http://a/) http://1.2/v:~-123. c")). + var output = errorLinkFilter("http://ab/ (http://a/) http://1.2/v:~-123. c"); + //temporary fix for IE8 sanitization whitespace bug + output = output.replace('(',' ('); + expect(output). toBe('http://ab/ ' + '(http://a/) ' + 'http://1.2/v:~-123. c'); @@ -46,4 +49,4 @@ describe("errorLinkFilter", function () { toBe('' + 'http://errors.angularjs.org/very-long-version-string/$inj...'); }); -}); \ No newline at end of file +}); -- cgit v1.2.3