Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9042)

Unified Diff: chrome/test/functional/cookies.py

Issue 10447117: Unwire the clear on exit preference from the storage systems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/functional/cookies.py
diff --git a/chrome/test/functional/cookies.py b/chrome/test/functional/cookies.py
index 55498ad8f8176c3b28acb71f654a75abea4e3e28..666adb23e7ae723ba6cd85b141099ea69e8bbefc 100755
--- a/chrome/test/functional/cookies.py
+++ b/chrome/test/functional/cookies.py
@@ -143,31 +143,6 @@ class CookiesTest(pyauto.PyUITest):
self.assertFalse(self.GetCookie(pyauto.GURL(https_url)),
msg='Cookies are not blocked.')
- def testClearCookiesOnEndingSession(self):
- """Verify that cookies are cleared when the browsing session is closed."""
-
- # This test fails on ChromeOS because kRestoreOnStartup is ignored and
- # the startup preference is always "continue where I left off."
- if self.IsChromeOS():
- logging.info('Skipping testClearCookiesOnEndingSession on ChromeOS')
- return
-
- file_url = self.GetFileURLForDataPath('setcookie.html')
- self.assertFalse(self.GetCookie(pyauto.GURL(file_url)),
- msg='There should be no cookies on %s' % file_url)
-
- # Set the option to clear cookies when the browser session is closed.
- self.SetPrefs(pyauto.kClearSiteDataOnExit, True)
-
- self.NavigateToURL(file_url)
- self.assertEqual('name=Good', self.GetCookie(pyauto.GURL(file_url)),
- msg='Unable to retrieve the cookie name=Good')
-
- # Restart and verify that cookie does not persist
- self.RestartBrowser(clear_profile=False)
- self.assertFalse(self.GetCookie(pyauto.GURL(file_url)),
- msg='Cookie persisted after restarting session.')
-
def testAllowCookiesUsingExceptions(self):
"""Verify that cookies can be allowed and set using exceptions for
particular website(s) when all others are blocked."""

Powered by Google App Engine
This is Rietveld 408576698