Index: LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html |
diff --git a/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html b/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html |
index 63cfdb14f6eb0196f7da0e31c953e66b50d2cbdd..8f36cf20f549ba67258f85a8148b6592041354c7 100644 |
--- a/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html |
+++ b/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html |
@@ -1,25 +1,27 @@ |
<!doctype html> |
<html> |
-<body onload="runTest()";> |
-<div id='sandbox'></div> |
+<head> |
<script> |
if (window.testRunner) |
testRunner.waitUntilDone(); |
-var sandbox = document.getElementById('sandbox'); |
-var host = document.createElement('p'); |
-var shadowRoot = host.createShadowRoot(); |
-shadowRoot.innerHTML = '<style>div { width: 100px; height: 100px; }</style><div></div>'; |
-sandbox.appendChild(host); |
-document.body.offsetLeft; |
-shadowRoot.styleSheets[0].insertRule('@import url(../resources/css-insert-import-rule.css);', 0); |
- |
function runTest() { |
+ var sandbox = document.getElementById('sandbox'); |
+ var host = document.createElement('p'); |
+ var shadowRoot = host.createShadowRoot(); |
+ shadowRoot.innerHTML = '<style>div { width: 100px; height: 100px; }</style><div></div>'; |
+ sandbox.appendChild(host); |
+ document.body.offsetLeft; |
+ shadowRoot.styleSheets[0].insertRule('@import url(../resources/css-insert-import-rule.css);', 0); |
+ |
setTimeout(function(){ |
if (window.testRunner) |
testRunner.notifyDone(); |
}, 0); |
} |
</script> |
+</head> |
+<body onload="runTest()";> |
+<div id='sandbox'></div> |
</body> |
</html> |