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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <body> 1 <body>
2 <script> 2 <script>
3 if (window.testRunner) { 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 testRunner.dumpResourceLoadCallbacks();
6 }
7 5
8 var xhrs = new Array(3); 6 var xhrs = new Array(3);
7 var abortCount = 0;
9 for (var i = 0; i < 3; i++) { 8 for (var i = 0; i < 3; i++) {
10 xhrs[i] = new XMLHttpRequest(); 9 xhrs[i] = new XMLHttpRequest();
11 xhrs[i].open("POST", 'resources/empty.txt', true); 10 xhrs[i].onabort = function() {
11 abortCount++;
12 }
13 xhrs[i].open("POST", 'resources/empty.txt', true);
12 xhrs[i].send(i); 14 xhrs[i].send(i);
13 } 15 }
14 16
15 for (var i = 0; i < 3; i++) 17 for (var i = 0; i < 3; i++)
16 xhrs[i].abort(); 18 xhrs[i].abort();
19
20 document.body.appendChild(document.createTextNode(abortCount == 3 ? "PASS" : "FA IL"));
17 </script> 21 </script>
18 </body> 22 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698