| OLD | NEW |
| 1 <p>Test that XMLHttpRequest doesn't return a wrong cached answer when there is a
Vary header in response.</p> | 1 <p>Test that XMLHttpRequest doesn't return a wrong cached answer when there is a
Vary header in response.</p> |
| 2 | 2 |
| 3 <script src="/js-test-resources/js-test-pre.js"></script> | 3 <script src="/js-test-resources/js-test-pre.js"></script> |
| 4 <script> | 4 <script> |
| 5 window.jsTestIsAsync = true; | 5 window.jsTestIsAsync = true; |
| 6 | 6 |
| 7 if (location.protocol != "http:" || location.host != "127.0.0.1:8000") | 7 if (location.protocol != "http:" || location.host != "127.0.0.1:8000") |
| 8 debug("This test must be run from http://127.0.0.1:8000"); | 8 debug("This test must be run from http://127.0.0.1:8000"); |
| 9 | 9 |
| 10 var testStep = 1; | 10 var testStep = 1; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 window.onmessage = function(msg) { receivedResponse(msg.data) } | 51 window.onmessage = function(msg) { receivedResponse(msg.data) } |
| 52 window.onload = testCrossOrigin; | 52 window.onload = testCrossOrigin; |
| 53 | 53 |
| 54 </script> | 54 </script> |
| 55 | 55 |
| 56 <button onclick="testCrossOrigin()">Make cross origin request</button> | 56 <button onclick="testCrossOrigin()">Make cross origin request</button> |
| 57 <br> | 57 <br> |
| 58 <iframe src="http://localhost:8000/cache/resources/xhr-vary-header-subframe.html
" frameborder=0 height=50></iframe> | 58 <iframe src="http://localhost:8000/cache/resources/xhr-vary-header-subframe.html
" frameborder=0 height=50></iframe> |
| 59 <pre id=console></pre> | 59 <pre id=console></pre> |
| 60 <script src="/js-test-resources/js-test-post.js"></script> | |
| OLD | NEW |