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 the error ProgressEv
ent when an async request fails.</p> | 7 <p> Verify that a loadend ProgressEvent is dispatched after the error ProgressEv
ent when an async request fails.</p> |
8 <p>PASS should appear below:</p> | 8 <p>PASS should appear below:</p> |
9 <p id=console></p> | 9 <p id=console></p> |
10 <script type="text/javascript"> | 10 <script type="text/javascript"> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 } | 48 } |
49 xhr.onloadstart = logProgressEvent; | 49 xhr.onloadstart = logProgressEvent; |
50 xhr.onabort = logUnexpectedProgressEvent; | 50 xhr.onabort = logUnexpectedProgressEvent; |
51 xhr.onerror = logProgressEvent; | 51 xhr.onerror = logProgressEvent; |
52 xhr.onload = logUnexpectedProgressEvent; | 52 xhr.onload = logUnexpectedProgressEvent; |
53 xhr.onloadend = function(e) { | 53 xhr.onloadend = function(e) { |
54 logProgressEvent(e); | 54 logProgressEvent(e); |
55 completeTest(); | 55 completeTest(); |
56 } | 56 } |
57 | 57 |
58 xhr.open("GET", "resources/infinite-loop.php", true); | 58 xhr.open("GET", "../resources/infinite-loop.php", true); |
59 xhr.send(); | 59 xhr.send(); |
60 } | 60 } |
61 | 61 |
62 test(); | 62 test(); |
63 | 63 |
64 </script> | 64 </script> |
65 </body> | 65 </body> |
66 | 66 |
OLD | NEW |