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

Issue 2755503005: Make sure images are loaded before running tests (Closed)

Created:
3 years, 9 months ago by wychen
Modified:
3 years, 8 months ago
Reviewers:
mdjones
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make sure images are loaded before running tests The data URI images began to be decoded asynchronously since https://crbug.com/514206 was fixed. If tests are run before images are decoded, the dimension would be wrong. There was a racing condition between starting the test and decoding the image, and the tests were flaky. The failure rate could be as high as 10% recently. Reload the HTML every time before running the tests and make sure they are loaded before running the tests. Due to timing issues, image_loaded always returned True in 4000 local runs. This fixes flakiness in https://crrev.com/2179593002 (commit 6c16f14). BUG= R=mdjones@chromium.org Committed: 4d66ebb8f592421805397f01b236ceb21742ab35

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M run_jstests.py View 2 chunks +8 lines, -3 lines 2 comments Download
M war/test.html View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (6 generated)
wychen
PTAL
3 years, 9 months ago (2017-03-15 21:25:10 UTC) #3
mdjones
lgtm https://codereview.chromium.org/2755503005/diff/1/run_jstests.py File run_jstests.py (right): https://codereview.chromium.org/2755503005/diff/1/run_jstests.py#newcode70 run_jstests.py:70: while not driver.execute_script(image_loaded): I'd check to see if ...
3 years, 9 months ago (2017-03-22 17:35:05 UTC) #6
wychen
https://codereview.chromium.org/2755503005/diff/1/run_jstests.py File run_jstests.py (right): https://codereview.chromium.org/2755503005/diff/1/run_jstests.py#newcode70 run_jstests.py:70: while not driver.execute_script(image_loaded): On 2017/03/22 17:35:04, mdjones wrote: > ...
3 years, 8 months ago (2017-04-11 00:22:55 UTC) #7
wychen
3 years, 8 months ago (2017-04-11 00:29:22 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4d66ebb8f592421805397f01b236ceb21742ab35 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698