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

Side by Side Diff: LayoutTests/compositing/gestures/resources/target-div-run-test.js

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 function runTest() { 1 function runTest() {
2 var clientRect = document.getElementById('targetDiv').getBoundingClientRect( ); 2 var clientRect = document.getElementById('targetDiv').getBoundingClientRect( );
3 x = (clientRect.left + clientRect.right) / 2; 3 x = (clientRect.left + clientRect.right) / 2;
4 y = (clientRect.top + clientRect.bottom) / 2; 4 y = (clientRect.top + clientRect.bottom) / 2;
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(true); 6 testRunner.dumpAsTextWithPixelResults();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 if (window.eventSender) { 10 if (window.eventSender) {
11 eventSender.gestureTapDown(x, y); 11 eventSender.gestureTapDown(x, y);
12 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); 12 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
13 } else { 13 } else {
14 debug("This test requires DumpRenderTree."); 14 debug("This test requires DumpRenderTree.");
15 } 15 }
16 } 16 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698