Change browser reliability test to start a new activity for each url

This commit is contained in:
Guang Zhu
2009-08-03 10:47:44 -07:00
parent bf3e69efac
commit 8c5b3e2fa6
2 changed files with 12 additions and 5 deletions

View File

@@ -122,8 +122,9 @@ public class ReliabilityTestActivity extends Activity {
@Override
protected void onDestroy() {
Log.v(LOGTAG, "onDestroy, inst=" + Integer.toHexString(hashCode()));
super.onDestroy();
Log.v(LOGTAG, "onDestroy, inst=" + Integer.toHexString(hashCode()));
webView.destroy();
}
private boolean isPageDone() {
@@ -270,8 +271,7 @@ public class ReliabilityTestActivity extends Activity {
}
public void run() {
if (initialStartCount == pageStartCount) {
//perform cleanup
if (initialStartCount == pageStartCount && !isPageDone()) {
handler.removeMessages(MSG_TIMEOUT);
webView.stopLoading();
handler.postDelayed(pageDoneRunner, manualDelay);