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

Unified Diff: LayoutTests/fast/loader/create-frame-in-DOMContentLoaded.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/loader/create-frame-in-DOMContentLoaded.html
diff --git a/LayoutTests/fast/loader/create-frame-in-DOMContentLoaded.html b/LayoutTests/fast/loader/create-frame-in-DOMContentLoaded.html
index 2e3d2a141fd2a96a8b3539d6c3dc496ada069ca3..8aa074c472fc8d2a60f40ac5d9b84df2d78245fe 100644
--- a/LayoutTests/fast/loader/create-frame-in-DOMContentLoaded.html
+++ b/LayoutTests/fast/loader/create-frame-in-DOMContentLoaded.html
@@ -14,6 +14,8 @@ function handleDOMContentLoadedEvent()
frame = document.createElement("iframe");
document.body.appendChild(frame);
print("B) Exiting DOMContentLoaded event handler function.");
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function handleLoadEvent()
{
@@ -22,8 +24,10 @@ function handleLoadEvent()
print("D) Exiting load event handler function.");
print("Test passed if messages A, B, C, D were all in order and there was no crash.");
}
-if (window.testRunner)
+if (window.testRunner) {
testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
addEventListener("load", handleLoadEvent);
addEventListener("DOMContentLoaded", handleDOMContentLoadedEvent);
</script>
« no previous file with comments | « LayoutTests/fast/html/imports/import-destroy-stress.html ('k') | LayoutTests/fast/loader/external-script-URL-location.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698