Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1108)

Side by Side Diff: LayoutTests/platform/chromium-linux/compositing/gestures/gesture-tapHighlight-2-overflow-div.html

Issue 14860019: Move Linux-specific LayoutTests to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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: 300px; height: 150 px; overflow-y: scroll; overflow-x: scroll;">
9 <div style="position: relative; left: 10px; top: i10px; width: 200px; height: 100px; overflow-y: scroll; overflow-x: scroll;">
10 <a href="">Link 1</a><br>
11 <a href="">Link 2</a><br>
12 <a href="">Link 3</a><br>
13 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0.5)">Target Link.</a><br>
14 <a href="">Link 4</a><br>
15 <a href="">Link 5</a><br>
16 </div>
17 <a href="">Link 6</a><br>
18 <a href="">Link 7</a><br>
19 <a href="">Link 8</a><br>
20 <a href="">Link 9</a><br>
21 </div>
22 <div style="position: relative; left: 10px; top: 80px">
23 This test is successful if "Target Link" above is covered in a transparent green rectangle with rounded corners.
24 </div>
25 <script>
26 function runTest() {
27 var clientRect = document.getElementById('targetLink').getBoundingClientRect ();
28 x = (clientRect.left + clientRect.right) / 2;
29 y = (clientRect.top + clientRect.bottom) / 2;
30 if (window.testRunner) {
31 testRunner.dumpAsText(true);
32 testRunner.waitUntilDone();
33 }
34
35 if (window.eventSender) {
36 eventSender.gestureTapDown(x, y);
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698