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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-img-transformed.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/link-highlight-helper.js"></script> 4 <script src="resources/link-highlight-helper.js"></script>
5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" > 5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" >
6 </head> 6 </head>
7 <body onload="runTest();" style="overflow: hidden"> 7 <body onload="runTest();" style="overflow: hidden">
8 <div style="-webkit-transform: translatez(0) translatey(100px) translatex(300p x);"> 8 <div style="transform: translatez(0) translatey(100px) translatex(300px);">
9 <a href="" class="opaqueHighlight"> 9 <a href="" class="opaqueHighlight">
10 <img width="320" height="240" id="targetLink" src="resources/dice.png"> 10 <img width="320" height="240" id="targetLink" src="resources/dice.png">
11 </a> 11 </a>
12 </div> 12 </div>
13 <script> 13 <script>
14 function runTest() { 14 function runTest() {
15 useMockHighlight(); 15 useMockHighlight();
16 var clientRect = document.getElementById('targetLink').getBoundingClientRect (); 16 var clientRect = document.getElementById('targetLink').getBoundingClientRect ();
17 x = (clientRect.left + clientRect.right) / 2; 17 x = (clientRect.left + clientRect.right) / 2;
18 y = (clientRect.top + clientRect.bottom) / 2; 18 y = (clientRect.top + clientRect.bottom) / 2;
19 19
20 if (window.testRunner) { 20 if (window.testRunner) {
21 testRunner.dumpAsTextWithPixelResults(); 21 testRunner.dumpAsTextWithPixelResults();
22 testRunner.waitUntilDone(); 22 testRunner.waitUntilDone();
23 } 23 }
24 24
25 if (window.eventSender) { 25 if (window.eventSender) {
26 eventSender.gestureShowPress(x, y); 26 eventSender.gestureShowPress(x, y);
27 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); 27 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
28 } else { 28 } else {
29 debug("This test requires DumpRenderTree."); 29 debug("This test requires DumpRenderTree.");
30 debug("This test is successful if the image below is covered in a green rectangle."); 30 debug("This test is successful if the image below is covered in a green rectangle.");
31 } 31 }
32 } 32 }
33 </script> 33 </script>
34 </script> 34 </script>
35 </body> 35 </body>
36 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698