summaryrefslogtreecommitdiffstats
path: root/chrome/test/functional/prefs.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/functional/prefs.py')
-rw-r--r--chrome/test/functional/prefs.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/test/functional/prefs.py b/chrome/test/functional/prefs.py
index 31f8937..32eb332 100644
--- a/chrome/test/functional/prefs.py
+++ b/chrome/test/functional/prefs.py
@@ -59,6 +59,15 @@ 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())
+
if __name__ == '__main__':
pyauto_functional.Main()