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

Side by Side 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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <body onload="runTest()";>
4 <div id='sandbox'></div>
4 <script> 5 <script>
5 if (window.testRunner) 6 if (window.testRunner)
6 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
7 8
9 var sandbox = document.getElementById('sandbox');
10 var host = document.createElement('p');
11 var shadowRoot = host.createShadowRoot();
12 shadowRoot.innerHTML = '<style>div { width: 100px; height: 100px; }</style><div> </div>';
13 sandbox.appendChild(host);
14 document.body.offsetLeft;
15 shadowRoot.styleSheets[0].insertRule('@import url(../resources/css-insert-import -rule.css);', 0);
16
8 function runTest() { 17 function runTest() {
9 var sandbox = document.getElementById('sandbox');
10 var host = document.createElement('p');
11 var shadowRoot = host.createShadowRoot();
12 shadowRoot.innerHTML = '<style>div { width: 100px; height: 100px; }</style>< div></div>';
13 sandbox.appendChild(host);
14 document.body.offsetLeft;
15 shadowRoot.styleSheets[0].insertRule('@import url(../resources/css-insert-im port-rule.css);', 0);
16
17 setTimeout(function(){ 18 setTimeout(function(){
18 if (window.testRunner) 19 if (window.testRunner)
19 testRunner.notifyDone(); 20 testRunner.notifyDone();
20 }, 0); 21 }, 0);
21 } 22 }
22 </script> 23 </script>
23 </head>
24 <body onload="runTest()";>
25 <div id='sandbox'></div>
26 </body> 24 </body>
27 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698