Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / compositing / gestures / gesture-tapHighlight-nested-cursor3.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <script src="../../resources/js-test.js"></script>
5     <script src="resources/link-highlight-helper.js"></script>
6     <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
7 </head>
8 <body onload="runTest();">
9     <div class="opaqueHighlight" id="expectedHighlight" style="border-style: solid; cursor: pointer">
10         Click here to go <a id="taptarget" href="#">there</a>
11     </div>
12
13     <script>
14         function runTest() {
15             useMockHighlight();
16
17             var clientRect = document.getElementById("taptarget").getBoundingClientRect();
18             x = (clientRect.left + clientRect.right) / 2;
19             y = (clientRect.top +  clientRect.bottom) / 2;
20             if (window.testRunner) {
21                 testRunner.dumpAsTextWithPixelResults();
22                 testRunner.waitUntilDone();
23             }
24
25             if (window.eventSender) {
26                 eventSender.gestureShowPress(x, y);
27                 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
28             } else {
29                 debug("This test requires DumpRenderTree.");
30             }
31         }
32     </script>
33 </body>
34 </html>