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

Commit f3d924ca authored by Guang Zhu's avatar Guang Zhu
Browse files

Set a default dump type for DRT as a workaround for indeterministic order in...

Set a default dump type for DRT as a workaround for indeterministic order in receiving dumpAsText and onPageFinish callback.
parent d9942b5c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.dumprendertree;

import com.android.dumprendertree.TestShellActivity.DumpDataType;
import com.android.dumprendertree.forwarder.AdbUtils;
import com.android.dumprendertree.forwarder.ForwardServer;

@@ -399,7 +400,8 @@ public class LayoutTestsAutoTest extends ActivityInstrumentationTestCase2<TestSh
        if (resume)
            resumeTestList();

        TestShellActivity activity = (TestShellActivity) getActivity();
        TestShellActivity activity = getActivity();
        activity.setDefaultDumpDataType(DumpDataType.DUMP_AS_TEXT);

        // Run tests.
        int addr = -1;