commit | 693e4326ebd555256d7e1db37dd1ab453a4bf6cc | [log] [tgz] |
---|---|---|
author | Brian Carlstrom <bdc@google.com> | Tue Nov 09 22:06:26 2010 -0800 |
committer | Brian Carlstrom <bdc@google.com> | Tue Nov 09 22:06:26 2010 -0800 |
tree | 5c513f03c7e5dc199ce7d8101820f9c85829a02b | |
parent | ecd676045ecfda4b82e3651ddd19f5f94ededd1c [diff] |
Add CookieManager regression test for cookie attributes with spaces after = Bug: 3167208 Change-Id: If5c1bf10f55bc5bff7dd71a9bd85e14495ff46bd
diff --git a/tests/tests/webkit/src/android/webkit/cts/CookieManagerTest.java b/tests/tests/webkit/src/android/webkit/cts/CookieManagerTest.java index ca1b76f..28f8def 100755 --- a/tests/tests/webkit/src/android/webkit/cts/CookieManagerTest.java +++ b/tests/tests/webkit/src/android/webkit/cts/CookieManagerTest.java
@@ -286,4 +286,14 @@ } }.run(); } + + public void testb3167208() throws Exception { + String uri = "http://host.android.com/path/"; + // note the space after the domain= + String problemCookie = "foo=bar; domain= .android.com; path=/"; + mCookieManager.setCookie(uri, problemCookie); + String cookie = mCookieManager.getCookie(uri); + assertNotNull(cookie); + assertTrue(cookie.contains("foo=bar")); + } }