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

Unified Diff: LayoutTests/fast/parser/adoption-agency-crash-01.html

Issue 695943002: Reland "Prepare blink to unify definitions of load completion" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/parser/adoption-agency-crash-01.html
diff --git a/LayoutTests/fast/parser/adoption-agency-crash-01.html b/LayoutTests/fast/parser/adoption-agency-crash-01.html
index 641757133ae84816f1b8b756f8933171d74c5236..af69ec72b699f04e49dc4c2bdb98a8e5091c659b 100644
--- a/LayoutTests/fast/parser/adoption-agency-crash-01.html
+++ b/LayoutTests/fast/parser/adoption-agency-crash-01.html
@@ -2,5 +2,10 @@
if (window.testRunner)
testRunner.dumpAsText();
-document.write('<a><p><iframe onload="document.write(\'<script>void(0)<\/script></a>\');"></iframe><script>document.body.innerHTML = \'PASS\';<\/script>');
+function finish() {
+ document.write('<script>void(0)<\/script></a>');
+ document.close();
+};
+
+document.write('<a><p><iframe onload="document.open(); setTimeout(finish, 0);"></iframe><script>document.body.innerHTML = \'PASS\';<\/script>');
</script>

Powered by Google App Engine
This is Rietveld 408576698