diff options
| author | 2009-04-18 15:57:27 -0700 | |
|---|---|---|
| committer | 2009-04-18 15:57:27 -0700 | |
| commit | fde4a9e1364084d6a9ccd54aa777631cb9b8b35b (patch) | |
| tree | 52c5487d6ff5614745ce9a0b4634e0f7cefe1287 | |
| parent | d73a32e72698a3dcbfc13188c8626e8a353f520b (diff) | |
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
| -rwxr-xr-x | tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java index 8f968b43972a..ebdc9c72305c 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; |