OLD | NEW |
---|---|
(Empty) | |
1 Send 2 sync xhrs to the same url such that the 2nd should return a 304. Ensure t hat the responseText for the 2nd XHR is non-empty.<br> | |
2 <script> | |
3 if (window.testRunner) | |
4 testRunner.dumpAsText(); | |
5 | |
6 var xhr = new XMLHttpRequest(); | |
7 xhr.open("GET", "resources/etag.php", false); | |
8 xhr.send(null); | |
9 | |
10 var xhr2 = new XMLHttpRequest(); | |
11 xhr2.open("GET", "resources/etag.php", false); | |
12 xhr2.send(null); | |
13 | |
14 document.body.appendChild(document.createTextNode("xhr2.responseText: " + xhr2.r esponseText)); | |
15 | |
16 </script> | |
OLD | NEW |