OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script src="../../js-test-resources/js-test-pre.js"></script> | 3 <script src="../../js-test-resources/js-test.js"></script> |
4 <body> | 4 <body> |
5 <p id="description"></p> | 5 <p id="description"></p> |
6 <div id="console"></div> | 6 <div id="console"></div> |
7 | 7 |
8 <script> | 8 <script> |
9 description('Tests that isolated worlds can have XHRs run in a different origin.
'); | 9 description('Tests that isolated worlds can have XHRs run in a different origin.
'); |
10 | 10 |
11 jsTestIsAsync = true; | 11 jsTestIsAsync = true; |
12 | 12 |
13 var tests = [ | 13 var tests = [ |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 debug('XHR completed with status ' + xhr.status); | 94 debug('XHR completed with status ' + xhr.status); |
95 window.postMessage(JSON.stringify({'type': 'test-done'}), '*'); | 95 window.postMessage(JSON.stringify({'type': 'test-done'}), '*'); |
96 }; | 96 }; |
97 xhr.send(null); | 97 xhr.send(null); |
98 } | 98 } |
99 | 99 |
100 </script> | 100 </script> |
101 | 101 |
102 </body> | 102 </body> |
103 </html> | 103 </html> |
OLD | NEW |