| 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 8f36cf20f549ba67258f85a8148b6592041354c7..63cfdb14f6eb0196f7da0e31c953e66b50d2cbdd 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,27 +1,25 @@
|
| <!doctype html>
|
| <html>
|
| -<head>
|
| +<body onload="runTest()";>
|
| +<div id='sandbox'></div>
|
| <script>
|
| if (window.testRunner)
|
| testRunner.waitUntilDone();
|
|
|
| -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);
|
| +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() {
|
| setTimeout(function(){
|
| if (window.testRunner)
|
| testRunner.notifyDone();
|
| }, 0);
|
| }
|
| </script>
|
| -</head>
|
| -<body onload="runTest()";>
|
| -<div id='sandbox'></div>
|
| </body>
|
| </html>
|
|
|