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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.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/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..b6bb5cd0f2bed9749cfd85b3bfa9d2e23fb74f52 100644
--- a/LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html
+++ b/LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html
@@ -23,6 +23,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