am e57ff0e1: Merge change 6652 into donut

Merge commit 'e57ff0e1db46559699e4fadfbe9abe67ef9472fe'

* commit 'e57ff0e1db46559699e4fadfbe9abe67ef9472fe':
  Call clearCache on WebView before collecting memory information.
This commit is contained in:
Android (Google) Code Review
2009-07-09 13:47:07 -07:00
committed by The Android Open Source Project
2 changed files with 5 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShel
// Run tests
runTestAndWaitUntilDone(activity, runner.mTestPath, runner.mTimeoutInMillis);
activity.clearCache();
dumpMemoryInfo();
// Kill activity

View File

@@ -90,6 +90,10 @@ public class TestShellActivity extends Activity implements LayoutTestController
}
}
public void clearCache() {
mWebView.clearCache(true);
}
@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);