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

Issue 2729863004: Support reftest-wait in web-platform-tests (Closed)

Created:
3 years, 9 months ago by smcgruer
Modified:
3 years, 9 months ago
Reviewers:
tkent, qyearsley
CC:
tkent, chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, Peter Beverloo, szager1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support reftest-wait in web-platform-tests The web-platform-tests (wpt) suite allows tests to control when the screenshot is taken for reftests, based on the presence (and then absence) of a 'reftest-wait' class on the root element. To support this mechanism a JavaScript shim is inserted into wpt tests, which uses existing TestRunner methods (waitUntilDone, notifyDone), combined with a MutationObserver on the root element. BUG=698256 Review-Url: https://codereview.chromium.org/2729863004 Cr-Commit-Position: refs/heads/master@{#455009} Committed: https://chromium.googlesource.com/chromium/src/+/255d25e6d389106b75c90110b4e00b022e472cc5

Patch Set 1 #

Patch Set 2 : Add comment, change to string literal, attempt to add LayoutTest #

Patch Set 3 : Fix LayoutTest #

Patch Set 4 : Whitespace fixing #

Total comments: 6

Patch Set 5 : Address reviewer comments #

Patch Set 6 : Fix javascript for case where there is no documentElement #

Patch Set 7 : Add TestExpectations entry #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -3 lines) Patch
M content/shell/test_runner/test_runner.cc View 1 2 3 4 5 4 chunks +34 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/infrastructure/reftest-wait.html View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/infrastructure/reftest-wait-ref.html View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
smcgruer
As per crbug.com/698256, this is just a proof of concept of an idea I had. ...
3 years, 9 months ago (2017-03-03 17:33:02 UTC) #2
qyearsley
+szager, tkent as they have experience with this code and could likely give good feedback ...
3 years, 9 months ago (2017-03-03 23:35:57 UTC) #3
smcgruer
On 2017/03/03 23:35:57, qyearsley wrote: > testharnessreport.js is included in all testharness.js tests, after > ...
3 years, 9 months ago (2017-03-03 23:58:48 UTC) #4
qyearsley
On 2017/03/03 at 23:58:48, smcgruer wrote: > On 2017/03/03 23:35:57, qyearsley wrote: > > testharnessreport.js ...
3 years, 9 months ago (2017-03-04 00:05:27 UTC) #5
smcgruer
On 2017/03/04 00:05:27, qyearsley wrote: > Oh, right - of course. Right, so I can't ...
3 years, 9 months ago (2017-03-04 03:04:12 UTC) #6
qyearsley
LGTM, I think the test is good and the injected JS is a bit easier ...
3 years, 9 months ago (2017-03-06 16:51:43 UTC) #7
smcgruer
On 2017/03/06 16:51:43, qyearsley wrote: > Before submitting I think you'll want to change the ...
3 years, 9 months ago (2017-03-06 17:35:32 UTC) #9
smcgruer
https://codereview.chromium.org/2729863004/diff/60001/content/shell/test_runner/test_runner.cc File content/shell/test_runner/test_runner.cc (right): https://codereview.chromium.org/2729863004/diff/60001/content/shell/test_runner/test_runner.cc#newcode336 content/shell/test_runner/test_runner.cc:336: // javascript that implements the same behavior using TestRunner. ...
3 years, 9 months ago (2017-03-06 17:35:45 UTC) #10
qyearsley
Still LGTM, not sure if szager@ or tkent@ have any thoughts though?
3 years, 9 months ago (2017-03-06 18:36:11 UTC) #11
smcgruer
Added tkent as reviewer for OWNERS (still welcome comments by szager as well!) Fixed the ...
3 years, 9 months ago (2017-03-06 18:46:42 UTC) #12
smcgruer
(Actually +tkent ... )
3 years, 9 months ago (2017-03-06 18:47:00 UTC) #14
tkent
lgtm. external/wpt/webvtt/rendering/cues-with-video/processing-model/dom_override_remove_cue_while_paused.html fails on Windows. Add it to TestExpectations?
3 years, 9 months ago (2017-03-06 22:30:21 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2729863004/110001
3 years, 9 months ago (2017-03-06 23:38:49 UTC) #24
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 00:57:33 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://chromium.googlesource.com/chromium/src/+/255d25e6d389106b75c90110b4e0...

Powered by Google App Engine
This is Rietveld 408576698