diff options
| author | Guang Zhu <guangzhu@google.com> | 2009-10-29 01:45:05 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-10-29 01:45:05 -0700 |
| commit | dfc54a44123f32d6b44bdbce54c155d9135baddc (patch) | |
| tree | 414d340f60eb93af43813502b3fc005671c63627 /tests | |
| parent | 3c249da7eaceaffae87657aeb7179ffc4a5e1570 (diff) | |
| parent | 0b12dc3acaa5e6b2b0ac05374faf65a7e212ae4f (diff) | |
| download | frameworks_base-dfc54a44123f32d6b44bdbce54c155d9135baddc.zip frameworks_base-dfc54a44123f32d6b44bdbce54c155d9135baddc.tar.gz frameworks_base-dfc54a44123f32d6b44bdbce54c155d9135baddc.tar.bz2 | |
am 0b12dc3a: am aebcaec3: Merge change I2e90d640 into eclair
Merge commit '0b12dc3acaa5e6b2b0ac05374faf65a7e212ae4f' into eclair-mr2-plus-aosp
* commit '0b12dc3acaa5e6b2b0ac05374faf65a7e212ae4f':
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(); |
