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

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

Issue 2211283004: Drop test-only WebFrameClient params/functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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: 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..1a1dd0e31b7e8b95e31f29b1bdaf0583749ff483 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
@@ -1,18 +1,22 @@
<body>
<script>
-if (window.testRunner) {
+if (window.testRunner)
testRunner.dumpAsText();
- testRunner.dumpResourceLoadCallbacks();
-}
var xhrs = new Array(3);
+var abortCount = 0;
for (var i = 0; i < 3; i++) {
xhrs[i] = new XMLHttpRequest();
- xhrs[i].open("POST", 'resources/empty.txt', true);
+ xhrs[i].onabort = function() {
+ abortCount++;
+ }
+ xhrs[i].open("POST", 'resources/empty.txt', true);
xhrs[i].send(i);
}
for (var i = 0; i < 3; i++)
xhrs[i].abort();
+
+document.body.appendChild(document.createTextNode(abortCount == 3 ? "PASS" : "FAIL"));
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698