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-21 23:29:04 +0000
committerrohitbm@google.com <rohitbm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 23:29:04 +0000
commit28df88370f358468bffa1e1f6bc43aa25c11e388 (patch)
tree102c36732afbc003353fd41bbe3f2de4a84f2d30 /chrome/test/functional/omnibox.py
parent66c3cb0e9f8f58dbd258e6d31ba8bac5127b55f0 (diff)
downloadchromium_src-28df88370f358468bffa1e1f6bc43aa25c11e388.zip
chromium_src-28df88370f358468bffa1e1f6bc43aa25c11e388.tar.gz
chromium_src-28df88370f358468bffa1e1f6bc43aa25c11e388.tar.bz2
This test is obsolete now because of a design change in omnibox.
http://src.chromium.org/viewvc/chrome?view=rev&revision=71963 Review URL: http://codereview.chromium.org/6326008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/functional/omnibox.py')
-rw-r--r--chrome/test/functional/omnibox.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/chrome/test/functional/omnibox.py b/chrome/test/functional/omnibox.py
index 0ce09c1..41d2efd 100644
--- a/chrome/test/functional/omnibox.py
+++ b/chrome/test/functional/omnibox.py
@@ -301,32 +301,6 @@ class OmniboxTest(pyauto.PyUITest):
self.assertTrue(self.WaitUntil(
lambda: self._GotContentHistory('British throne', url)))
- 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']
- return len(matches_description) != 0
-
- def testRecentPageHistory(self):
- """Verify that omnibox shows recent history option in the visited
- url list."""
- search_text = 'file'
- sites = glob.glob(os.path.join(self.DataDir(), 'find_in_page', '*.html'))
- for site in sites:
- self.NavigateToURL(self.GetFileURLForPath(site))
- # Using max timeout as 120 seconds, since expected page only shows up
- # after > 60 seconds on some machines and default timeout is less than that.
- # TODO (Nirnimesh): design an api using which we can push history changes to
- # omnibox results.
- self.assertTrue(self.WaitUntil(
- lambda: self._GotHistoryPageOption(search_text),
- timeout=120))
-
def _VerifyHasBookmarkResult(self, matches):
"""Verify that we have a bookmark result."""
matches_starred = [result for result in matches if result['starred']]