Chromium Code Reviews| 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 |
|
Nirnimesh
2011/05/19 18:33:55
This should be a one liner.
|
| + to the history.""" |
| + url = self.GetFileURLForDataPath('title2.html') |
| + self.NavigateToURL(url) |
| + self.AppendTab(pyauto.GURL('about:blank')) |
| + self.SetOmniboxText('venkat') |
|
Nirnimesh
2011/05/19 18:33:55
don't use names. Use some other random string.
Ple
|
| + self.OmniboxAcceptInput() |
| + history = self.GetHistoryInfo().History() |
| + self.assertEqual(2, len(history)) |
| + self.assertEqual(url, history[1]['url']) |
| + self.assertEqual('venkat - 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']] |