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

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

Issue 22272003: Deleting Prefs related pyauto tests which are already being converted to browser_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/prefs.py
diff --git a/chrome/test/functional/prefs.py b/chrome/test/functional/prefs.py
index d8f28453f5a714c70c72d392166266854e079855..9a82de998b063b71d130467e2ffff32f2b280a23 100755
--- a/chrome/test/functional/prefs.py
+++ b/chrome/test/functional/prefs.py
@@ -85,48 +85,6 @@ class PrefsTest(pyauto.PyUITest):
self.ActivateTab(1)
self.assertEqual(url2, self.GetActiveTabURL().spec())
- def testSessionRestoreShowBookmarkBar(self):
- """Verify restore for bookmark bar visibility."""
- assert not self.GetPrefsInfo().Prefs(pyauto.kShowBookmarkBar)
- self.SetPrefs(pyauto.kShowBookmarkBar, True)
- self.assertEqual(True, self.GetPrefsInfo().Prefs(pyauto.kShowBookmarkBar))
- self.RestartBrowser(clear_profile=False)
- self.assertEqual(True, self.GetPrefsInfo().Prefs(pyauto.kShowBookmarkBar))
- self.assertTrue(self.GetBookmarkBarVisibility())
-
- def testDownloadDirPref(self):
- """Verify download dir pref."""
- test_dir = os.path.join(self.DataDir(), 'downloads')
- file_url = self.GetFileURLForPath(os.path.join(test_dir, 'a_zip_file.zip'))
- download_dir = self.GetDownloadDirectory().value()
- new_dl_dir = os.path.join(download_dir, 'My+Downloads Folder')
- downloaded_pkg = os.path.join(new_dl_dir, 'a_zip_file.zip')
- os.path.exists(new_dl_dir) and shutil.rmtree(new_dl_dir)
- os.makedirs(new_dl_dir)
- # Set pref to download in new_dl_dir
- self.SetPrefs(pyauto.kDownloadDefaultDirectory, new_dl_dir)
- self.DownloadAndWaitForStart(file_url)
- self.WaitForAllDownloadsToComplete()
- self.assertTrue(os.path.exists(downloaded_pkg))
- shutil.rmtree(new_dl_dir, ignore_errors=True) # cleanup
-
- def testToolbarButtonsPref(self):
- """Verify toolbar buttons prefs."""
- # Assert defaults first
- self.assertFalse(self.GetPrefsInfo().Prefs(pyauto.kShowHomeButton))
- self.SetPrefs(pyauto.kShowHomeButton, True)
- self.RestartBrowser(clear_profile=False)
- self.assertTrue(self.GetPrefsInfo().Prefs(pyauto.kShowHomeButton))
-
- def testNetworkPredictionEnabledPref(self):
- """Verify DNS prefetching pref."""
- # Assert default
- self.assertTrue(self.GetPrefsInfo().Prefs(pyauto.kNetworkPredictionEnabled))
- self.SetPrefs(pyauto.kNetworkPredictionEnabled, False)
- self.RestartBrowser(clear_profile=False)
- self.assertFalse(self.GetPrefsInfo().Prefs(
- pyauto.kNetworkPredictionEnabled))
-
def testHomepagePrefs(self):
"""Verify homepage prefs."""
# "Use the New Tab page"
@@ -188,20 +146,6 @@ class PrefsTest(pyauto.PyUITest):
for pref in pref_list:
self.assertEqual(self.GetPrefsInfo().Prefs(pref), False)
- def testJavaScriptEnableDisable(self):
- """Verify enabling disabling javascript prefs work """
- self.assertTrue(
- self.GetPrefsInfo().Prefs(pyauto.kWebKitJavascriptEnabled))
- url = self.GetFileURLForDataPath(
- os.path.join('javaScriptTitle.html'))
- title1 = 'Title from script javascript enabled'
- self.NavigateToURL(url)
- self.assertEqual(title1, self.GetActiveTabTitle())
- self.SetPrefs(pyauto.kWebKitJavascriptEnabled, False)
- title = 'This is html title'
- self.NavigateToURL(url)
- self.assertEqual(title, self.GetActiveTabTitle())
-
def testHaveLocalStatePrefs(self):
"""Verify that we have some Local State prefs."""
self.assertTrue(self.GetLocalStatePrefsInfo())
@@ -283,18 +227,6 @@ class PrefsTest(pyauto.PyUITest):
"""
return self.ExecuteJavascript(script, windex=windex, tab_index=tab_index)
- def testImageContentSettings(self):
- """Verify image content settings show or hide images."""
- url = self.GetHttpURLForDataPath('settings', 'image_page.html')
- self.NavigateToURL(url)
- self.assertTrue(self._CheckForVisibleImage(),
- msg='No visible images found.')
- # Set to block all images from loading.
- self.SetPrefs(pyauto.kDefaultContentSettings, {'images': 2})
- self.NavigateToURL(url)
- self.assertFalse(self._CheckForVisibleImage(),
- msg='At least one visible image found.')
-
def testImagesNotBlockedInIncognito(self):
"""Verify images are not blocked in Incognito mode."""
url = self.GetHttpURLForDataPath('settings', 'image_page.html')
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698