| OLD | NEW |
| 1 <html><head></head><body> | 1 <html><head></head><body> |
| 2 | 2 |
| 3 <p>You should see "PASS" once:</p> | 3 <p>You should see "PASS" once:</p> |
| 4 | 4 |
| 5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
| 6 if (window.testRunner) | 6 if (window.testRunner) |
| 7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
| 8 | 8 |
| 9 var xhr; | 9 var xhr; |
| 10 | 10 |
| 11 if (window.XMLHttpRequest) { | 11 if (window.XMLHttpRequest) { |
| 12 xhr = new XMLHttpRequest(); | 12 xhr = new XMLHttpRequest(); |
| 13 } else { | 13 } else { |
| 14 try { | 14 try { |
| 15 xhr = new ActiveXObject("Msxml2.XMLHTTP"); | 15 xhr = new ActiveXObject("Msxml2.XMLHTTP"); |
| 16 } catch (ex) { | 16 } catch (ex) { |
| 17 xhr = new ActiveXObject("Microsoft.XMLHTTP"); | 17 xhr = new ActiveXObject("Microsoft.XMLHTTP"); |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 xhr.open("GET", "resources/1251.html", false); | 21 xhr.open("GET", "resources/1251.html", false); |
| 22 xhr.onreadystatechange = function () { | 22 xhr.onreadystatechange = function () { |
| 23 try { | 23 try { |
| 24 xhr.open("GET", "resources/1251.html", true); | 24 xhr.open("GET", "resources/1251.html?", true); |
| 25 xhr.send(null); | 25 xhr.send(null); |
| 26 } catch (ex) { | 26 } catch (ex) { |
| 27 } | 27 } |
| 28 } | 28 } |
| 29 | 29 |
| 30 xhr.send(null); | 30 xhr.send(null); |
| 31 | 31 |
| 32 document.write("PASS"); | 32 document.write("PASS"); |
| 33 | 33 |
| 34 </script> | 34 </script> |
| 35 | 35 |
| 36 </body></html> | 36 </body></html> |
| OLD | NEW |