bddca068b5da0c16ed97bebfc2eb49a01e1699ee
[WebKit-https.git] / LayoutTests / platform / mac-wk2 / tiled-drawing / header-and-footer-hit-testing.html
1 <html>
2 <head>
3 <style>
4     #target {
5         background-color:purple;
6         width:25px;
7         height:25px;
8     }
9 </style>
10 <script>
11     var numberOfClicks = 0;
12
13     function runTest() {
14         if (!window.eventSender)
15             return;
16         if (window.internals)
17             window.internals.setHeaderHeight(100);
18         if (window.testRunner)
19             testRunner.dumpAsText();
20
21         eventSender.mouseMoveTo(15, 115);
22         eventSender.mouseDown();
23         eventSender.mouseUp();
24
25         var result = document.getElementById("result");
26         if (numberOfClicks > 0)
27             result.innerHTML = "Pass!";
28         else
29             result.innerHTML = "Fail.";
30     }
31     
32     function clicked() {
33         numberOfClicks = 1;
34     }
35 </script>
36 </head>
37 <body onload="runTest()">
38     <div id="target" onclick="clicked()"></div>
39     <div id="result">This test needs to be run through WebKitTestRunner.</div>
40 </body>
41 </html>