| var iframe = document.createElement("iframe"); |
| document.body.appendChild(iframe); |
| var iframeDocument = iframe.contentDocument; |
| var link = iframeDocument.createElement("link"); |
| link.setAttribute("rel", "stylesheet"); |
| link.setAttribute("href", "does_not_exist.css"); |
| iframeDocument.head.appendChild(link); |
| testRunner.addUserStyleSheet("#test { color: blue: }", true); |
| setTimeout("window.testRunner.notifyDone()", 100); |
| testRunner.waitUntilDone(); |
| testRunner.addUserStyleSheet("#test { color: red: }", true); |
| setTimeout("createIframe()", 0); |
| This test requires DRT. It passes if it doesn't crash. |