Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html

Issue 679863002: Revert "Prepare blink to unify definitions of load completion" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698