Automatic update from web-platform-tests
Rename "support" files
This is in preparation for a subsequent commit which will remove support
for the `-support.` filename flag.
--
[tools] Remove support for `support` filename flag
In terms of file interpretation by the WPT infrastructure, naming a file
with the `-support` flag is equivalent to placing it in a directory
named `support`, `resources`, or `tools`. The ability to express the
same intention with different mechanisms allows for variation that adds
no value and needless increases the complexity of the infrastructure and
its documentation. Further, the character sequence of `-support` is
prone to accidental opt-in: a number of tests in this suite currently
include that sequence and are thus not executed in automation.
Remove support for the flag.
--
wpt-commits: 856aa0b0678a07162bbd14b8dda4ffcc7a7aca2f, abfb2bcc1fb01ec5d9c930ff96fe9a8cedae0546
wpt-pr: 17645
Automatic update from web-platform-tests
[docs] Normalize spelling of "test suite"
The documentation uses the terms "testsuite" and "test suite"
interchangeably. Normalize on "test suite."
--
wpt-commits: 03fcaec457809e26a282727951c155b82660e159
wpt-pr: 17797
Automatic update from web-platform-tests
[docs] Expand landing page
Currently, the documentation website's landing page contains only a
table of contents. The introductory material is accessible through the
first link in that index.
Because the landing page is itself an introduction, it ought to offer
some explanation of the project's purpose and structure.
Re-use the introductory text found in the project's README.md file since
this is slightly more complete than the corresponding text in the
"introduction" page. Move other high-level information to the landing
page and rename the "introduction" to "testsuite design" in order to
better describe its more narrow focus.
--
[docs] Correct typos
--
wpt-commits: f3cdfbcb428ca2f711d0b5128264d3f7cfcfd187, 6d60c3d31206401a3e22db74c68429a302443d9f
wpt-pr: 17634
Automatic update from web-platform-tests
[docs] Correct typo in example of user styles
`userstyle` and `nouserstyle` are referenced as CSS class names in this
document, so they should be declared as such.
--
wpt-commits: 0e95bf3183c7358f3bb428f6f1cc3db5e86b1e79
wpt-pr: 17748
Automatic update from web-platform-tests
[docs] Remove unused files
These files have not been used since the documentation site was
re-implemented to use Sphinx. They may be removed without affecting the
published website.
--
wpt-commits: 699d35e4e53a7f4595a43b43bcc96c21e29a80e9
wpt-pr: 17739
Automatic update from web-platform-tests
[docs] Remove legacy substitution escape sequences
The `{% raw %}` and `{% endraw %}` markers were required to correctly
render some content when the documentation website was generated by
Jekyll. They have no meaning in the context of the recently-introduced
Sphinx-powered build system, and they are pass through to the rendered
output directly.
Remove the markers.
--
wpt-commits: 5267fe13c8a23fe05f952ffd7e790e4d9fe2dcd9
wpt-pr: 17737
Automatic update from web-platform-tests
[docs] Consolidate instructions on server features (#17482)
* [docs] Consolidate instructions on server features
The file `server-side.md` duplicates much of the information available
in the `docs/` directory. Remove `server-side.md`, preserving its unique
content in the relevant files within the `docs/` directory.
--
wpt-commits: 8119bc10583682676a3db9806c82ed4044e88e13
wpt-pr: 17482
Automatic update from web-platform-tests
[docs] Relocate instruction for reviewers
This information is not relevant for first-time contributors. Including
it in the same document as the instructions for new contributors risks
confusing or intimidating the less experienced audience.
Relocate the instructions to a dedicated document that can be discovered
by those who specifically wish to learn about reviewing submissions.
--
wpt-commits: 53bf566b00aa0efd9b80496d5d488a338b16ec1c
wpt-pr: 17371
Automatic update from web-platform-tests
[docs] Simplify recommendation for advanced usage
The steps listed in the "Tips & Tricks" section largely summarize the
instructions in the preceeding sections with two exeptions:
1. the recommendation to rebase (which lacks a definition)
2. the warning against modifying the branch following submission (which
conflicts with a prior section)
Remove the steps and expand the recommendation of Pro Git.
--
wpt-commits: 4b93a2e9c9f904265ae755291ca253045adb3f66
wpt-pr: 17369
Automatic update from web-platform-tests
[docs] Add detail on writing Python handlers (#17386)
Extend the documentation on writing Python handlers to more completely
describe the feature. Introduce a short example to concretely
demonstrate its usage. Apply similar changes to the corresponding
documentation in the `wptserve` directory for parity.
--
wpt-commits: acbefd606a1b9284b96d21a4a332d0202e36d531
wpt-pr: 17386
Automatic update from web-platform-tests
[docs] Deprecate some requirement flags (#15964)
Reference: https://github.com/web-platform-tests/wpt/issues/5293
Also update the example to use non-deprecated flags.
--
wpt-commits: a56df4a639b5e1c278037d53ce461f66e06c902a
wpt-pr: 15964
Automatic update from web-platform-tests
[docs] Reorganize information on Ahem
WPT maintains a document dedicated to configuring systems to run the
tests. Relocate the instructions on installing Ahem to this document,
and reference them from their original location (an explanation of how
to use the font to author tests).
--
wpt-commits: 49e92561e87e4e1dd7a798dc74f69378b4526878
wpt-pr: 16339
Automatic update from web-platform-tests
[docs] Enable Sphinx's "nit-picky" mode
The `-n` flag to Sphinx is documented as "warn about all missing
references." Enable that flag and correct the missing references which
were previously tolerated.
--
[docs] Incorporate wptserve documentation
While Sphinx is capable of including the contents of files which exist
outside of the documentation root (via the `include` directive), it
interprets such text in the context of the including file. That makes
the mechanism inappropriate for including documentation that references
still other files using relative paths.
To address this, create a symbolic link to the `wptserve` source
directory. Fix or ignore infractions in the newly-incorporated files.
--
wpt-commits: 929bb86fff798cac3b94af7a2549480fac40a84e, a54dccec285341423d3e956bcbdbaac5b0e45ab8
wpt-pr: 17418
Automatic update from web-platform-tests
[docs] Increase strictness of build process (#17401)
Use the `-W` flag to interpret Sphinx warnings as errors, causing the
build to fail in the presence of either. This makes various authoring
mistakes more visible. Perhaps most importantly: it highlights instances
of "orphaned" content.
Fix all details which were previously reported as warnings and thus
permitted.
--
wpt-commits: 9c6304b71c5ee090ebc1eef02ab32b70444d9704
wpt-pr: 17401
Automatic update from web-platform-tests
Link to testdriver docs from the main docs site (#17362)
* Link to testdriver docs from the main docs site
`testdriver.md` and `testdriver-tutorial.md` aren't correctly indexed anywhere
because of https://github.com/bocoup/wpt-docs/issues/1 .
This PR manually adds them to the ToC in "Writing Tests" as per user requests.
* fixup! sorted
--
wpt-commits: da3b6e4dfafe250800c490cee949b2b405364ecd
wpt-pr: 17362
Automatic update from web-platform-tests
[docs] Generalize desc of Python file handlers
Remove references to PHP since readers may not be familiar with that
language.
--
[docs] Integrate wptserve documentation
Relocate instructions that are specifically geared towards test authors
to the "docs" directory. Persist API documentation in its current
location and configure Sphinx to include relevant aspects in the
generated website.
--
wp5At-commits: fe3019b4c6526136171192a0f7e993b06f59f62b, eeb34a17faace5d8b05abee1f4c56536a44a9cee
wpt-pr: 17039
Automatic update from web-platform-tests
[docs] Add information on virtualenv (#16670)
Many of the subcommands of the WPT CLI require the `virtualenv` utility,
but the installation instructions did not instruct contributors to
install it. Add an installation step describing how to install the
dependency.
--
wp5At-commits: 9954b61de31f317c7a0a3e286aca0731b81e7e5f
wpt-pr: 16670
Automatic update from web-platform-tests
[docs] Automatically generate CLI documentation (#16851)
Command-line usage information was previously only available to users
who had successfully installed wptrunner. Consuming the information in
that form (e.g. navigating between sub-commands, scrolling through pages
of content and searching for keywords) also required some proficiency
with the command-line.
Extend the documentation build process to include this information in
the project website. This makes it easier to consume for those with
limited experience using the command-line, and in particular, it adds
the content to the data indexed by the website's "search" feature.
Because this content is generated from the state of the interface, it
avoids the need to maintain documentation separately.
This is implemented via a new code path that eagerly load wptrunner's
complete command-line interface. The new `create_complete_parser` is
consumed by the `sphinx-argparse` module to produce the rendered
documentation.
--
wp5At-commits: 3149a4323132331e0179d85fdcf35b13c5df9f2f
wpt-pr: 16851
Automatic update from web-platform-tests
Remove now unneeded docs/Gemfile (#16832)
This related to the old Jekyll based setup
--
wp5At-commits: ddb026746e7e33b3b16fb160b43aea9550f08322
wpt-pr: 16832
Automatic update from web-platform-tests
[docs] Re-implement build process using Sphinx
Prior to this commit, WPT used the Jekyll static site generator [1] to
create a website from the project documentation. Jekyll has some
restrictions which limit the utility of the generated website. Sphinx
[2] has a number of features which will enable future improvements to
the documentation
- it can including content from files located outside of the designated
"documentation" directory (some maintainers prefer to organize content
elsewhere [3])
- it can generate documentation for Python CLIs like wptrunner [4]
- the website it produces has a fully-featured client-side search
interface
- it can generating documentation for arbitrary Python files (the WPT
documentation occasionally falls out of sync with the project's custom
linter)
- it detects and reports broken links and orphaned content (the WPT
documentation has suffered from both problems in the past [5] [6] [7])
- as a Python tool, it presents less friction for local development than
the Ruby-based Jekyll
Although Sphinx parses content in the reStructured Text format by
default, the existing content in WPT is formatted in Markdown. Markdown
is generally preferable for this purpose because it is more familiar to
the potential contributors to WPT and because the maintainers have no
immediate plans to output to a format that is not a website. In
recognition of this, enable the project's support for CommonMark.
[1] https://jekyllrb.com/
[2] https://www.sphinx-doc.org
[3] https://github.com/web-platform-tests/wpt/issues/5289
[4] https://github.com/ribozz/sphinx-argparse
[5] https://github.com/web-platform-tests/wpt/issues/5299
[6] https://github.com/web-platform-tests/wpt/issues/10501
[7] https://github.com/web-platform-tests/wpt/issues/11479
--
Use rST syntax for tables
--
[docs] Introduce tables of contents
In addition to enhancing content discovery for site visitors, thoroughly
applying Sphinx's "table of contents" feature allows the tool to report
when content is not reachable from any page on the website. So-called
"orphaned" content will be integrated in a subsequent commit.
By using the `eval_rst` codeblock, this project can rely on advanced
features available only to reStructured Text without sacrificing the
familiarity of Markdown.
--
[docs] Integrate orphaned content
--
[docs] Rename files to preserve original URLs
Previously, the project's documentation website was built using the
Jekyll static site generator. That tool requires that site content be
placed within directories whose name is prefixed with an underscore
character (`_`). The leading underscore is removed from the generated
content, so it is not present in the URLs of the resultant website.
The Sphinx tool does not use this mechanism for content designation.
Directories with a leading underscore are recreated in the generated
site.
Rename the directories by removing the leading underscore so that the
content generated by Sphinx is available at the same URL as the content
generated by Jekyll. Update internal links accordingly.
This change set was created using the following commands:
git mv {_,}writing-tests/
git mv {_,}running-tests/
git mv {_,}reviewing-tests/
git mv {_,}admin/
git mv {_,}appendix/
git ls-files . -z | \
xargs -0 sed -i 's/_\(writing-tests\|running-tests\|reviewing-tests\|admin\|appendix\)/\1/g'
--
[docs] Build w/GH Actions and deploy w/GH Pages
--
wp5At-commits: 02d56b7c166590601d8168dbd4e0e92532552abf, afef08f5bf1149bdf7dc4fdb1584c754d8e230a0, 238ea486f7b9adf33044dd438eb32b1151bbde4f, 22d851e14a45e0c2d044b3b595a63ba3f153f254, 970437d5648288c44152eaa4e8a73e247d343bca, 43a1f0b83446a492626ae5bb7364d080cadb2f46
wpt-pr: 16822
Automatic update from web-platform-tests
[docs] Re-implement build process using Sphinx
Prior to this commit, WPT used the Jekyll static site generator [1] to
create a website from the project documentation. Jekyll has some
restrictions which limit the utility of the generated website. Sphinx
[2] has a number of features which will enable future improvements to
the documentation
- it can including content from files located outside of the designated
"documentation" directory (some maintainers prefer to organize content
elsewhere [3])
- it can generate documentation for Python CLIs like wptrunner [4]
- the website it produces has a fully-featured client-side search
interface
- it can generating documentation for arbitrary Python files (the WPT
documentation occasionally falls out of sync with the project's custom
linter)
- it detects and reports broken links and orphaned content (the WPT
documentation has suffered from both problems in the past [5] [6] [7])
- as a Python tool, it presents less friction for local development than
the Ruby-based Jekyll
Although Sphinx parses content in the reStructured Text format by
default, the existing content in WPT is formatted in Markdown. Markdown
is generally preferable for this purpose because it is more familiar to
the potential contributors to WPT and because the maintainers have no
immediate plans to output to a format that is not a website. In
recognition of this, enable the project's support for CommonMark.
[1] https://jekyllrb.com/
[2] https://www.sphinx-doc.org
[3] https://github.com/web-platform-tests/wpt/issues/5289
[4] https://github.com/ribozz/sphinx-argparse
[5] https://github.com/web-platform-tests/wpt/issues/5299
[6] https://github.com/web-platform-tests/wpt/issues/10501
[7] https://github.com/web-platform-tests/wpt/issues/11479
--
Use rST syntax for tables
--
[docs] Introduce tables of contents
In addition to enhancing content discovery for site visitors, thoroughly
applying Sphinx's "table of contents" feature allows the tool to report
when content is not reachable from any page on the website. So-called
"orphaned" content will be integrated in a subsequent commit.
By using the `eval_rst` codeblock, this project can rely on advanced
features available only to reStructured Text without sacrificing the
familiarity of Markdown.
--
[docs] Integrate orphaned content
--
[docs] Rename files to preserve original URLs
Previously, the project's documentation website was built using the
Jekyll static site generator. That tool requires that site content be
placed within directories whose name is prefixed with an underscore
character (`_`). The leading underscore is removed from the generated
content, so it is not present in the URLs of the resultant website.
The Sphinx tool does not use this mechanism for content designation.
Directories with a leading underscore are recreated in the generated
site.
Rename the directories by removing the leading underscore so that the
content generated by Sphinx is available at the same URL as the content
generated by Jekyll. Update internal links accordingly.
This change set was created using the following commands:
git mv {_,}writing-tests/
git mv {_,}running-tests/
git mv {_,}reviewing-tests/
git mv {_,}admin/
git mv {_,}appendix/
git ls-files . -z | \
xargs -0 sed -i 's/_\(writing-tests\|running-tests\|reviewing-tests\|admin\|appendix\)/\1/g'
--
[docs] Build w/GH Actions and deploy w/GH Pages
--
wpt-commits: 825f7f95c17742cc69068abc3ccc32f373b8a67f, c06b9b330ab485fa33272bfa6585d650d14af944, 685a1275cc3ed8d5c205b1bf619ce92e776b8ca9, 560fe29f9a067470feb2a9d7a79598130d61260a, 79bf4fc70ce1e3e1c584ab89b3650e7917b56db7, fa5fa41971171e41da4db073aa09e9a95b07c3a7
wpt-pr: 16458
Automatic update from web-platform-tests
[docs] Document wdspec tests (#16632)
Add information on the expected format and patterns of WebDriver
specification tests. Consistently refer to this type of test using its
internal name, "wdspec," in order to avoid possible confusion with other
tests types which happen to use WebDriver for automation purposes.
--
wpt-commits: c55c49fef8a5aa01f506ad755c6f7c44d889a34e
wpt-pr: 16632
Automatic update from web-platform-tests
[docs] Restructure explanations of test types (#16360)
The project documentation includes two lists of WPT's various test
types. Update these lists in the interest of helping readers orient
themselves to the project.
- Present reftests and visual tests under a generic "rendering test"
item in recognition of the related nature of those two test types. Use
the new item in the "Writing Tests" document to recommend the
rendering test guidelines.
- Consistently introduce WebDriver tests in both lists
--
wpt-commits: 77076ee9875bd023536950be3e087b539b788f5a
wpt-pr: 16360
Automatic update from web-platform-tests
Update lint for `internals` to not assume `window.internals` (#16605)
A few cases have slipped through that don't use `window.internals` but
just use `internals.something` directly. One of these is being fixed:
https://chromium-review.googlesource.com/c/chromium/src/+/1567748
--
wpt-commits: 5be8c10ee5e6f1bd22c1788888162dd3ea1990b7
wpt-pr: 16605
Automatic update from web-platform-tests
Add a note about jsshell tests to the documentation. (#16325)
Fixes#16255.
--
wpt-commits: 12df60a6589df4ce935e29a47e20593f11ac124e
wpt-pr: 16325
Automatic update from web-platform-tests
[Azure Pipelines] Enable experimental Server Timing in Safari TP (#16177)
Like https://github.com/web-platform-tests/results-collection/pull/621.
Also update documentation to match.
--
wpt-commits: d11578defbed3c7c175de5510c4bb122bc81702b
wpt-pr: 16177
Automatic update from web-platform-tests
Remove inactive reviewers (#14798)
This removes reviewers who have had more than three review requests in
the past year but who haven't reviewed anything.
Adds a few extra reviewers based on discussions in the PR thread
looking for reviewers for directories that otherwise would've ended up
with none.
--
wpt-commits: a5f707c18b3d893a6e332994064911c2f11e800d
wpt-pr: 14798
Automatic update from web-platform-tests
Add support for fuzzy matching in reftests (#12187)
This allows fuzzy matching in reftests in which a comparison can
succeed if the images are different within a specified tolerance. It
is useful in the case of antialiasing, and in other scenarios where
it's not possible to make an exact match in all cases.
Differences between tests are characterised by two values:
* The maximum difference for any pixel on any color channel (in the
range 0 to 255)
* The maximum total number of differing pixels
The fuzziness can be supplied in two places, according to whether it's
a property of the test or of the implementation:
* In the reftest itself, using a <meta name=fuzzy> tag
* In the expectation metadata file using a fuzzy: key that takes a
list
The general format of the fuzziness specifier is
range = [name "="] [digits, "-"], digits
fuzziness = [ url, "-" ], range, ";", range
name = "maxDifference" | "totalPixels"
The first range represents the maximum difference of any channel per
pixel and the second represents the total number of pixel
differences. So for example a specifier could be:
* "maxDifference=10;totalPixels=300" - meaning a difference of exactly
10 per color channel and exactly 300 pixels different in total (all
ranges are inclusive).
* "5-10;200-300" - meaning a maximum difference of between 5 and 10
per color channel and between 200 and 300 pixels differing in total
The definition of url is a little different between the meta element
and the expecation metadata. In the first case the url is resolved
against the current file, and applies to any reference in the current
file with that name. So for example
<meta name="fuzzy" content="option-1-ref.html:5;200">
would allow a fuzziness of up to 5 on a specific channel and up to 200
opixels different for comparisons involving the file containing the
meta element and option-1-ref.html.
In the case of expectation metadata, the metadata is always associated
with the root test, so urls are always resolved relative to that. In
the case as above where only a single URL is supplied, any reference
document with that URL will have the fuzziness applied for whatever
comparisons it's involved in e.g.
[test1.html]
fuzzy: option-1-ref.html:5;200
would apply the fuziness to any comparison involving option-1-ref.html
whilst running the set of reftests rooted on test1.html. To specify an
exact comparison for the fuzziness, one can also supply a full
reference pair e.g.
[test1.html]
fuzzy: subtest.html==option-1-ref.html:5;200
in which case the fuzziness would only apply to "match" comparison
involving subtest.html on the lhs and option-1-ref.html on the
rhs (both resolved relative to test1.html).
--
wpt-commits: 1f570a686843ca10f151a79956ee16110f4a4d42
wpt-pr: 12187
Automatic update from web-platform-tests
[docs] Correct page formatting (#15532)
Insert the YAML frontmatter which distinguishes page content and causes
Jekyll to create an HTML document during the website rendering process.
--
wpt-commits: 70df598b894bfa4a7122720608a3110cb25ceb42
wpt-pr: 15532
Automatic update from web-platform-tests
[docs] Reorganize information on running the tests
Previously, information was organized as follows:
- Section: Introduction
- Page: Introduction
- Introductory material
- Instructions for running the tests manually
- Abbreviated instructions for `wpt run`
- Section: Running the Tests
- Page: Running the Tests
- Instructions for `wpt run`
- Instructions for the web runner
- Notes on writing a custom runner
Dispersing the information about "test running" across multiple sections
tended to dilute the meaning of each section. It also made the
introduction lengthier and possibly more intimidating (especially for
readers who have no intention of running the tests manually).
Restructure the information as follows:
- Section: Introduction
- Page: Introduction
- Introductory material
- Section: Running the Tests
- Page: Running the Tests
- Instructions for running the tests manually
- Reference to "Running the Tests in Automation"
- Page: Running the Tests in Automation
- Instructions for `wpt run`
- Instructions for the web runner
- Notes on writing a custom runner
--
wpt-commits: c271bdc85efc27839b01ec5aecf4f3a22084d820
wpt-pr: 13125
Automatic update from web-platform-tests
Change reftest size to 800x600 everywhere (#12695)
With Firefox, with the internal reftest runner (used by default), this
doesn't actually change the reftest size in Firefox versions prior to
66 (currently on the beta channel); to get the correct behaviour with
older versions of Firefox, you must pass `--reftest-external` to use
the external reftest runner.
--
wpt-commits: d5f07ed3b5186e553940a3d5c547067850a4e3f0
wpt-pr: 12695
Automatic update from web-platform-tests
[testdriver] Enable manual interaction (#11173)
The testdriver.js utility allows tests which require user input to be
fully automated. It requires that the browser be under the control of a
WebDriver server in order to do this.
In test maintenance contexts, this requirement can slow development
because a new browsing session must be created for each trial, and
debugging tools such as the developer's console cannot be used.
This requirement also limits the tests' value to a larger audience when
published online. Visitors to sites like w3c-test.org are interested in
observing test results experimentally, but although they may be capable
of providing the expected input, the hard requirement on WebDriver will
cause tests to fail unconditionally.
Extend the framework to accept traditional human input if the test is
being run without the WebDriver technology. This allows test authors to
debug tests and other interested parties to verify results in browsers
of their choosing. It does not interfere with fully-automated test
execution.
--
wpt-commits: bfd9504d321d35ebfbbe56ab6c7f5c0642495719
wpt-pr: 11173
Automatic update from web-platform-tests
[docs] Correct page formatting (#15532)
Insert the YAML frontmatter which distinguishes page content and causes
Jekyll to create an HTML document during the website rendering process.
--
wpt-commits: 70df598b894bfa4a7122720608a3110cb25ceb42
wpt-pr: 15532
Automatic update from web-platform-tests
[docs] Reorganize information on running the tests
Previously, information was organized as follows:
- Section: Introduction
- Page: Introduction
- Introductory material
- Instructions for running the tests manually
- Abbreviated instructions for `wpt run`
- Section: Running the Tests
- Page: Running the Tests
- Instructions for `wpt run`
- Instructions for the web runner
- Notes on writing a custom runner
Dispersing the information about "test running" across multiple sections
tended to dilute the meaning of each section. It also made the
introduction lengthier and possibly more intimidating (especially for
readers who have no intention of running the tests manually).
Restructure the information as follows:
- Section: Introduction
- Page: Introduction
- Introductory material
- Section: Running the Tests
- Page: Running the Tests
- Instructions for running the tests manually
- Reference to "Running the Tests in Automation"
- Page: Running the Tests in Automation
- Instructions for `wpt run`
- Instructions for the web runner
- Notes on writing a custom runner
--
wpt-commits: c271bdc85efc27839b01ec5aecf4f3a22084d820
wpt-pr: 13125
Automatic update from web-platform-tests
Change reftest size to 800x600 everywhere (#12695)
With Firefox, with the internal reftest runner (used by default), this
doesn't actually change the reftest size in Firefox versions prior to
66 (currently on the beta channel); to get the correct behaviour with
older versions of Firefox, you must pass `--reftest-external` to use
the external reftest runner.
--
wpt-commits: d5f07ed3b5186e553940a3d5c547067850a4e3f0
wpt-pr: 12695