Add tests for <area ping>
[WebKit-https.git] / LayoutTests / http / tests / navigation / ping-attribute / area-cross-origin-from-https.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="resources/utilities.js"></script>
5 <script>
6 if (window.testRunner) {
7     testRunner.dumpAsText();
8     testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
9     testRunner.waitUntilDone();
10 }
11
12 if (location.protocol != "https:")
13     location = "https://127.0.0.1:8443/navigation/ping-attribute/area-cross-origin-from-https.html"
14
15 function test()
16 {
17     clickElement(document.querySelector("img"));
18 }
19
20 window.onload = function ()
21 {
22     clearLastPingResultAndRunTest(test);
23 }
24 </script>
25 </head>
26 <body>
27     <img src="non-existent-image.jpg" width="128" height="128" usemap="#imagemap">
28     <map name="imagemap">
29         <area shape="rect" coords="0,0,128,128" href="../resources/check-ping.php" ping="http://localhost:8000/navigation/resources/save-Ping.php?test=/navigation/ping-attribute/area-cross-origin-from-https.html">
30     </map>
31 </body>
32 </html>