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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort-timer.html

Issue 950813002: [XHR] Add layout tests to see the cause of a flaky test. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort-timer.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort.html b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort-timer.html
similarity index 89%
copy from LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort.html
copy to LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort-timer.html
index 0f0b4f38b47aa270d1437e38b7f55764c44eb4af..185982cc89e7fd7441518672d4efbe4d6da4e7a1 100644
--- a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort.html
+++ b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort-timer.html
@@ -8,10 +8,10 @@ xhr.responseType = 'document';
xhr.onreadystatechange = function () {
if (this.readyState == XMLHttpRequest.LOADING) {
xhr.abort();
- requestAnimationFrame(function() {
+ setTimeout(function() {
debug("PASS if no crash or leak.");
testRunner.notifyDone();
- });
+ }, 0);
}
};

Powered by Google App Engine
This is Rietveld 408576698