Bug 831123 - Disable CSS error reporting by default to improve pageload performance (more test failures) r=me

This commit is contained in:
Mark Finkle 2013-01-17 19:39:23 -05:00
Родитель b9f364a05a
Коммит f743ecc97e
1 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -17,10 +17,15 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=513194
// The use of document.write is deliberate. We are testing for the
// HTML parser to call the CSS parser once and only once when it
// encounters a new <style> element.
function doTest() {
SimpleTest.runTestExpectingConsoleMessages(
function () { document.write("<style>qux { foo : bar; }<\/style>") },
[{ errorMessage: /Unknown property/ }]
);
}
SpecialPowers.pushPrefEnv({'set':[["layout.css.report_errors", true]]},
function() { doTest(); });
</script>
</body>
</html>