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

Unified Diff: omnibox.py

Issue 7040007: Added a test case:testOmniboxSearchHistory to omnibox.py (Closed) Base URL: http://src.chromium.org/svn/trunk/src/chrome/test/functional/
Patch Set: '' Created 9 years, 7 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: omnibox.py
===================================================================
--- omnibox.py (revision 85931)
+++ omnibox.py (working copy)
@@ -301,6 +301,19 @@
self.assertTrue(self.WaitUntil(
lambda: self._GotContentHistory('British throne', url)))
+ def testOmniboxSearchHistory(self):
+ """Verify Page navigation/search from omnibox are added to the history."""
+ url = self.GetFileURLForDataPath('title2.html')
+ self.NavigateToURL(url)
+ self.AppendTab(pyauto.GURL('about:blank'))
+ self.SetOmniboxText('java')
+ self.WaitUntilOmniboxQueryDone()
+ self.OmniboxAcceptInput()
+ history = self.GetHistoryInfo().History()
+ self.assertEqual(2, len(history))
+ self.assertEqual(url, history[1]['url'])
+ self.assertEqual('java - Google Search', history[0]['title'])
+
def _VerifyHasBookmarkResult(self, matches):
"""Verify that we have a bookmark result."""
matches_starred = [result for result in matches if result['starred']]
« 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