diff --git a/tests/js/doctools.js b/tests/js/doctools.js index 37064334a..54246f635 100644 --- a/tests/js/doctools.js +++ b/tests/js/doctools.js @@ -62,19 +62,21 @@ describe('jQuery extensions', function() { jQuery(document.body).append(highlightTestSvg); highlightTestSvg.highlightText(cyrillicTerm, 'highlighted'); highlightTestSvg.highlightText(umlautTerm, 'highlighted'); + /* Note wild cards and ``toMatch``; allowing for some variability + seems to be necessary, even between different FF versions */ var expectedSvgString = '' + - '' + + '' + '' + - '' + + '' + '' + - '' + + '' + 'This is the ' + 'шеллы and ' + 'Gänsefüßchen test!' + '' + ''; - expect(highlightTestSvg.html()).toEqual(expectedSvgString); + expect(highlightTestSvg.html()).toMatch(new RegExp(expectedSvgString)); }); });