summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authornirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-20 22:51:47 +0000
committernirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-20 22:51:47 +0000
commit016fbc76be467caf9791a80eaf2c3b6491580422 (patch)
tree49cca31d341b86a5a755b3a1b8165720c34c26ab /chrome/test
parentaade128f945daa9337102dc1e39feae037c19c79 (diff)
downloadchromium_src-016fbc76be467caf9791a80eaf2c3b6491580422.zip
chromium_src-016fbc76be467caf9791a80eaf2c3b6491580422.tar.gz
chromium_src-016fbc76be467caf9791a80eaf2c3b6491580422.tar.bz2
Get rid of navsuggest results in omnibox tests.
Turns out navsuggest (URL suggestions) depends on the mood of the google servers. Removing navsuggest. Review URL: http://codereview.chromium.org/2117022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/functional/omnibox.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/chrome/test/functional/omnibox.py b/chrome/test/functional/omnibox.py
index b7efd00f..28fce9f 100644
--- a/chrome/test/functional/omnibox.py
+++ b/chrome/test/functional/omnibox.py
@@ -175,7 +175,6 @@ class OmniboxTest(pyauto.PyUITest):
"""Verify suggest results in omnibox."""
matches = self._GetOmniboxMatchesFor('apple')
self.assertTrue(matches)
- self.assertTrue([x for x in matches if x['type'] == 'navsuggest'])
self.assertTrue([x for x in matches if x['type'] == 'search-suggest'])
def testDifferentTypesOfResults(self):
@@ -193,7 +192,7 @@ class OmniboxTest(pyauto.PyUITest):
self.assertTrue(matches)
# Verify starred result (indicating bookmarked url)
self.assertTrue([x for x in matches if x['starred'] == True])
- for item_type in ('history-url', 'search-what-you-typed', 'navsuggest',
+ for item_type in ('history-url', 'search-what-you-typed',
'search-suggest',):
self.assertTrue([x for x in matches if x['type'] == item_type])
@@ -202,7 +201,6 @@ class OmniboxTest(pyauto.PyUITest):
self.assertTrue(self.GetPrefsInfo().Prefs(pyauto.kSearchSuggestEnabled))
matches = self._GetOmniboxMatchesFor('apple')
self.assertTrue(matches)
- self.assertTrue([x for x in matches if x['type'] == 'navsuggest'])
self.assertTrue([x for x in matches if x['type'] == 'search-suggest'])
# Disable suggest-service
self.SetPrefs(pyauto.kSearchSuggestEnabled, False)
@@ -210,19 +208,8 @@ class OmniboxTest(pyauto.PyUITest):
matches = self._GetOmniboxMatchesFor('apple')
self.assertTrue(matches)
# Verify there are no suggest results
- self.assertFalse([x for x in matches if x['type'] == 'navsuggest'])
self.assertFalse([x for x in matches if x['type'] == 'search-suggest'])
- def testSuggestCombinationOfWords(self):
- """Verify that omnibox can suggest combinations of words."""
- url = "http://presidentofindia.nic.in/"
- matches = self._GetOmniboxMatchesFor(
- 'president of india', attr_dict={'type': 'navsuggest'})
- self.assertTrue(matches)
- # Should find a result with 'presidentofindia' as url
- self.assertTrue([x for x in matches
- if 'presidentofindia' in x['destination_url']])
-
if __name__ == '__main__':
pyauto_functional.Main()