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

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

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add document.close() to scroll-left-while-loading.html 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 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>

Powered by Google App Engine
This is Rietveld 408576698