summaryrefslogtreecommitdiffstats
path: root/chrome/test/functional/omnibox.py
diff options
context:
space:
mode:
authorrohitbm@google.com <rohitbm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-07 22:21:11 +0000
committerrohitbm@google.com <rohitbm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-07 22:21:11 +0000
commitb888dfe092bc8ea3e485b606ecc23b73955c2d51 (patch)
treec3a8ca0ec8e49e23f6a20a3a9d7b6e91f78a8064 /chrome/test/functional/omnibox.py
parent61e1f782242a5e85098fdff8179daab0e862e66a (diff)
downloadchromium_src-b888dfe092bc8ea3e485b606ecc23b73955c2d51.zip
chromium_src-b888dfe092bc8ea3e485b606ecc23b73955c2d51.tar.gz
chromium_src-b888dfe092bc8ea3e485b606ecc23b73955c2d51.tar.bz2
Fixing omnibox continues search (pyauto) problem on non-mac machine
Review URL: http://codereview.chromium.org/6135005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70794 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/functional/omnibox.py')
-rw-r--r--chrome/test/functional/omnibox.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/test/functional/omnibox.py b/chrome/test/functional/omnibox.py
index 0bdb00c..cf89143 100644
--- a/chrome/test/functional/omnibox.py
+++ b/chrome/test/functional/omnibox.py
@@ -280,11 +280,9 @@ class OmniboxTest(pyauto.PyUITest):
def _GotNewMatches(self, old_matches_len, search_text):
"""Determines if omnibox has any new matches"""
- # On Windows, omnibox doesn't change results if searching the same text
- # repeatedly. So setting '' in omnibox before any search for non-Mac
- # platforms.
- if not self.IsMac():
- self.SetOmniboxText('')
+ # Omnibox doesn't change results if searching the same text repeatedly.
+ # So setting '' in omnibox before the next repeated search.
+ self.SetOmniboxText('')
new_matches = self._GetOmniboxMatchesFor(search_text)
if len(new_matches) > old_matches_len:
return True
@@ -310,6 +308,9 @@ class OmniboxTest(pyauto.PyUITest):
def _GotHistoryPageOption(self, search_text):
"""Determines if omnibox returns an 'open history page' option for given
search text"""
+ # Omnibox doesn't change results if searching the same text repeatedly.
+ # So setting '' in omnibox before the next repeated search.
+ self.SetOmniboxText('')
matches = self._GetOmniboxMatchesFor(search_text)
matches_description = [x for x in matches if x['type'] ==
'open-history-page']