| OLD | NEW |
| 1 <HTML> | 1 <HTML> |
| 2 <head> | 2 <head> |
| 3 <title>Test case for bug 40952</title> | 3 <title>Test case for bug 40952</title> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <p> Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=40952"> bug 4
0952</a>: Onloadend event is not supported in XMLHttpRequest</p> | 6 <p> Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=40952"> bug 4
0952</a>: Onloadend event is not supported in XMLHttpRequest</p> |
| 7 <p> Verify that a loadend ProgressEvent is dispatched after a load ProgressEvent
when a synchronous request completes normally.<br/> | 7 <p> Verify that a loadend ProgressEvent is dispatched after a load ProgressEvent
when a synchronous request completes normally.<br/> |
| 8 Verify that a loadend ProgressEvent is not dispatched after abort() is called wh
en a synchronous request completes normally.</p> | 8 Verify that a loadend ProgressEvent is not dispatched after abort() is called wh
en a synchronous request completes normally.</p> |
| 9 <p>PASS PASS PASS should appear below:</p> | 9 <p>PASS PASS PASS should appear below:</p> |
| 10 <p id=console></p> | 10 <p id=console></p> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 function testError() | 58 function testError() |
| 59 { | 59 { |
| 60 results = ""; | 60 results = ""; |
| 61 | 61 |
| 62 xhr.onloadstart = logUnexpectedProgressEvent; | 62 xhr.onloadstart = logUnexpectedProgressEvent; |
| 63 xhr.onabort = logUnexpectedProgressEvent; | 63 xhr.onabort = logUnexpectedProgressEvent; |
| 64 xhr.onerror = logUnexpectedProgressEvent; | 64 xhr.onerror = logUnexpectedProgressEvent; |
| 65 xhr.onload = logUnexpectedProgressEvent; | 65 xhr.onload = logUnexpectedProgressEvent; |
| 66 xhr.onloadend = logUnexpectedProgressEvent; | 66 xhr.onloadend = logUnexpectedProgressEvent; |
| 67 | 67 |
| 68 xhr.open("GET", "resources/infinite-loop.php", false); | 68 xhr.open("GET", "../resources/infinite-loop.php", false); |
| 69 try { | 69 try { |
| 70 xhr.send(); | 70 xhr.send(); |
| 71 } | 71 } |
| 72 catch (e) { | 72 catch (e) { |
| 73 if (e.code != e.NETWORK_ERR) | 73 if (e.code != e.NETWORK_ERR) |
| 74 results += " " + e; | 74 results += " " + e; |
| 75 } | 75 } |
| 76 | 76 |
| 77 completeTest(""); | 77 completeTest(""); |
| 78 } | 78 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 102 | 102 |
| 103 completeTest(""); | 103 completeTest(""); |
| 104 } | 104 } |
| 105 | 105 |
| 106 testNormal(); | 106 testNormal(); |
| 107 testError(); | 107 testError(); |
| 108 testAbort(); | 108 testAbort(); |
| 109 | 109 |
| 110 </script> | 110 </script> |
| 111 </body> | 111 </body> |
| OLD | NEW |