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

Side by Side Diff: LayoutTests/platform/chromium-linux/compositing/gestures/gesture-tapHighlight-simple-window-scroll.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 style="-webkit-transform: translateZ(0); width=1600px; height: 1000px">
8 <div style="position: relative; left: 100; top: 50;">
9 <a href="">Link 1</a></br>
10 <a href="">Link 2</a></br>
11 <a href="">Link 3</a></br>
12 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0 .5)">Target Link.</a>
13 </div>
14 <div style="position: relative; left: 100; top: 150; width: 700;">
15 This test is successful if "Target Link" above is covered in a transparent green rectangle with rounded corners,
16 and the window is partially scrolled in both directions.
17 </div>
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 if (window.eventSender) {
30 eventSender.gestureTapDown(x, y);
31 window.scrollTo(50, 30)
32 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
33 } else {
34 debug("This test requires DumpRenderTree.");
35 }
36 }
37 </script>
38 </script>
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698