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

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

Issue 10256005: Fix an incorrectly written policy test. It was using a hook incorrectly and checking for the wrong … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
diff --git a/chrome/test/functional/policy.py b/chrome/test/functional/policy.py
index 8622326ad84ff0c683838d24c2e24e56094f315f..7691ab112e0decf6f4ec0b0dbfc93aee7a7049c2 100755
--- a/chrome/test/functional/policy.py
+++ b/chrome/test/functional/policy.py
@@ -530,8 +530,8 @@ class PolicyTest(policy_base.PolicyTestBase):
False))
self.SetOmniboxText('deli')
self.WaitUntilOmniboxQueryDone()
- self.assertRaises(pyauto.JSONInterfaceError,
- lambda: self.OmniboxAcceptInput())
+ self.OmniboxAcceptInput()
+ self.assertFalse('search.my.company' in self.GetActiveTabURL().spec())
# Needed for extension tests
_GOOD_CRX_ID = 'ldnnhddmnhbkjipkidpdiheffobcpfmf'
« 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