Skip to content

[compat] Refactor test#19924

Merged
foolip merged 1 commit intoweb-platform-tests:masterfrom
bocoup:single-test-opt-in-compat
Oct 27, 2019
Merged

[compat] Refactor test#19924
foolip merged 1 commit intoweb-platform-tests:masterfrom
bocoup:single-test-opt-in-compat

Conversation

@jugglinmike
Copy link
Contributor

@jugglinmike jugglinmike commented Oct 26, 2019

testharness.js was recently extended with an API to explicitly opt-in to
the "single page test" feature [1]. As per WPT RFC 28 [2], tests which
do not use this API and which do not declare any subtests will soon be
reported as a harness error.

Update the tests which previously opted in implicitly to instead declare
a single subtest (so that it is no longer a single-page test).

[1] #19449
[2] https://github.com/web-platform-tests/rfcs/blob/master/rfcs/single_test.md

Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test will be as many lines and use less unusual features by just wrapping in test(() => { ... })). I'd propose this for all sync single-page tests really.

@jugglinmike jugglinmike force-pushed the single-test-opt-in-compat branch from 5e3661c to f8fa817 Compare October 27, 2019 17:44
testharness.js was recently extended with an API to explicitly opt-in to
the "single page test" feature [1]. As per WPT RFC 28 [2], tests which
do not use this API and which do not declare any subtests will soon be
reported as a harness error.

Update the tests which previously opted in implicitly to instead declare
a single subtest (so that it is no longer a single-page test).

[1] web-platform-tests#19449
[2] https://github.com/web-platform-tests/rfcs/blob/master/rfcs/single_test.md
@jugglinmike jugglinmike force-pushed the single-test-opt-in-compat branch from f8fa817 to da6aee7 Compare October 27, 2019 17:45
@jugglinmike jugglinmike changed the title [compat] Opt-in to single-page test feature [compat] Refactor test Oct 27, 2019
@jugglinmike
Copy link
Contributor Author

Sure. Since the commit message would no longer describe this solution, I've amended the proposed commit and force-pushed the result to this branch. The original version of this branch is available here.

@foolip foolip merged commit 1092d66 into web-platform-tests:master Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants