OLD | NEW |
(Empty) | |
| 1 |
| 2 <!DOCTYPE html> |
| 3 <script src="resources/link-highlight-helper.js"></script> |
| 4 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css"
> |
| 5 <body onload="runTest()"> |
| 6 <div id=parent style="overflow: scroll; will-change: transform"> |
| 7 <div class="target" style="position: relative; transform: skew(-15deg);"></div
> |
| 8 <a href="test" id="targetLink" class="opaqueHighlight"> |
| 9 <div style="width: 1000px; height: 500px; background: lightgray" ></div> |
| 10 </a> |
| 11 </div> |
| 12 </div> |
| 13 This test passes if the entire gray rectangle changes color to green. |
| 14 </body> |
| 15 <script> |
| 16 function runTest() { |
| 17 useMockHighlight(); |
| 18 var clientRect = document.getElementById('targetLink').getBoundingClientRect
(); |
| 19 x = (clientRect.left + clientRect.right) / 2; |
| 20 y = (clientRect.top + clientRect.bottom) / 2; |
| 21 if (window.testRunner) { |
| 22 testRunner.dumpAsTextWithPixelResults(); |
| 23 testRunner.waitUntilDone(); |
| 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> |
OLD | NEW |