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

Issue 8913012: Fix flakiness and re-enable http search in find_in_page.FindMatchTests.testSearchInPDF (Closed)

Created:
9 years ago by vclarke1
Modified:
9 years ago
Reviewers:
anantha, kkania, Nirnimesh
CC:
chromium-reviews
Visibility:
Public.

Description

Fix flakiness and re-enable http search in find_in_page.FindMatchTests.testSearchInPDF Add loop to _VerifySearchInPDFURL to try FindInPage 10 times and re-raise the exception on the final loop. This is required because _GetResultFromJSONRequest appears to timeout if called before the PDF has loaded. Add timeout parameter to pyauto.FindInPage to be passed to _GetResultFromJSONRequest to speed up the loop in _VerifySearchInPDFURL from the default of 45 seconds to 1 second. Re-enable test on Mac. BUG=107448, 70927, 93956 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114589

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -10 lines) Patch
M functional/PYAUTO_TESTS View 1 1 chunk +0 lines, -2 lines 0 comments Download
M functional/find_in_page.py View 1 2 3 chunks +14 lines, -5 lines 0 comments Download
M pyautolib/pyauto.py View 1 2 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
vclarke1
find_in_page.FindMatchTests.testSearchInPDF passed on try servers: mac: http://build.chromium.org/p/tryserver.chromium/builders/mac/builds/7227/steps/pyauto_functional_tests/logs/stdio linux: http://build.chromium.org/p/tryserver.chromium/builders/linux/builds/7338/steps/pyauto_functional_tests/logs/stdio win: http://build.chromium.org/p/tryserver.chromium/builders/win/builds/7698/steps/pyauto_functional_tests/logs/stdio
9 years ago (2011-12-14 19:45:51 UTC) #1
kkania
lgtm http://codereview.chromium.org/8913012/diff/1/functional/find_in_page.py File functional/find_in_page.py (right): http://codereview.chromium.org/8913012/diff/1/functional/find_in_page.py#newcode219 functional/find_in_page.py:219: # loaded. Add an explanation about the bug ...
9 years ago (2011-12-15 00:41:35 UTC) #2
vclarke1
Changes made per kkania. http://codereview.chromium.org/8913012/diff/1/functional/find_in_page.py File functional/find_in_page.py (right): http://codereview.chromium.org/8913012/diff/1/functional/find_in_page.py#newcode219 functional/find_in_page.py:219: # loaded. On 2011/12/15 00:41:36, ...
9 years ago (2011-12-15 00:52:09 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vclarke@chromium.org/8913012/4001
9 years ago (2011-12-15 00:53:37 UTC) #4
commit-bot: I haz the power
Presubmit check for 8913012-4001 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-15 00:53:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vclarke@chromium.org/8913012/6001
9 years ago (2011-12-15 01:06:38 UTC) #6
commit-bot: I haz the power
Change committed as 114589
9 years ago (2011-12-15 03:21:24 UTC) #7
Nirnimesh
9 years ago (2011-12-15 05:22:04 UTC) #8
http://codereview.chromium.org/8913012/diff/1/pyautolib/pyauto.py
File pyautolib/pyauto.py (right):

http://codereview.chromium.org/8913012/diff/1/pyautolib/pyauto.py#newcode2660
pyautolib/pyauto.py:2660: tab_index=0, windex=0, timeout=-1):
I wasn't aware ActionTimeoutChanger is broken. I'm sure it's used in some other
places.

Powered by Google App Engine
This is Rietveld 408576698