OLD | NEW |
1 <?xml-stylesheet href="resources/small.css" title="style" type="text/css"?> | 1 <?xml-stylesheet href="resources/small.css" title="style" type="text/css"?> |
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
3 <div id="result">FAIL</div> | 3 <div id="result">FAIL</div> |
4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 } | 8 } |
9 onload = function() { | 9 onload = function() { |
10 document.documentElement.appendChild(document.styleSheets[0].ownerNode); | 10 document.documentElement.appendChild(document.styleSheets[0].ownerNode); |
11 // Note: xml stylesheet is only valid when its parent is the document | 11 // Note: xml stylesheet is only valid when its parent is the document |
12 if (document.styleSheets.length == 0) | 12 if (document.styleSheets.length == 0) |
13 document.getElementById('result').innerText = 'PASS'; | 13 document.getElementById('result').innerText = 'PASS'; |
14 if (window.testRunner) | 14 if (window.testRunner) |
15 testRunner.notifyDone(); | 15 testRunner.notifyDone(); |
16 }; | 16 }; |
17 </script> | 17 </script> |
18 </html> | 18 </html> |
OLD | NEW |