1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/test/test_bug513194.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +<!doctype html> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=513194 1.8 +--> 1.9 +<head> 1.10 + <meta charset="utf-8"> 1.11 + <title>Test for Bug 513194</title> 1.12 + <script src="/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <link rel="stylesheet" href="/tests/SimpleTest/test.css"> 1.14 +</head> 1.15 +<body> 1.16 +<a target="_blank" 1.17 + href="https://bugzilla.mozilla.org/show_bug.cgi?id=631615" 1.18 + >Mozilla Bug 513194</a> 1.19 +<script> 1.20 +// The use of document.write is deliberate. We are testing for the 1.21 +// HTML parser to call the CSS parser once and only once when it 1.22 +// encounters a new <style> element. 1.23 + 1.24 +SimpleTest.runTestExpectingConsoleMessages( 1.25 + function () { document.write("<style>qux { foo : bar; }<\/style>") }, 1.26 + [{ errorMessage: /Unknown property/ }] 1.27 +); 1.28 +</script> 1.29 +</body> 1.30 +</html> 1.31 +