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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/cache/cancel-multiple-post-xhrs.html

Issue 1967063002: Cancel asynchronously in allClientsAndObserversRemoved() for Raw type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp1923003002_2
Patch Set: Fix tests. Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/cache/cancel-multiple-post-xhrs.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/cache/cancel-multiple-post-xhrs.html b/third_party/WebKit/LayoutTests/http/tests/cache/cancel-multiple-post-xhrs.html
index f14b2d4d297b4d6df7a00a2c27f3dec52d1865c0..204c085e6486d35a99731f47417e7308d8c61271 100644
--- a/third_party/WebKit/LayoutTests/http/tests/cache/cancel-multiple-post-xhrs.html
+++ b/third_party/WebKit/LayoutTests/http/tests/cache/cancel-multiple-post-xhrs.html
@@ -2,6 +2,7 @@
<script>
if (window.testRunner) {
testRunner.dumpAsText();
+ testRunner.waitUntilDone();
testRunner.dumpResourceLoadCallbacks();
}
@@ -14,5 +15,11 @@ for (var i = 0; i < 3; i++) {
for (var i = 0; i < 3; i++)
xhrs[i].abort();
+
+if (window.testRunner) {
+ // We wait for XHRs to be cancelled and log messages to be output because
+ // XHRs are cancelled asynchronously.
+ setTimeout(function() { testRunner.notifyDone(); }, 0);
+}
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698