Chromium Code Reviews| Index: chrome/test/functional/find_in_page.py |
| diff --git a/chrome/test/functional/find_in_page.py b/chrome/test/functional/find_in_page.py |
| index b925a65c8a5cf789395564f566887b78f6a01d78..4ac0794b6d80f31719858b14cbc087c484db06fa 100644 |
| --- a/chrome/test/functional/find_in_page.py |
| +++ b/chrome/test/functional/find_in_page.py |
| @@ -87,10 +87,12 @@ class FindMatchTests(pyauto.PyUITest): |
| # search in History page |
| self.AppendTab(pyauto.GURL('chrome://history')) |
| # the contents in the history page load asynchronously after tab loads |
| + data_dir_suffix = 'chrome/test/data' |
|
Nirnimesh
2010/11/15 22:05:38
nit: how about "search_string"?
dyu1
2010/11/15 22:57:01
I don't think this will work on Win because of the
kkania
2010/11/15 22:58:53
changed to search_query
kkania
2010/11/15 22:58:53
good catch, using os.path.join now
|
| self.WaitUntil( |
| - lambda: self.FindInPage('data', tab_index=1)['match_count'], |
| + lambda: self.FindInPage(data_dir_suffix, tab_index=1)['match_count'], |
| expect_retval=1) |
| - self.assertEqual(1, self.FindInPage('data', tab_index=1)['match_count']) |
| + self.assertEqual( |
| + 1, self.FindInPage(data_dir_suffix, tab_index=1)['match_count']) |
| # search in Downloads page |
| test_utils.DownloadFileFromDownloadsDataDir(self, zip_file) |
| self.AppendTab(pyauto.GURL('chrome://downloads')) |