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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-pixel-rotated-link.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/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body onload="runTest();"> 6 <body onload="runTest();">
7 <div style="position: absolute; left: 40px; top: 40px; -webkit-transform: rotate (22.5deg)"> 7 <div style="position: absolute; left: 40px; top: 40px; transform: rotate(22.5deg )">
8 <a href="" id="link1">Link 1</a><br> 8 <a href="" id="link1">Link 1</a><br>
9 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0.5);">Target Link.</a><br> 9 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0.5);">Target Link.</a><br>
10 <a href="" id="link2">Link 2</a> 10 <a href="" id="link2">Link 2</a>
11 </div> 11 </div>
12 </div> 12 </div>
13 <div style="position: absolute; left: 10px; top: 110px; -webkit-transform: trans lateZ(0);"> 13 <div style="position: absolute; left: 10px; top: 110px; transform: translateZ(0) ;">
14 This test is successful if "Target Link" above is covered in a green rectangle w ith rounded corners. 14 This test is successful if "Target Link" above is covered in a green rectangle w ith rounded corners.
15 </div> 15 </div>
16 <script> 16 <script>
17 function runTest() { 17 function runTest() {
18 var clientRect = document.getElementById('targetLink').getBoundingClientRect (); 18 var clientRect = document.getElementById('targetLink').getBoundingClientRect ();
19 x = (clientRect.left + clientRect.right) / 2; 19 x = (clientRect.left + clientRect.right) / 2;
20 y = (clientRect.top + clientRect.bottom) / 2; 20 y = (clientRect.top + clientRect.bottom) / 2;
21 if (window.testRunner) { 21 if (window.testRunner) {
22 testRunner.dumpAsTextWithPixelResults(); 22 testRunner.dumpAsTextWithPixelResults();
23 testRunner.waitUntilDone(); 23 testRunner.waitUntilDone();
24 } 24 }
25 25
26 if (window.eventSender) { 26 if (window.eventSender) {
27 eventSender.gestureShowPress(x, y); 27 eventSender.gestureShowPress(x, y);
28 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); 28 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
29 } else { 29 } else {
30 debug("This test requires DumpRenderTree."); 30 debug("This test requires DumpRenderTree.");
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