зеркало из 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
|
||||
// HTML parser to call the CSS parser once and only once when it
|
||||
// encounters a new <style> element.
|
||||
SimpleTest.runTestExpectingConsoleMessages(
|
||||
function () { document.write("<style>qux { foo : bar; }<\/style>") },
|
||||
[{ errorMessage: /Unknown property/ }]
|
||||
);
|
||||
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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче