OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../../../fast/js/resources/js-test-pre.js"></script> | |
5 </head> | |
6 <body onload="runTest();"> | |
7 <div id="targetDiv" style="-webkit-transform: translateZ(0); position: relative;
left: 10px; top: 10px"></div> | |
8 <div style="position: relative; left: 10px; top: 40px; width: 200px; height: 100
px; overflow-y: scroll; overflow-x: scroll;"> | |
9 <a href="">Link 1</a><br> | |
10 <a href="">Link 2</a><br> | |
11 <a href="" id="linkToRemove">Link 3</a><br id="brToRemove"> | |
12 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0
.5)">Target Link.</a><br> | |
13 <a href="">Link 4</a><br> | |
14 <a href="">Link 5</a><br> | |
15 </div> | |
16 <div style="position: relative; left: 10px; top: 80px"> | |
17 This test is successful if "Target Link" above is covered in a transparent green
rectangle with rounded corners. | |
18 </div> | |
19 <script> | |
20 function runTest() { | |
21 var clientRect = document.getElementById('targetLink').getBoundingClientRect
(); | |
22 x = (clientRect.left + clientRect.right) / 2; | |
23 y = (clientRect.top + clientRect.bottom) / 2; | |
24 if (window.testRunner) { | |
25 testRunner.dumpAsText(true); | |
26 testRunner.waitUntilDone(); | |
27 } | |
28 | |
29 // In this test a link highlight is commenced, then a node is deleted from i
n front of | |
30 // target, forcing a layout change that moves the target node mid-animation. | |
31 if (window.eventSender) { | |
32 eventSender.gestureTapDown(x, y); | |
33 var linkToRemove = document.getElementById('linkToRemove'); | |
34 linkToRemove.parentNode.removeChild(linkToRemove); | |
35 var brToRemove = document.getElementById('brToRemove'); | |
36 brToRemove.parentNode.removeChild(brToRemove); | |
37 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); | |
38 } else { | |
39 debug("This test requires DumpRenderTree."); | |
40 } | |
41 } | |
42 </script> | |
43 </script> | |
44 </body> | |
45 </html> | |
OLD | NEW |