diff options
author | Guang Zhu <guangzhu@google.com> | 2009-09-01 11:57:16 -0700 |
---|---|---|
committer | Guang Zhu <guangzhu@google.com> | 2009-09-01 11:57:16 -0700 |
commit | f3d924ca0d3e8225824eb50540962e1890fea6f2 (patch) | |
tree | 189d1ddd0efc4ac8516aa4b13d754d104550de2e | |
parent | d9942b5cb1662638bb6fb57c12a06976e3c34651 (diff) | |
download | frameworks_base-f3d924ca0d3e8225824eb50540962e1890fea6f2.zip frameworks_base-f3d924ca0d3e8225824eb50540962e1890fea6f2.tar.gz frameworks_base-f3d924ca0d3e8225824eb50540962e1890fea6f2.tar.bz2 |
Set a default dump type for DRT as a workaround for indeterministic order in receiving dumpAsText and onPageFinish callback.
-rw-r--r-- | tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java index 5e47030..b980710 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java @@ -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; |