Change browser reliability test to start a new activity for each url
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user