Home | History | Annotate | Download | only in assets
      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.layoutTestController) {
     14         layoutTestController.addUserStyleSheet("#test { color: blue: }", true);
     15         setTimeout("window.layoutTestController.notifyDone()", 100);
     16     }
     17 }
     18 
     19 if (window.layoutTestController) {
     20     layoutTestController.dumpAsText();
     21     layoutTestController.waitUntilDone();
     22     layoutTestController.addUserStyleSheet("#test { color: red: }", true);
     23 }
     24 setTimeout("createIframe()", 0);
     25 
     26 </script>
     27 </head>
     28 <body>
     29 This test requires DRT. It passes if it doesn't crash.
     30 </body>
     31 </html>
     32