Merge change 6652 into donut
* changes: Call clearCache on WebView before collecting memory information.
This commit is contained in:
@@ -72,6 +72,7 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShel
|
||||
// Run tests
|
||||
runTestAndWaitUntilDone(activity, runner.mTestPath, runner.mTimeoutInMillis);
|
||||
|
||||
activity.clearCache();
|
||||
dumpMemoryInfo();
|
||||
|
||||
// Kill activity
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user