[LayoutTests] Convert http/tests/blink convert PHP to Python
[WebKit-https.git] / LayoutTests / http / tests / blink / sendbeacon / beacon-cross-origin.https.html
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 <script>
6 description("Verify navigator.sendBeacon() mixed content checking.");
7
8 window.jsTestIsAsync = true;
9
10 function test() {
11     if (window.testRunner) {
12         testRunner.dumpAsText();
13         testRunner.waitUntilDone();
14     }
15
16     shouldBeFalse('navigator.sendBeacon("http://example.test:8000/blink/sendbeacon/resources/save-beacon.py?name=cross-origin", "CrossOrigin");');
17     finishJSTest();
18 }
19 </script>
20 </head>
21 <body onload="test();">
22 </body>
23 </html>