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

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

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 3 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 | 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> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body onload="runTest();"> 6 <body onload="runTest();">
7 <div style="-webkit-transform: translateZ(0); padding: 20px;"> 7 <div style="-webkit-transform: translateZ(0); padding: 20px;">
8 <div id="targetLink" style="width: 320px; height: 240px; cursor: pointer; -web kit-tap-highlight-color: rgb(0, 255, 0)"></div> 8 <div id="targetLink" style="width: 320px; height: 240px; cursor: pointer; -web kit-tap-highlight-color: rgb(0, 255, 0)"></div>
9 </div> 9 </div>
10 <script> 10 <script>
11 function runTest() { 11 function runTest() {
12 var clientRect = document.getElementById('targetLink').getBoundingClientRect (); 12 var clientRect = document.getElementById('targetLink').getBoundingClientRect ();
13 x = (clientRect.left + clientRect.right) / 2; 13 x = (clientRect.left + clientRect.right) / 2;
14 y = (clientRect.top + clientRect.bottom) / 2; 14 y = (clientRect.top + clientRect.bottom) / 2;
15 if (window.testRunner) { 15 if (window.testRunner) {
16 testRunner.dumpAsText(true); 16 testRunner.dumpAsTextWithPixelResults();
17 testRunner.waitUntilDone(); 17 testRunner.waitUntilDone();
18 } 18 }
19 19
20 if (window.eventSender) { 20 if (window.eventSender) {
21 eventSender.gestureTapDown(x, y); 21 eventSender.gestureTapDown(x, y);
22 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); 22 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
23 } else { 23 } else {
24 debug("This test requires DumpRenderTree."); 24 debug("This test requires DumpRenderTree.");
25 debug("This test is successful if the image below is covered in a green rectangle with rounded corners."); 25 debug("This test is successful if the image below is covered in a green rectangle with rounded corners.");
26 } 26 }
27 } 27 }
28 </script> 28 </script>
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698