Merge change I2e90d640 into eclair
* changes: Remove the activity restart between urls.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user