зеркало из https://github.com/mozilla/gecko-dev.git
Bug 831123 - Disable CSS error reporting by default to improve pageload performance (more test failures) r=me
This commit is contained in:
Родитель
b9f364a05a
Коммит
f743ecc97e
|
@ -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>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче