From e6f63b1a15e2c9d815a359eaede0b727db93e79f Mon Sep 17 00:00:00 2001 From: Guang Zhu <> Date: Tue, 14 Apr 2009 16:45:47 -0700 Subject: AI 146246: am: CL 146225 Work around initialization issue with InstrumentationTest Runner. super.onCreate needs to be called as last statement in subclass' onCreate to avoid starting test case too early. Original author: guangzhu Merged from: //branches/cupcake/... Automated import of CL 146246 --- .../src/com/android/dumprendertree/LayoutTestsAutoRunner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java') diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java index 8f968b4..ebdc9c7 100755 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java @@ -51,7 +51,6 @@ public class LayoutTestsAutoRunner extends InstrumentationTestRunner { @Override public void onCreate(Bundle icicle) { - super.onCreate(icicle); this.mTestPath = (String) icicle.get("path"); String timeout_str = (String) icicle.get("timeout"); if (timeout_str != null) { @@ -64,6 +63,7 @@ public class LayoutTestsAutoRunner extends InstrumentationTestRunner { String r = (String)icicle.get("rebaseline"); this.mRebaseline = (r != null && r.toLowerCase().equals("true")); + super.onCreate(icicle); } public String mTestPath = null; -- cgit v1.1