OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../resources/js-test.js"></script> | |
5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" > | |
6 </head> | |
7 <body onload="runTest();"> | |
8 <style> | |
Rick Byers
2014/07/30 15:35:51
nit: <style> belongs inside of <head>.
mustaq
2014/07/30 16:40:44
Done.
| |
9 #outerDiv { | |
10 width: 150px; | |
11 } | |
12 #outerDiv, #outerDiv div { | |
13 padding: 15px; | |
14 border-style: solid; | |
15 } | |
16 </style> | |
17 <div class="opaqueHighlight" id="outerDiv" style="cursor: pointer"> | |
18 <div> | |
19 <div style="cursor: pointer"> | |
20 <div id="innerDiv"></div> | |
21 </div> | |
22 </div> | |
23 </div> | |
24 | |
25 This test is successful if the outermost box above is covered with a green rec tangle. | |
26 | |
27 <script> | |
28 function runTest() { | |
29 var clientRect = document.getElementById("innerDiv").getBoundingClientRect (); | |
30 x = (clientRect.left + clientRect.right) / 2; | |
31 y = (clientRect.top + clientRect.bottom) / 2; | |
32 if (window.testRunner) { | |
33 testRunner.dumpAsTextWithPixelResults(); | |
34 testRunner.waitUntilDone(); | |
35 } | |
36 | |
37 if (window.eventSender) { | |
38 eventSender.gestureShowPress(x, y); | |
39 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); | |
40 } else { | |
41 debug("This test requires DumpRenderTree."); | |
42 } | |
43 } | |
44 </script> | |
45 </body> | |
46 </html> | |
OLD | NEW |