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 pdf file 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') |
|
Nirnimesh
2011/01/22 02:10:09
update this comment as well
|
| + # Search in pdf file 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') |
|
Nirnimesh
2011/01/22 02:10:09
and this
|
| if __name__ == '__main__': |