Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / xmlhttprequest-sync-vs-async-assertion-failure.html
blobfc74997db4a309ae16b05b8ab9e5851b4eaa260c
1 <html><head></head><body>
3 <p>You should see "PASS" once:</p>
5 <script type="text/javascript">
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 var xhr;
11 if (window.XMLHttpRequest) {
12 xhr = new XMLHttpRequest();
13 } else {
14 try {
15 xhr = new ActiveXObject("Msxml2.XMLHTTP");
16 } catch (ex) {
17 xhr = new ActiveXObject("Microsoft.XMLHTTP");
21 xhr.open("GET", "resources/1251.html", false);
22 xhr.onreadystatechange = function () {
23 try {
24 xhr.open("GET", "resources/1251.html?", true);
25 xhr.send(null);
26 } catch (ex) {
30 xhr.send(null);
32 document.write("PASS");
34 </script>
36 </body></html>