OLD | NEW |
1 <html><head> | 1 <html><head> |
2 <title>Ping</title> | 2 <title>Ping</title> |
3 <script> | 3 <script> |
4 | 4 |
5 var testCalled = false; | 5 var testCalled = false; |
6 | 6 |
7 function test() { | 7 function test() { |
8 if (!testCalled) { | 8 if (!testCalled) { |
9 if (window.testRunner) { | 9 if (window.testRunner) { |
10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
11 testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1); | 11 testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1); |
12 testRunner.waitUntilDone(); | 12 testRunner.waitUntilDone(); |
13 testRunner.dumpPingLoaderCallbacks(); | 13 testRunner.dumpPingLoaderCallbacks(); |
| 14 testRunner.overridePreference("WebKitAllowRunningInsecureContent", f
alse); |
| 15 testRunner.setAllowRunningOfInsecureContent(false); |
14 } | 16 } |
15 testCalled = true; | 17 testCalled = true; |
16 return; | 18 return; |
17 } | 19 } |
18 | 20 |
19 if (window.eventSender) { | 21 if (window.eventSender) { |
20 var a = document.getElementById("a"); | 22 var a = document.getElementById("a"); |
21 eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2); | 23 eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2); |
22 eventSender.mouseDown(); | 24 eventSender.mouseDown(); |
23 eventSender.mouseUp(); | 25 eventSender.mouseUp(); |
24 } | 26 } |
25 } | 27 } |
26 | 28 |
27 </script> | 29 </script> |
28 </head> | 30 </head> |
29 <body onload="test();"> | 31 <body onload="test();"> |
30 <img src="resources/delete-ping.php?test=cross-origin" onload="test();" onerror=
"test();"></img> | 32 <img src="resources/delete-ping.php?test=cross-origin-from-https" onload="test()
;" onerror="test();"></img> |
31 <a id="a" href="resources/check-ping.php?test=cross-origin" ping="http://localho
st:8000/navigation/resources/save-Ping.php?test=cross-origin">Navigate and send
ping</a> | 33 <a id="a" href="/navigation/resources/notify-done.html" ping="http://localhost:8
000/navigation/resources/save-Ping.php?test=cross-origin-from-https">Navigate an
d send ping</a> |
32 </body></html> | 34 </body></html> |
OLD | NEW |