AI 146551: am: CL 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/...
  Original author: android-build

Automated import of CL 146551
This commit is contained in:
Guang Zhu
2009-04-18 15:57:27 -07:00
committed by The Android Open Source Project
parent d73a32e726
commit fde4a9e136

View File

@@ -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;