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

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

Issue 10828419: Delete the testBookmarkBarPolicy pyauto test since it's redundant with PolicyTest.BookmarkBarEnable… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/policy.py
===================================================================
--- chrome/test/functional/policy.py (revision 152559)
+++ chrome/test/functional/policy.py (working copy)
@@ -156,47 +156,6 @@
self.assertFalse(self._IsBlocked('http://dev.chromium.org/'))
self.assertFalse(self._IsBlocked('http://chromium.org/chromium-os/testing'))
- def testBookmarkBarPolicy(self):
- """Tests the BookmarkBarEnabled policy."""
- self.NavigateToURL('about:blank')
- self.assertFalse(self.GetBookmarkBarVisibility())
- self.assertFalse(self.IsBookmarkBarDetached())
-
- # It should be visible in detached state, in the NTP.
- self.NavigateToURL('chrome://newtab')
- self.assertFalse(self.GetBookmarkBarVisibility())
- self.assertTrue(self.IsBookmarkBarDetached())
-
- policy = {
- 'BookmarkBarEnabled': True
- }
- self.SetUserPolicy(policy)
-
- self.assertTrue(self.WaitForBookmarkBarVisibilityChange(True))
- self.assertTrue(self.GetBookmarkBarVisibility())
- self.assertFalse(self.IsBookmarkBarDetached())
- # The accelerator should be disabled by the policy.
- self.assertRaises(
- pyauto_errors.JSONInterfaceError,
- lambda: self.ApplyAccelerator(pyauto.IDC_SHOW_BOOKMARK_BAR))
- self.assertTrue(self.WaitForBookmarkBarVisibilityChange(True))
- self.assertTrue(self.GetBookmarkBarVisibility())
- self.assertFalse(self.IsBookmarkBarDetached())
-
- policy['BookmarkBarEnabled'] = False
- self.SetUserPolicy(policy)
-
- self.assertTrue(self.WaitForBookmarkBarVisibilityChange(False))
- self.assertFalse(self.GetBookmarkBarVisibility())
- self.assertRaises(
- pyauto_errors.JSONInterfaceError,
- lambda: self.ApplyAccelerator(pyauto.IDC_SHOW_BOOKMARK_BAR))
- self.assertTrue(self.WaitForBookmarkBarVisibilityChange(False))
- self.assertFalse(self.GetBookmarkBarVisibility())
- # When disabled by policy, it should never be displayed at all,
- # not even on the NTP.
- self.assertFalse(self.IsBookmarkBarDetached())
-
def testJavascriptPolicies(self):
"""Tests the Javascript policies."""
# The navigation to about:blank after each policy reset is to reset the
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698