Chromium Code Reviews| 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__': |