diff options
author | Guang Zhu <guangzhu@google.com> | 2009-07-09 12:55:15 -0700 |
---|---|---|
committer | Guang Zhu <guangzhu@google.com> | 2009-07-09 12:55:15 -0700 |
commit | 889181d7fdf54b50a3cf4ee7e0f402a2fc026afe (patch) | |
tree | f8c18a55da1718214af3b32d8b5c66186f0dac1c /tests/DumpRenderTree | |
parent | b45451f6dac5b32bcd8c52352a9697854eab40d0 (diff) | |
download | frameworks_base-889181d7fdf54b50a3cf4ee7e0f402a2fc026afe.zip frameworks_base-889181d7fdf54b50a3cf4ee7e0f402a2fc026afe.tar.gz frameworks_base-889181d7fdf54b50a3cf4ee7e0f402a2fc026afe.tar.bz2 |
Call clearCache on WebView before collecting memory information.
Diffstat (limited to 'tests/DumpRenderTree')
-rw-r--r-- | tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java | 1 | ||||
-rw-r--r-- | tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java index cbcac6c..39bbf16 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java @@ -72,6 +72,7 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShel // Run tests runTestAndWaitUntilDone(activity, runner.mTestPath, runner.mTimeoutInMillis); + activity.clearCache(); dumpMemoryInfo(); // Kill activity diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java index 0d22eca..09f7cbc 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java @@ -87,6 +87,10 @@ public class TestShellActivity extends Activity implements LayoutTestController } } + public void clearCache() { + mWebView.clearCache(true); + } + @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); |