|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=390219 |
|
5 --> |
|
6 <head> |
|
7 <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
|
8 <title>Test for Bug 390219</title> |
|
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
11 </head> |
|
12 <body> |
|
13 <p id="display"></p> |
|
14 <div id="content" style="display: none"> |
|
15 |
|
16 </div> |
|
17 <pre id="test"> |
|
18 <script class="testbody" type="text/javascript"> |
|
19 /** Test for Bug 390219 **/ |
|
20 |
|
21 SimpleTest.waitForExplicitFinish(); |
|
22 xhr = new XMLHttpRequest(); |
|
23 xhr.open("GET", "nonexistent_url", true); |
|
24 xhr.send(null); |
|
25 xhr.abort(); |
|
26 xhr.open("GET", ".", true); |
|
27 xhr.onreadystatechange = function() { |
|
28 if (xhr.readyState == 4) { |
|
29 is(xhr.status, 200, "wrong status"); |
|
30 SimpleTest.finish(); |
|
31 } |
|
32 } |
|
33 xhr.send(null); |
|
34 |
|
35 </script> |
|
36 </pre> |
|
37 </body> |
|
38 </html> |