summaryrefslogtreecommitdiffstats
path: root/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java')
-rwxr-xr-xtests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java
index 1f37405..8f968b4 100755
--- a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java
+++ b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java
@@ -27,7 +27,7 @@ import android.os.Bundle;
/**
- * Instrumentation Test Runner for all MediaPlayer tests.
+ * Instrumentation Test Runner for all DumpRenderTree tests.
*
* Running all tests:
*
@@ -40,6 +40,7 @@ public class LayoutTestsAutoRunner extends InstrumentationTestRunner {
public TestSuite getAllTests() {
TestSuite suite = new InstrumentationTestSuite(this);
suite.addTestSuite(LayoutTestsAutoTest.class);
+ suite.addTestSuite(LoadTestsAutoTest.class);
return suite;
}
@@ -51,18 +52,22 @@ public class LayoutTestsAutoRunner extends InstrumentationTestRunner {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
- String path = (String) icicle.get("path");
- LayoutTestsAutoTest.setLayoutTestDir(path);
+ this.mTestPath = (String) icicle.get("path");
String timeout_str = (String) icicle.get("timeout");
- int timeout = 0; // default value
if (timeout_str != null) {
try {
- timeout = Integer.parseInt(timeout_str);
+ this.mTimeoutInMillis = Integer.parseInt(timeout_str);
} catch (Exception e) {
e.printStackTrace();
}
}
- LayoutTestsAutoTest.setTimeoutInMillis(timeout);
+
+ String r = (String)icicle.get("rebaseline");
+ this.mRebaseline = (r != null && r.toLowerCase().equals("true"));
}
+
+ public String mTestPath = null;
+ public int mTimeoutInMillis = 0;
+ public boolean mRebaseline = false;
}