chore(docs): fix broken IE8 test due to sanitization bug

This commit is contained in:
Matias Niemelä 2013-10-04 13:43:11 -04:00
parent 1c18c93be1
commit 948e8ca325

View file

@ -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('</a>(','</a> (');
expect(output).
toBe('<a href="http://ab/">http://ab/</a> ' +
'(<a href="http://a/">http://a/</a>) ' +
'<a href="http://1.2/v:~-123">http://1.2/v:~-123</a>. c');
@ -46,4 +49,4 @@ describe("errorLinkFilter", function () {
toBe('<a href="http://errors.angularjs.org/very-long-version-string/$injector/nomod?p0=myApp">' +
'http://errors.angularjs.org/very-long-version-string/$inj...</a>');
});
});
});