diff options
author | alyssad@chromium.org <alyssad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 00:15:45 +0000 |
---|---|---|
committer | alyssad@chromium.org <alyssad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 00:15:45 +0000 |
commit | 1351bf877639f9abf3dc935fa14b796267197672 (patch) | |
tree | 365e3d1f800dabfb9a7b2c0250df4e77b43e7f06 /chrome/test | |
parent | af5a855591d424eb992f8888c514b779b966185d (diff) | |
download | chromium_src-1351bf877639f9abf3dc935fa14b796267197672.zip chromium_src-1351bf877639f9abf3dc935fa14b796267197672.tar.gz chromium_src-1351bf877639f9abf3dc935fa14b796267197672.tar.bz2 |
Add a test that verifies the DNS prefetching preference
Review URL: http://codereview.chromium.org/2857018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53877 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/functional/prefs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/test/functional/prefs.py b/chrome/test/functional/prefs.py index d404d2e..44d6b2e 100644 --- a/chrome/test/functional/prefs.py +++ b/chrome/test/functional/prefs.py @@ -114,6 +114,14 @@ class PrefsTest(pyauto.PyUITest): self.RestartBrowser(clear_profile=False) self.assertTrue(self.GetPrefsInfo().Prefs(pyauto.kShowHomeButton)) + def testDnsPrefectchingEnabledPref(self): + """Verify DNS prefetching pref.""" + # Assert default + self.assertTrue(self.GetPrefsInfo().Prefs(pyauto.kDnsPrefetchingEnabled)) + self.SetPrefs(pyauto.kDnsPrefetchingEnabled, False) + self.RestartBrowser(clear_profile=False) + self.assertFalse(self.GetPrefsInfo().Prefs(pyauto.kDnsPrefetchingEnabled)) + def testHomepagePrefs(self): """Verify homepage prefs.""" # "Use the New Tab page" |