OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../../../fast/js/resources/js-test-pre.js"></script> | |
5 <script src="resources/target-div-run-test.js"></script> | |
6 </head> | |
7 <body onload="runTest();"> | |
8 <div style="position: absolute; top: 10px; left: 10px; -webkit-transform: transl
ateZ(0);"> | |
9 <div style="position: relative; top: 10px; left: 25px;"> | |
10 <div id="targetDiv" style="position: fixed; left: 50px; top: 50px; width: 50px;
height: 50px; box-shadow: 0px 4px 23px 5px rgba(0, 0, 0, 0.2); border-style: sol
id; border-width: 2px; -webkit-tap-highlight-color: rgba(0, 255, 0, 0.5); cursor
: Pointer"> | |
11 <br><center>Target</center><br> | |
12 </div> | |
13 </div> | |
14 </div> | |
15 <div style="position: absolute; left: 10px; top: 250px; -webkit-transform: trans
lateZ(0);"> | |
16 This test is successful if the box labelled "Target" has a transparent green rec
tangle centered on it. | |
17 </div> | |
18 <script> | |
19 function runTest() { | |
20 var clientRect = document.getElementById('targetDiv').getBoundingClientRect(
); | |
21 x = (clientRect.left + clientRect.right) / 2; | |
22 y = (clientRect.top + clientRect.bottom) / 2; | |
23 if (window.testRunner) { | |
24 testRunner.dumpAsText(true); | |
25 testRunner.waitUntilDone(); | |
26 } | |
27 | |
28 if (window.eventSender) { | |
29 eventSender.gestureTapDown(x, y); | |
30 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); | |
31 } else { | |
32 debug("This test requires DumpRenderTree."); | |
33 } | |
34 } | |
35 </script> | |
36 </script> | |
37 </body> | |
38 </html> | |
OLD | NEW |