OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script> | |
4 function createIframe() | |
5 { | |
6 var iframe = document.createElement("iframe"); | |
7 document.body.appendChild(iframe); | |
8 var iframeDocument = iframe.contentDocument; | |
9 var link = iframeDocument.createElement("link"); | |
10 link.setAttribute("rel", "stylesheet"); | |
11 link.setAttribute("href", "does_not_exist.css"); | |
12 iframeDocument.head.appendChild(link); | |
13 if (window.testRunner) { | |
14 testRunner.addUserStyleSheet("#test { color: blue: }", true); | |
15 setTimeout("window.testRunner.notifyDone()", 100); | |
16 } | |
17 } | |
18 | |
19 if (window.testRunner) { | |
20 testRunner.dumpAsText(); | |
21 testRunner.waitUntilDone(); | |
22 testRunner.addUserStyleSheet("#test { color: red: }", true); | |
23 } | |
24 window.onload = createIframe; | |
25 | |
26 </script> | |
27 </head> | |
28 <body> | |
29 This test requires DRT. It passes if it doesn't crash. | |
30 </body> | |
31 </html> | |
OLD | NEW |