diff options
| author | Matias Niemelä | 2013-10-04 13:43:11 -0400 | 
|---|---|---|
| committer | Matias Niemelä | 2013-10-04 13:43:11 -0400 | 
| commit | 948e8ca3250f2e806e6c822fbaee64f8e54c2a53 (patch) | |
| tree | 5df2197af4d5b9a0fe5f0ffe90ed569b4ed02478 | |
| parent | 1c18c93be138c59b5c1b73cae99cc52383272146 (diff) | |
| download | angular.js-948e8ca3250f2e806e6c822fbaee64f8e54c2a53.tar.bz2 | |
chore(docs): fix broken IE8 test due to sanitization bug
| -rw-r--r-- | docs/component-spec/errorLinkFilterSpec.js | 7 | 
1 files changed, 5 insertions, 2 deletions
| 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('</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>');    }); -});
\ No newline at end of file +}); | 
