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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.waitUntilDone();
5 testRunner.dumpResourceLoadCallbacks(); 6 testRunner.dumpResourceLoadCallbacks();
6 } 7 }
7 8
8 var xhrs = new Array(3); 9 var xhrs = new Array(3);
9 for (var i = 0; i < 3; i++) { 10 for (var i = 0; i < 3; i++) {
10 xhrs[i] = new XMLHttpRequest(); 11 xhrs[i] = new XMLHttpRequest();
11 xhrs[i].open("POST", 'resources/empty.txt', true); 12 xhrs[i].open("POST", 'resources/empty.txt', true);
12 xhrs[i].send(i); 13 xhrs[i].send(i);
13 } 14 }
14 15
15 for (var i = 0; i < 3; i++) 16 for (var i = 0; i < 3; i++)
16 xhrs[i].abort(); 17 xhrs[i].abort();
18
19 if (window.testRunner) {
20 // We wait for XHRs to be cancelled and log messages to be output because
21 // XHRs are cancelled asynchronously.
22 setTimeout(function() { testRunner.notifyDone(); }, 0);
23 }
17 </script> 24 </script>
18 </body> 25 </body>
OLDNEW
« 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