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

Issue 826343003: Minor improvements to reftests. (Closed)

Created:
5 years, 11 months ago by ojan
Modified:
5 years, 11 months ago
Reviewers:
abarth-chromium
CC:
abarth-chromium, esprehn, mojo-reviews_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Minor improvements to reftests. 1. If notifyTestComplete is called before the first paint, give a clear assert instead of a confusing crash. 2. Add runAfterDisplay. This is a copy of the equivalent file in Blink. Avoids the incorrect 100ms setTimeout. I had thought there was a deeper bug here, but it appears to just be the issue from #1 now that we properly pump frames in testing mode by using a face Surfaces application. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/87cce85d54d6f67aef634b9eda7bb67d897976a3

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address review comment #

Patch Set 3 : Move the check to TestRunner::OnTestComplete so we only assert if we're actually running a pixel/re… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -28 lines) Patch
M sky/tests/harness/reftest.sky View 1 chunk +4 lines, -7 lines 0 comments Download
M sky/tests/harness/reftest-expected.sky View 1 chunk +4 lines, -7 lines 0 comments Download
M sky/tests/harness/reftest-mismatch.sky View 1 chunk +4 lines, -7 lines 0 comments Download
M sky/tests/harness/reftest-mismatch-expected-mismatch.sky View 1 chunk +4 lines, -7 lines 0 comments Download
A sky/tests/resources/run-after-display.sky View 1 1 chunk +11 lines, -0 lines 0 comments Download
M sky/tools/tester/test_runner.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
abarth-chromium
LGTM https://codereview.chromium.org/826343003/diff/1/sky/tests/harness/reftest.sky File sky/tests/harness/reftest.sky (right): https://codereview.chromium.org/826343003/diff/1/sky/tests/harness/reftest.sky#newcode7 sky/tests/harness/reftest.sky:7: }); Should we move this code into a ...
5 years, 11 months ago (2015-01-06 22:48:09 UTC) #2
ojan
https://codereview.chromium.org/826343003/diff/1/sky/tests/harness/reftest.sky File sky/tests/harness/reftest.sky (right): https://codereview.chromium.org/826343003/diff/1/sky/tests/harness/reftest.sky#newcode7 sky/tests/harness/reftest.sky:7: }); On 2015/01/06 22:48:09, abarth wrote: > Should we ...
5 years, 11 months ago (2015-01-06 22:54:41 UTC) #3
ojan
5 years, 11 months ago (2015-01-06 23:41:20 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
87cce85d54d6f67aef634b9eda7bb67d897976a3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698