diff options
| author | Guang Zhu <guangzhu@google.com> | 2009-10-29 02:03:57 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-10-29 02:03:57 -0700 |
| commit | efdccdf60216e4c6cc56d46b074068b78551017b (patch) | |
| tree | 469b5b85f960d91f856e41e271af925443e27f9d /tests | |
| parent | 060746b3831fcc31eede09e55240143d413460e5 (diff) | |
| parent | dfc54a44123f32d6b44bdbce54c155d9135baddc (diff) | |
| download | frameworks_base-efdccdf60216e4c6cc56d46b074068b78551017b.zip frameworks_base-efdccdf60216e4c6cc56d46b074068b78551017b.tar.gz frameworks_base-efdccdf60216e4c6cc56d46b074068b78551017b.tar.bz2 | |
am dfc54a44: am 0b12dc3a: am aebcaec3: Merge change I2e90d640 into eclair
Merge commit 'dfc54a44123f32d6b44bdbce54c155d9135baddc'
* commit 'dfc54a44123f32d6b44bdbce54c155d9135baddc':
Remove the activity restart between urls.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTest.java b/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTest.java index 50b7c3f..9bc0962 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTest.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTest.java @@ -74,6 +74,8 @@ public class ReliabilityTest extends ActivityInstrumentationTestCase2<Reliabilit Intent intent = new Intent(runner.getContext(), ReliabilityTestActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + ReliabilityTestActivity activity = (ReliabilityTestActivity)runner.startActivitySync( + intent); //read from BufferedReader instead of populating a list in advance, //this will avoid excessive memory usage in case of a large list while((url = listReader.readLine()) != null) { @@ -83,8 +85,6 @@ public class ReliabilityTest extends ActivityInstrumentationTestCase2<Reliabilit start = System.currentTimeMillis(); Log.v(LOGTAG, "Testing URL: " + url); FsUtils.updateTestStatus(TEST_STATUS_FILE, url); - ReliabilityTestActivity activity = (ReliabilityTestActivity)runner.startActivitySync( - intent); activity.reset(); //use message to send new URL to avoid interacting with //WebView in non-UI thread @@ -110,11 +110,11 @@ public class ReliabilityTest extends ActivityInstrumentationTestCase2<Reliabilit if(runner.mLogtime) { writeLoadTime(url, activity.getPageLoadTime()); } - activity.finish(); System.runFinalization(); System.gc(); System.gc(); } + activity.finish(); FsUtils.updateTestStatus(TEST_STATUS_FILE, TEST_DONE); // activity.finish(); listReader.close(); |
