css-cached-bom.html revision fd5c6425ce58eb75211be7718d5dee960842a37e
1<script>
2if (window.layoutTestController) {
3    layoutTestController.dumpAsText();
4    layoutTestController.waitUntilDone();
5}
6function frameLoaded() {
7    if (document.getElementById('f').contentDocument.styleSheets[0].cssRules[0].selectorText == "#success::before")
8        document.getElementById('result').innerHTML = "SUCCESS";
9    if (window.layoutTestController)
10        layoutTestController.notifyDone();
11}
12</script>
13<link rel=stylesheet href=resources/utf-16-little-endian.css>
14<!-- This halts the parsing until stylesheet has been loaded -->
15<script src=does_not_exists.js></script>
16<div>Test that stylesheet with BOM is correctly parsed when loaded from cache. You should see word SUCCESS below.</div>
17<!-- Load the stylesheet to a different frame. This will use a cached copy of the stylesheet. -->
18<iframe id=f src=resources/css-cached-bom-frame.html></iframe>
19<div id=result>FAIL</div>
20
21