OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="/js-test-resources/js-test.js"></script> | 4 <script src="/js-test-resources/js-test.js"></script> |
5 <script> | 5 <script> |
6 description("Verify navigator.sendBeacon() mixed content checking."); | 6 description("Verify navigator.sendBeacon() mixed content checking."); |
7 | 7 |
8 window.jsTestIsAsync = true; | 8 window.jsTestIsAsync = true; |
9 | 9 |
10 function test() { | 10 function test() { |
11 if (window.testRunner) { | 11 if (window.testRunner) { |
12 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
13 testRunner.waitUntilDone(); | 13 testRunner.waitUntilDone(); |
14 } | 14 } |
15 | 15 |
16 shouldBeFalse('navigator.sendBeacon("http://localhost:8000/navigation/resour
ces/save-beacon.php?name=cross-origin", "CrossOrigin");'); | 16 shouldBeFalse('navigator.sendBeacon("http://example.test:8000/navigation/res
ources/save-beacon.php?name=cross-origin", "CrossOrigin");'); |
17 finishJSTest(); | 17 finishJSTest(); |
18 } | 18 } |
19 </script> | 19 </script> |
20 </head> | 20 </head> |
21 <body onload="test();"> | 21 <body onload="test();"> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |