| 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>
|
|
|