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

Side by Side Diff: LayoutTests/fast/events/event-fire-order.html

Issue 60203010: XHR.abort(): no event dispatching in completed/non-started states. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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 <p>This page tests event listener fire order for a few objects that had it wrong in the past.</p> 1 <p>This page tests event listener fire order for a few objects that had it wrong in the past.</p>
2 <p>If the test passes, you'll see a series of PASS messages below.</p> 2 <p>If the test passes, you'll see a series of PASS messages below.</p>
3 3
4 <pre id="console"></pre> 4 <pre id="console"></pre>
5 5
6 <div id="div"></div> 6 <div id="div"></div>
7 7
8 <script> 8 <script>
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.dumpAsText(); 10 testRunner.dumpAsText();
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 function testXHRUpload() 89 function testXHRUpload()
90 { 90 {
91 reset(); 91 reset();
92 var x = new XMLHttpRequest; 92 var x = new XMLHttpRequest;
93 x.upload.addEventListener("abort", f1, false); 93 x.upload.addEventListener("abort", f1, false);
94 x.upload.onabort = f2; 94 x.upload.onabort = f2;
95 x.upload.addEventListener("abort", f3, false); 95 x.upload.addEventListener("abort", f3, false);
96 96
97 x.open("POST", "resources/does-not-exist"); 97 x.open("POST", "resources/does-not-exist");
98 x.send();
98 x.abort(); 99 x.abort();
99 100
100 reportResult(arguments.callee.name, [ "f1", "f2" ]); 101 reportResult(arguments.callee.name, [ "f1", "f2" ]);
101 } 102 }
102 ]; 103 ];
103 104
104 for (var i = 0; i < tests.length; ++i) 105 for (var i = 0; i < tests.length; ++i)
105 tests[i](); 106 tests[i]();
106 </script> 107 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698