From 8c5b3e2fa60e29e45c97bf83b2aa8c6505987f82 Mon Sep 17 00:00:00 2001 From: Guang Zhu Date: Mon, 3 Aug 2009 10:47:44 -0700 Subject: Change browser reliability test to start a new activity for each url --- .../src/com/android/dumprendertree/ReliabilityTestActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTestActivity.java') diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTestActivity.java b/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTestActivity.java index 5ddd0b3..db40daf 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTestActivity.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTestActivity.java @@ -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); -- cgit v1.1