summaryrefslogtreecommitdiffstats
path: root/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-01-20 11:21:24 +0000
committerBen Murdoch <benm@google.com>2011-01-20 11:22:10 +0000
commit7e73ce90d6fc6125a0e2f1bb65495efa1816bb1b (patch)
treec752d487ba8f5cdfdd4a4059c86b3d7825549a9c /tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java
parent0b5bd35f60507e6899419d4fa3cecc89e2cee9f9 (diff)
downloadframeworks_base-7e73ce90d6fc6125a0e2f1bb65495efa1816bb1b.zip
frameworks_base-7e73ce90d6fc6125a0e2f1bb65495efa1816bb1b.tar.gz
frameworks_base-7e73ce90d6fc6125a0e2f1bb65495efa1816bb1b.tar.bz2
DRT needs to clear cookies between tests.
Fixes failure seen in fast/cookies/local-file-can-set-cookies.html Change-Id: I08b8a0fcf87003fa4621dce08604bf42e70e4635
Diffstat (limited to 'tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java')
-rw-r--r--tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java
index a3466e2..9c4fa97 100644
--- a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java
+++ b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java
@@ -37,6 +37,7 @@ import android.util.Log;
import android.view.ViewGroup;
import android.view.Window;
import android.webkit.ConsoleMessage;
+import android.webkit.CookieManager;
import android.webkit.GeolocationPermissions;
import android.webkit.HttpAuthHandler;
import android.webkit.JsPromptResult;
@@ -827,6 +828,7 @@ public class TestShellActivity extends Activity implements LayoutTestController
setDefaultWebSettings(mWebView);
mIsGeolocationPermissionSet = false;
mPendingGeolocationPermissionCallbacks = null;
+ CookieManager.getInstance().removeAllCookie();
}
private long[] getDrawWebViewTime(WebView view, int count) {