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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-simple-scaled-document.html

Issue 54473004: Make js-test-post a noop. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add mac NeedsRebaselines Created 7 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" > 4 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" >
6 </head> 5 </head>
7 <body onload="runTest();"> 6 <body onload="runTest();">
8 <div style="position: relative; left: 10; top: 40"> 7 <div style="position: relative; left: 10; top: 40">
9 <a href="" id="targetLink" class="opaqueHighlight">Target Link.</a> 8 <a href="" id="targetLink" class="opaqueHighlight">Target Link.</a>
10 </div> 9 </div>
11 <div style="-webkit-transform: translateZ(0); position: relative; left: 10; top: 70"> 10 <div style="-webkit-transform: translateZ(0); position: relative; left: 10; top: 70">
12 This test is successful if "Target Link" above is covered in a green rectangle w ith rounded corners. 11 This test is successful if "Target Link" above is covered in a green rectangle w ith rounded corners.
13 </div> 12 </div>
14 <script> 13 <script>
15 function runTest() { 14 function runTest() {
16 if (window.eventSender) { 15 if (window.eventSender) {
17 window.eventSender.setPageScaleFactor(2, 0, 0); 16 window.eventSender.setPageScaleFactor(2, 0, 0);
18 } 17 }
19 18
20 var clientRect = document.getElementById('targetLink').getBoundingClientRect (); 19 var clientRect = document.getElementById('targetLink').getBoundingClientRect ();
21 x = (clientRect.left + clientRect.right) / 2; 20 x = (clientRect.left + clientRect.right) / 2;
22 y = (clientRect.top + clientRect.bottom) / 2; 21 y = (clientRect.top + clientRect.bottom) / 2;
23 if (window.testRunner) { 22 if (window.testRunner)
24 testRunner.dumpAsTextWithPixelResults();
25 testRunner.waitUntilDone(); 23 testRunner.waitUntilDone();
26 }
27 24
28 if (window.eventSender) { 25 if (window.eventSender) {
29 eventSender.gestureShowPress(x, y); 26 eventSender.gestureShowPress(x, y);
30 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); 27 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
31 } else { 28 } else {
32 debug("This test requires DumpRenderTree."); 29 debug("This test requires DumpRenderTree.");
33 } 30 }
34 } 31 }
35 </script> 32 </script>
36 </script> 33 </script>
37 </body> 34 </body>
38 </html> 35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698