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

Unified Diff: chrome/test/functional/find_in_page.py

Issue 5044001: Fix FindMatchTests.testSearchWithinSpecialURL test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/functional
Patch Set: Change var name and use os.path.join Created 10 years, 1 month 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: 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'))
« 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