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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-1-iframe.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 <script src="resources/link-highlight-helper.js"></script> 5 <script src="resources/link-highlight-helper.js"></script>
6 </head> 6 </head>
7 <body onLoad="runTest();"> 7 <body onLoad="runTest();">
8 <iframe id="targetFrame" src="resources/1-frame-noncomposited.html" style="posit ion: relative; left: 10px; top: 10px; width: 400px; height: 150px;"></iframe> 8 <iframe id="targetFrame" src="resources/1-frame-noncomposited.html" style="posit ion: relative; left: 10px; top: 10px; width: 400px; height: 150px;"></iframe>
9 <div style="position: relative; left: 10px; top: 20px; -webkit-transform: transl ateZ(0);"> 9 <div style="position: relative; left: 10px; top: 20px; transform: translateZ(0); ">
10 This test is successful if "Target Link" is covered by a green box with square c orners. 10 This test is successful if "Target Link" is covered by a green box with square c orners.
11 </div> 11 </div>
12 <script> 12 <script>
13 function runTest() { 13 function runTest() {
14 useMockHighlight(); 14 useMockHighlight();
15 var targetFrame = document.getElementById("targetFrame"); 15 var targetFrame = document.getElementById("targetFrame");
16 var clientRect = targetFrame.contentDocument.getElementById('targetLink').ge tBoundingClientRect(); 16 var clientRect = targetFrame.contentDocument.getElementById('targetLink').ge tBoundingClientRect();
17 x = (clientRect.left + clientRect.right) / 2; 17 x = (clientRect.left + clientRect.right) / 2;
18 y = (clientRect.top + clientRect.bottom) / 2 + targetFrame.getBoundingClient Rect().top; 18 y = (clientRect.top + clientRect.bottom) / 2 + targetFrame.getBoundingClient Rect().top;
19 if (window.testRunner) { 19 if (window.testRunner) {
20 testRunner.dumpAsTextWithPixelResults(); 20 testRunner.dumpAsTextWithPixelResults();
21 testRunner.waitUntilDone(); 21 testRunner.waitUntilDone();
22 } 22 }
23 23
24 if (window.eventSender) { 24 if (window.eventSender) {
25 eventSender.gestureShowPress(x, y); 25 eventSender.gestureShowPress(x, y);
26 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); 26 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
27 } else { 27 } else {
28 debug("This test requires DumpRenderTree."); 28 debug("This test requires DumpRenderTree.");
29 } 29 }
30 } 30 }
31 </script> 31 </script>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698