2012-11-16 18:53:32 -08:00
|
|
|
<!doctype html>
|
2009-11-06 05:06:48 -08:00
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=513194
|
|
|
|
-->
|
|
|
|
<head>
|
2012-03-24 04:34:42 -07:00
|
|
|
<meta charset="utf-8">
|
2009-11-06 05:06:48 -08:00
|
|
|
<title>Test for Bug 513194</title>
|
2012-11-16 18:53:32 -08:00
|
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
|
2009-11-06 05:06:48 -08:00
|
|
|
</head>
|
|
|
|
<body>
|
2012-11-16 18:53:32 -08:00
|
|
|
<a target="_blank"
|
|
|
|
href="https://bugzilla.mozilla.org/show_bug.cgi?id=631615"
|
|
|
|
>Mozilla Bug 513194</a>
|
|
|
|
<script>
|
|
|
|
// 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/ }]
|
|
|
|
);
|
2009-11-06 05:06:48 -08:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|