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

Unified Diff: functional/find_in_page.py

Issue 6297014: Adding web pdf files to the tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/
Patch Set: Created 9 years, 11 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 | functional/pdf.py » ('j') | functional/pdf.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: functional/find_in_page.py
===================================================================
--- functional/find_in_page.py (revision 72215)
+++ functional/find_in_page.py (working copy)
@@ -239,11 +239,16 @@
properties = self.GetBrowserInfo()['properties']
if properties['branding'] != 'Google Chrome':
return
+ # Search in the disk pdf file
Nirnimesh 2011/01/22 01:42:26 Search in pdf over file://
url = self.GetFileURLForPath(os.path.join(
self.DataDir(), 'plugin', 'Embed.pdf'))
self.NavigateToURL(url)
search_count = self.FindInPage('adobe')['match_count']
- self.assertEqual(8, search_count, 'Failed to find in the pdf file')
+ self.assertEqual(8, search_count, 'Failed to find in the disk pdf file')
+ # Search in the web pdf file
Nirnimesh 2011/01/22 01:42:26 Search in pdf over http://
+ self.NavigateToURL('http://www.irs.gov/pub/irs-pdf/fw4.pdf')
+ search_count = self.FindInPage('Allowances')['match_count']
+ self.assertEqual(16, search_count, 'Failed to find in the web pdf file')
if __name__ == '__main__':
« no previous file with comments | « no previous file | functional/pdf.py » ('j') | functional/pdf.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698