Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / compositing / gestures / gesture-tapHighlight-simple-scaled-document.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="resources/link-highlight-helper.js"></script>
5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
6 <style>
7 ::-webkit-scrollbar {
8     width: 0px;
9     height: 0px;
10 }
11 </style>
12 </head>
13 <body onload="runTest();">
14 <div style="position: relative; left: 10; top: 40">
15 <a href="" id="targetLink" class="opaqueHighlight">Target Link.</a>
16 </div>
17 <div style="transform: translateZ(0); position: relative; left: 10; top: 70">
18 This test is successful if "Target Link" above is covered in a green rectangle with square corners.
19 </div>
20 <script>
21 function runTest() {
22     useMockHighlight();
23
24     if (window.eventSender) {
25         window.eventSender.setPageScaleFactor(2, 0, 0);
26     }
27
28     var clientRect = document.getElementById('targetLink').getBoundingClientRect();
29     x = (clientRect.left + clientRect.right) / 2;
30     y = (clientRect.top + clientRect.bottom) / 2;
31     if (window.testRunner)
32         testRunner.waitUntilDone();
33
34     if (window.eventSender) {
35         eventSender.gestureShowPress(x, y);
36         window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
37     } else {
38         debug("This test requires DumpRenderTree.");
39     }
40 }
41 </script>
42 </script>
43 </body>
44 </html>