Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acd17c0a authored by Ben Murdoch's avatar Ben Murdoch Committed by Android (Google) Code Review
Browse files

Merge "Merge WebKit at r63859 : Implement...

Merge "Merge WebKit at r63859 : Implement layoutTestController.dumpAsText(boolean) in DumpRenderTree."
parents 84aa5066 357d280a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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() {
+24 −24
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ package com.android.dumprendertree;

public interface LayoutTestController {

	public void dumpAsText();
    public void dumpAsText(boolean enablePixelTests);
    public void dumpChildFramesAsText();
    public void waitUntilDone();
    public void notifyDone();
+6 −1
Original line number Diff line number Diff line
@@ -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) {