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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-composited-img.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 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" > 6 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" >
7 </head> 7 </head>
8 <body onload="runTest();" style="overflow: hidden"> 8 <body onload="runTest();" style="overflow: hidden">
9 <img class="opaqueHighlight" style="cursor: pointer; -webkit-transform: transl ateZ(0)" width="320" height="240" id="targetLink" src="resources/dice.png"> 9 <img class="opaqueHighlight" style="cursor: pointer; transform: translateZ(0)" width="320" height="240" id="targetLink" src="resources/dice.png">
10 </div> 10 </div>
11 <script> 11 <script>
12 function runTest() { 12 function runTest() {
13 useMockHighlight(); 13 useMockHighlight();
14 var clientRect = document.getElementById('targetLink').getBoundingClientRect (); 14 var clientRect = document.getElementById('targetLink').getBoundingClientRect ();
15 x = (clientRect.left + clientRect.right) / 2; 15 x = (clientRect.left + clientRect.right) / 2;
16 y = (clientRect.top + clientRect.bottom) / 2; 16 y = (clientRect.top + clientRect.bottom) / 2;
17 17
18 if (window.testRunner) { 18 if (window.testRunner) {
19 testRunner.dumpAsTextWithPixelResults(); 19 testRunner.dumpAsTextWithPixelResults();
20 testRunner.waitUntilDone(); 20 testRunner.waitUntilDone();
21 } 21 }
22 22
23 if (window.eventSender) { 23 if (window.eventSender) {
24 eventSender.gestureShowPress(x, y); 24 eventSender.gestureShowPress(x, y);
25 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); 25 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
26 } else { 26 } else {
27 debug("This test requires DumpRenderTree."); 27 debug("This test requires DumpRenderTree.");
28 debug("This test makes sure that a link highlight is shown for a graphic s " + 28 debug("This test makes sure that a link highlight is shown for a graphic s " +
29 "layer that does not use composited scrolling."); 29 "layer that does not use composited scrolling.");
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