mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
chore(docs): fix broken IE8 test due to sanitization bug
This commit is contained in:
parent
1c18c93be1
commit
948e8ca325
1 changed files with 5 additions and 2 deletions
|
|
@ -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>');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue