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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-simple-div-boxshadow-fixed-nested.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 <script src="resources/target-div-run-test.js"></script> 5 <script src="resources/target-div-run-test.js"></script>
6 </head> 6 </head>
7 <body onload="runTest();"> 7 <body onload="runTest();">
8 <div style="position: absolute; top: 10px; left: 10px; -webkit-transform: transl ateZ(0);"> 8 <div style="position: absolute; top: 10px; left: 10px; -webkit-transform: transl ateZ(0);">
9 <div id="targetDiv" style="position: fixed; left: 50px; top: 50px; width: 50px; height: 50px; box-shadow: 0px 4px 23px 5px rgba(0, 0, 0, 0.2); border-style: sol id; border-width: 2px; -webkit-tap-highlight-color: rgba(0, 255, 0, 0.5); cursor : Pointer"> 9 <div id="targetDiv" style="position: fixed; left: 50px; top: 50px; width: 50px; height: 50px; box-shadow: 0px 4px 23px 5px rgba(0, 0, 0, 0.2); border-style: sol id; border-width: 2px; -webkit-tap-highlight-color: rgba(0, 255, 0, 0.5); cursor : Pointer">
10 <br><center>Target</center><br> 10 <br><center>Target</center><br>
11 </div> 11 </div>
12 </div> 12 </div>
13 <div style="position: absolute; left: 10px; top: 250px; -webkit-transform: trans lateZ(0);"> 13 <div style="position: absolute; left: 10px; top: 250px; -webkit-transform: trans lateZ(0);">
14 This test is successful if the box labelled "Target" has a transparent green rec tangle centered on it. 14 This test is successful if the box labelled "Target" has a transparent green rec tangle centered on it.
15 </div> 15 </div>
16 <script> 16 <script>
17 function runTest() { 17 function runTest() {
18 var clientRect = document.getElementById('targetDiv').getBoundingClientRect( ); 18 var clientRect = document.getElementById('targetDiv').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.dumpAsText(true); 22 testRunner.dumpAsTextWithPixelResults();
23 testRunner.waitUntilDone(); 23 testRunner.waitUntilDone();
24 } 24 }
25 25
26 if (window.eventSender) { 26 if (window.eventSender) {
27 eventSender.gestureTapDown(x, y); 27 eventSender.gestureTapDown(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