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

Unified Diff: LayoutTests/fast/dom/shadow/import-rule-in-shadow-tree-needs-document-style-recalc.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/shadow/import-rule-in-shadow-tree-needs-document-style-recalc.html
diff --git a/LayoutTests/fast/dom/shadow/import-rule-in-shadow-tree-needs-document-style-recalc.html b/LayoutTests/fast/dom/shadow/import-rule-in-shadow-tree-needs-document-style-recalc.html
index 71a3d9a931e146446a4a73bb031f55fa90c0e640..94e212554f8cf5de8bbcf98fb3ec1478b529c306 100644
--- a/LayoutTests/fast/dom/shadow/import-rule-in-shadow-tree-needs-document-style-recalc.html
+++ b/LayoutTests/fast/dom/shadow/import-rule-in-shadow-tree-needs-document-style-recalc.html
@@ -1,4 +1,5 @@
<!DOCTYPE html>
+<script src="../../../resources/run-after-display.js"></script>
<script>
onload = function() {
var host = document.getElementById('host');
@@ -25,6 +26,13 @@ onload = function() {
// Instead, use internals.updateStyleAndReturnAffectedElementCount
// (to emulate @import's network delay).
internals.updateStyleAndReturnAffectedElementCount();
+
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+ runAfterDisplay(function() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
}
</script>
<div id="host"></div>

Powered by Google App Engine
This is Rietveld 408576698