diff options
author | rohitbm@google.com <rohitbm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-27 19:14:20 +0000 |
---|---|---|
committer | rohitbm@google.com <rohitbm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-27 19:14:20 +0000 |
commit | 6c3572b9344939dec9a0b599f2fe1a316f108835 (patch) | |
tree | 8d3aab9548f162bd11eb0ac77ea238986c304090 | |
parent | d890c757246f663c452a93fcb4110e82713d32eb (diff) | |
download | chromium_src-6c3572b9344939dec9a0b599f2fe1a316f108835.zip chromium_src-6c3572b9344939dec9a0b599f2fe1a316f108835.tar.gz chromium_src-6c3572b9344939dec9a0b599f2fe1a316f108835.tar.bz2 |
Disabling http pdf find test
Review URL: http://codereview.chromium.org/6324015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72851 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/test/functional/PYAUTO_TESTS | 2 | ||||
-rw-r--r-- | chrome/test/functional/find_in_page.py | 21 |
2 files changed, 13 insertions, 10 deletions
diff --git a/chrome/test/functional/PYAUTO_TESTS b/chrome/test/functional/PYAUTO_TESTS index d12868e..903ea7e 100644 --- a/chrome/test/functional/PYAUTO_TESTS +++ b/chrome/test/functional/PYAUTO_TESTS @@ -47,8 +47,6 @@ 'find_in_page', # Turkish I problem. crbug.com/60638 '-find_in_page.FindMatchTests.testLocalizationAndCaseOrder', - # crbug.com/70454 - '-find_in_page.FindMatchTests.testSearchInPDF', 'execute_javascript', 'history', 'imports', diff --git a/chrome/test/functional/find_in_page.py b/chrome/test/functional/find_in_page.py index 22dae7f..3f52953 100644 --- a/chrome/test/functional/find_in_page.py +++ b/chrome/test/functional/find_in_page.py @@ -230,6 +230,13 @@ class FindMatchTests(pyauto.PyUITest): 'We have only one occurrence in this page so ' 'first and back search coordinates must be same') + def _VerifySearchInPDFURL(self, url, word, expected_count): + """Verify that we can find in a pdf file.""" + self.NavigateToURL(url) + search_count = self.FindInPage(word)['match_count'] + self.assertEqual(expected_count, search_count, + 'Failed to find in the %s pdf file' % url) + def testSearchInPDF(self): """Verify that we can find in a pdf file. @@ -240,16 +247,14 @@ class FindMatchTests(pyauto.PyUITest): if properties['branding'] != 'Google Chrome': return # Search in pdf file over file://. - url = self.GetFileURLForPath(os.path.join( + 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 file:// pdf file') - # 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 http:// pdf file') + self._VerifySearchInPDFURL(file_url, 'adobe', 8) + # Disabling this test crbug.com/70927 + # Search in pdf file over http://. + # http_url = 'http://www.irs.gov/pub/irs-pdf/fw4.pdf' + # self._VerifySearchInPDFURL(http_url, 'Allowances', 16) if __name__ == '__main__': pyauto_functional.Main() |