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 // 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 // HTML parser to call the CSS parser once and only once when it
// encounters a new <style> element. // encounters a new <style> element.
SimpleTest.runTestExpectingConsoleMessages( function doTest() {
function () { document.write("<style>qux { foo : bar; }<\/style>") }, SimpleTest.runTestExpectingConsoleMessages(
[{ errorMessage: /Unknown property/ }] function () { document.write("<style>qux { foo : bar; }<\/style>") },
); [{ errorMessage: /Unknown property/ }]
);
}
SpecialPowers.pushPrefEnv({'set':[["layout.css.report_errors", true]]},
function() { doTest(); });
</script> </script>
</body> </body>
</html> </html>