| 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..b822918c0e180fae565d0641c307ee3d829c70a9 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
|
| + search_query = os.path.join('chrome', 'test', 'data')
|
| self.WaitUntil(
|
| - lambda: self.FindInPage('data', tab_index=1)['match_count'],
|
| + lambda: self.FindInPage(search_query, tab_index=1)['match_count'],
|
| expect_retval=1)
|
| - self.assertEqual(1, self.FindInPage('data', tab_index=1)['match_count'])
|
| + self.assertEqual(
|
| + 1, self.FindInPage(search_query, tab_index=1)['match_count'])
|
| # search in Downloads page
|
| test_utils.DownloadFileFromDownloadsDataDir(self, zip_file)
|
| self.AppendTab(pyauto.GURL('chrome://downloads'))
|
|
|