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

Unified Diff: third_party/WebKit/LayoutTests/fast/parser/close-while-stopping.html

Issue 1475863005: [Async][WIP] Call FrameLoader::checkCompleted() asynchronously to avoid sync body.onload() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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: third_party/WebKit/LayoutTests/fast/parser/close-while-stopping.html
diff --git a/third_party/WebKit/LayoutTests/fast/parser/close-while-stopping.html b/third_party/WebKit/LayoutTests/fast/parser/close-while-stopping.html
index 1239e922c0b6401303206790ec9d3ac6d0f772d1..a676b9b92133deb2293ab6e1eb293c5a2fd7a5d8 100644
--- a/third_party/WebKit/LayoutTests/fast/parser/close-while-stopping.html
+++ b/third_party/WebKit/LayoutTests/fast/parser/close-while-stopping.html
@@ -7,6 +7,7 @@
<iframe id="aframe"></iframe>
<script>
description("Test that explicitly closing the document while it is already closing doesn't result in running the end twice.");
+jsTestIsAsync = true;
var frameDocument = document.getElementById("aframe").contentDocument;
frameDocument.open();
@@ -14,6 +15,9 @@ frameDocument.onreadystatechange = function()
{
debug(frameDocument.readyState);
frameDocument.close();
+ if (frameDocument.readyState === 'complete') {
+ setTimeout(finishJSTest, 100);
+ }
};
frameDocument.write("<script>document.close()</scr"+"ipt>");
</script>

Powered by Google App Engine
This is Rietveld 408576698