Add tests for <area ping>
[WebKit-https.git] / LayoutTests / http / tests / navigation / ping-attribute / area-same-origin.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 function test()
13 {
14     clickElement(document.querySelector("img"));
15 }
16
17 window.onload = function ()
18 {
19     clearLastPingResultAndRunTest(test);
20 }
21 </script>
22 </head>
23 <body>
24     <img src="non-existent-image.jpg" width="128" height="128" usemap="#imagemap">
25     <map name="imagemap">
26         <area shape="rect" coords="0,0,128,128" href="../resources/check-ping.php" ping="../resources/save-Ping.php">
27     </map>
28 </body>
29 </html>