| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |