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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.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/http/tests/xmlhttprequest/reentrant-cancel.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html b/LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html
index 2916ae6a1b1992c839560ed33fd5fd77523c6424..3b3f976cd20375b600e9ac9e5ff4a23b076fca29 100644
--- a/LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html
+++ b/LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html
@@ -2,8 +2,10 @@
<html>
<body>
<script>
-if (window.testRunner)
+if (window.testRunner) {
testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
function log(str)
{
@@ -23,6 +25,12 @@ var xhr = new XMLHttpRequest;
function sendXHR()
{
xhr.open("GET", "", true);
+ xhr.onreadystatechange = function() {
+ if (xhr.readyState != 4)
+ return;
+ if (window.testRunner)
+ testRunner.notifyDone();
+ };
xhr.send();
}
window.addEventListener("DOMSubtreeModified", sendXHR);

Powered by Google App Engine
This is Rietveld 408576698