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

Side by Side Diff: LayoutTests/fast/html/imports/import-element-removed-flag.html

Issue 279463002: HTML Imports: Fix yet another FOUC (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script src="../../../resources/js-test.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 <head> 4 <head>
5 <link id="staticImportLink" rel="import" href="resources/hello.html"> 5 <link id="staticImportLink" rel="import" href="resources/hello.html">
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 description("This tests 'element removed flag' behavior defined in https://dvcs. w3.org/hg/webcomponents/raw-file/tip/spec/imports/index.html#dfn-element-removed -flag."); 9 description("This tests 'element removed flag' behavior defined in https://dvcs. w3.org/hg/webcomponents/raw-file/tip/spec/imports/index.html#dfn-element-removed -flag.");
10 window.jsTestIsAsync = true; 10 window.jsTestIsAsync = true;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return; 62 return;
63 } 63 }
64 64
65 shouldBeNull("dynamicImportEager.import"); 65 shouldBeNull("dynamicImportEager.import");
66 document.head.appendChild(dynamicImportEager); 66 document.head.appendChild(dynamicImportEager);
67 shouldBeNonNull("dynamicImportEager.import"); 67 shouldBeNonNull("dynamicImportEager.import");
68 68
69 window.requestAnimationFrame(function() { finishJSTest(); }, 0); 69 window.requestAnimationFrame(function() { finishJSTest(); }, 0);
70 } 70 }
71 71
72 window.setTimeout(check, 0); 72 setTimeout(check, 0);
esprehn 2014/05/08 19:13:29 What's this setTimeout waiting for?
Hajime Morrita 2014/05/08 19:42:40 This is a busy loop. I did this because the load e
73 } 73 }
74 74
75 testStaticImport(); 75 testStaticImport();
76 testDynamicImport(); 76 testDynamicImport();
77 77
78 </script> 78 </script>
79 </body> 79 </body>
80 </html> 80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698