Merge "Merge WebKit at r63859 : Implement layoutTestController.dumpAsText(boolean) in DumpRenderTree."
This commit is contained in:
@@ -177,7 +177,7 @@ public class CallbackProxy extends Handler implements EventSender, LayoutTestCon
|
||||
break;
|
||||
|
||||
case LAYOUT_DUMP_TEXT:
|
||||
mLayoutTestController.dumpAsText();
|
||||
mLayoutTestController.dumpAsText(msg.arg1 == 1);
|
||||
break;
|
||||
|
||||
case LAYOUT_DUMP_CHILD_FRAMES_TEXT:
|
||||
@@ -387,7 +387,11 @@ public class CallbackProxy extends Handler implements EventSender, LayoutTestCon
|
||||
}
|
||||
|
||||
public void dumpAsText() {
|
||||
obtainMessage(LAYOUT_DUMP_TEXT).sendToTarget();
|
||||
obtainMessage(LAYOUT_DUMP_TEXT, 0).sendToTarget();
|
||||
}
|
||||
|
||||
public void dumpAsText(boolean enablePixelTests) {
|
||||
obtainMessage(LAYOUT_DUMP_TEXT, enablePixelTests ? 1 : 0).sendToTarget();
|
||||
}
|
||||
|
||||
public void dumpChildFramesAsText() {
|
||||
|
||||
@@ -18,30 +18,30 @@ package com.android.dumprendertree;
|
||||
|
||||
public interface LayoutTestController {
|
||||
|
||||
public void dumpAsText();
|
||||
public void dumpChildFramesAsText();
|
||||
public void waitUntilDone();
|
||||
public void notifyDone();
|
||||
|
||||
// Force a redraw of the page
|
||||
public void display();
|
||||
// Used with pixel dumps of content
|
||||
public void testRepaint();
|
||||
|
||||
// If the page title changes, add the information to the output.
|
||||
public void dumpTitleChanges();
|
||||
public void dumpBackForwardList();
|
||||
public void dumpChildFrameScrollPositions();
|
||||
public void dumpEditingCallbacks();
|
||||
|
||||
// Show/Hide window for window.onBlur() testing
|
||||
public void setWindowIsKey(boolean b);
|
||||
// Mac function, used to disable events going to the window
|
||||
public void setMainFrameIsFirstResponder(boolean b);
|
||||
|
||||
public void dumpSelectionRect();
|
||||
|
||||
// invalidate and draw one line at a time of the web view.
|
||||
public void dumpAsText(boolean enablePixelTests);
|
||||
public void dumpChildFramesAsText();
|
||||
public void waitUntilDone();
|
||||
public void notifyDone();
|
||||
|
||||
// Force a redraw of the page
|
||||
public void display();
|
||||
// Used with pixel dumps of content
|
||||
public void testRepaint();
|
||||
|
||||
// If the page title changes, add the information to the output.
|
||||
public void dumpTitleChanges();
|
||||
public void dumpBackForwardList();
|
||||
public void dumpChildFrameScrollPositions();
|
||||
public void dumpEditingCallbacks();
|
||||
|
||||
// Show/Hide window for window.onBlur() testing
|
||||
public void setWindowIsKey(boolean b);
|
||||
// Mac function, used to disable events going to the window
|
||||
public void setMainFrameIsFirstResponder(boolean b);
|
||||
|
||||
public void dumpSelectionRect();
|
||||
|
||||
// invalidate and draw one line at a time of the web view.
|
||||
public void repaintSweepHorizontally();
|
||||
|
||||
// History testing functions
|
||||
|
||||
@@ -342,7 +342,12 @@ public class TestShellActivity extends Activity implements LayoutTestController
|
||||
|
||||
// .......................................
|
||||
// LayoutTestController Functions
|
||||
public void dumpAsText() {
|
||||
public void dumpAsText(boolean enablePixelTests) {
|
||||
// Added after webkit update to r63859. See trac.webkit.org/changeset/63730.
|
||||
if (enablePixelTests) {
|
||||
Log.v(LOGTAG, "dumpAsText(enablePixelTests == true) not implemented on Android!");
|
||||
}
|
||||
|
||||
mDumpDataType = DumpDataType.DUMP_AS_TEXT;
|
||||
mDumpTopFrameAsText = true;
|
||||
if (mWebView != null) {
|
||||
|
||||
Reference in New Issue
Block a user