Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / css-cached-import-rule.html
1 <head>
2 <style>
3 @import url("resources/css-insert-import-rule-red.css");
4 div {
5     width: 100px;
6     height: 100px;
7 }
8 </style>
9
10 <script>
11 function test() {
12     document.styleSheets[0].insertRule('@import url("resources/css-insert-import-rule.css");', 0);
13     if (location.href.indexOf("?") == -1) {
14         if (window.testRunner)
15             testRunner.waitUntilDone();
16         location.href = location.href + "?";
17     } else if (window.testRunner)
18         testRunner.notifyDone();
19 }
20 </script>
21
22 </head>
23 <body onload="test()";>
24 <div></div>
25 </body>