Skip to content

web-platform-tests/wpt

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
Jun 17, 2022
Dec 6, 2022
Feb 28, 2023
Apr 8, 2023
Apr 8, 2023
Jan 26, 2022
Apr 8, 2023
Mar 6, 2023
Mar 7, 2019
Oct 8, 2022
Oct 2, 2021
Apr 8, 2023
Apr 8, 2023
Apr 8, 2023
Jul 18, 2018
Jul 19, 2022
Jan 13, 2023
Apr 8, 2023
Dec 20, 2022
Oct 5, 2022
Mar 2, 2023
Sep 16, 2022
Apr 8, 2023
Mar 2, 2023
Feb 10, 2021
Jan 13, 2023
Apr 8, 2023
Apr 8, 2023
Apr 8, 2023
Apr 8, 2023
Nov 10, 2022
Apr 8, 2023
Sep 18, 2022
Apr 8, 2023
Apr 8, 2023
Nov 25, 2022
Jun 14, 2022
Feb 2, 2021
Jun 26, 2020
May 12, 2021
Apr 8, 2023
May 1, 2020
May 17, 2022
Apr 8, 2023
Apr 8, 2023
Feb 20, 2023
Feb 7, 2023
Apr 8, 2023
Apr 8, 2023
Jan 18, 2021
Nov 8, 2021
May 11, 2022
Dec 22, 2020
Aug 2, 2022
Dec 5, 2022
Apr 8, 2023
Jan 27, 2023
Nov 25, 2022
Apr 8, 2023
Apr 22, 2020
Feb 22, 2023
Dec 9, 2019
Dec 9, 2019
Jan 16, 2023
Apr 8, 2023
Jan 9, 2023
Dec 25, 2021
Apr 8, 2023
Apr 8, 2023
Apr 9, 2022
Jan 20, 2023
Sep 13, 2021
Sep 28, 2021
Nov 24, 2022
Apr 8, 2023
Jan 31, 2023
Apr 8, 2023
Jun 29, 2022
Apr 25, 2022
Jan 27, 2023
Jun 1, 2022
Apr 8, 2023
Mar 1, 2023
Apr 5, 2022
Feb 16, 2023
Dec 2, 2022
Dec 21, 2020
Jul 18, 2018
Mar 24, 2023
Jan 26, 2022
May 4, 2022
Oct 23, 2019
Jan 26, 2022
Apr 8, 2023
Feb 20, 2023
Mar 30, 2021
Apr 8, 2023
Nov 10, 2022
Apr 8, 2023
Apr 8, 2023
Dec 21, 2020
Sep 13, 2021
Dec 23, 2020
Feb 14, 2023
Jan 18, 2023
Dec 22, 2020
Dec 22, 2020
Jan 22, 2022
Nov 18, 2022
Oct 8, 2021
Oct 14, 2021
Feb 3, 2023
Nov 23, 2022
Mar 18, 2021
Jan 30, 2023
Apr 8, 2023
Apr 8, 2023
Jan 26, 2022
Apr 8, 2021
Apr 8, 2023
May 20, 2021
Feb 16, 2022
Jul 30, 2019
Apr 8, 2023
Feb 22, 2021
Aug 18, 2022
Oct 3, 2022
May 13, 2022
Feb 1, 2023
Oct 19, 2022
Apr 8, 2023
Oct 5, 2022
Mar 6, 2023
Mar 3, 2023
Mar 30, 2022
Jan 21, 2023
Jan 27, 2023
Apr 16, 2021
Apr 8, 2023
Oct 24, 2022
May 19, 2020
Feb 12, 2021
Feb 14, 2023
Oct 22, 2020
Jun 30, 2022
Sep 20, 2022
Dec 22, 2020
Sep 7, 2022
Nov 24, 2022
Nov 24, 2021
Jan 25, 2023
Sep 15, 2021
Mar 30, 2022
Mar 30, 2022
Nov 9, 2022
Apr 8, 2023
May 5, 2020
Feb 3, 2023
Dec 22, 2020
Dec 22, 2020
Dec 19, 2022
Jan 20, 2021
Apr 8, 2023
Apr 8, 2023
Sep 24, 2020
Feb 11, 2022
Feb 24, 2023
Aug 18, 2021
May 19, 2021
Jan 26, 2022
Mar 16, 2022
Oct 4, 2022
Dec 9, 2022
Sep 19, 2022
Oct 22, 2022
Apr 13, 2022
Jan 18, 2023
Mar 1, 2023
Apr 8, 2023
Jan 17, 2023
Dec 22, 2020
Apr 8, 2023
Feb 24, 2023
Feb 9, 2023
Feb 20, 2023
Jan 26, 2023
Apr 8, 2023
Jan 14, 2022
Apr 8, 2023
Nov 18, 2022
Apr 8, 2023
Apr 8, 2023
Jan 3, 2023
Apr 8, 2023
Apr 8, 2023
Sep 28, 2022
Jan 4, 2023
Nov 23, 2021
Apr 8, 2023
Apr 8, 2023
Apr 8, 2023
Apr 8, 2023
Apr 8, 2023
Apr 8, 2023
Feb 16, 2023
Apr 8, 2023
Dec 9, 2019
Apr 8, 2023
Dec 21, 2020
Apr 8, 2023
Apr 8, 2023
Apr 12, 2022
Apr 8, 2023
Apr 8, 2023
Oct 21, 2022
Dec 7, 2022
Oct 14, 2021
Apr 8, 2023
Nov 17, 2022
Sep 11, 2022
Jan 26, 2022
Nov 18, 2021
Jul 15, 2021
Sep 23, 2022
Apr 8, 2023
Feb 17, 2023
Apr 8, 2023
Feb 14, 2023
Apr 8, 2023
Feb 21, 2023
Dec 22, 2020
Feb 8, 2023
Feb 7, 2023
Apr 8, 2023
Apr 8, 2023
Apr 8, 2023
Jan 23, 2020
Aug 14, 2020
Jan 21, 2022
Jan 11, 2023
Nov 18, 2022
Dec 3, 2021
Apr 8, 2023
Apr 8, 2023
Apr 8, 2023
Feb 27, 2021
Oct 15, 2021
Jan 31, 2023
Apr 8, 2023
Jan 31, 2023
Apr 8, 2023
Sep 26, 2022
Oct 4, 2022
Feb 24, 2023
Apr 8, 2023
May 14, 2021
Apr 8, 2023
Feb 15, 2023
Feb 9, 2023
Apr 8, 2023
Apr 21, 2021
Mar 25, 2021
Feb 14, 2023
Apr 8, 2023
May 22, 2019
Jan 24, 2023
Feb 12, 2019
Aug 4, 2022
Feb 15, 2023
Jun 25, 2021
Jun 5, 2020
Apr 27, 2021
Dec 17, 2021
Apr 8, 2023
Apr 8, 2023
Apr 20, 2020

Repository files navigation

The web-platform-tests Project

Taskcluster CI Status documentation manifest Python 3

The web-platform-tests Project is a cross-browser test suite for the Web-platform stack. Writing tests in a way that allows them to be run in all browsers gives browser projects confidence that they are shipping software that is compatible with other implementations, and that later implementations will be compatible with their implementations. This in turn gives Web authors/developers confidence that they can actually rely on the Web platform to deliver on the promise of working across browsers and devices without needing extra layers of abstraction to paper over the gaps left by specification editors and implementors.

The most important sources of information and activity are:

  • github.com/web-platform-tests/wpt: the canonical location of the project's source code revision history and the discussion forum for changes to the code
  • web-platform-tests.org: the documentation website; details how to set up the project, how to write tests, how to give and receive peer review, how to serve as an administrator, and more
  • wpt.live: a public deployment of the test suite, allowing anyone to run the tests by visiting from an Internet-enabled browser of their choice
  • wpt.fyi: an archive of test results collected from an array of web browsers on a regular basis
  • Real-time chat room: the wpt:matrix.org matrix channel; includes participants located around the world, but busiest during the European working day.
  • Mailing list: a public and low-traffic discussion list
  • RFCs: a repo for requesting comments on substantial changes that would impact other stakeholders or users; people who work on WPT infra are encouraged to watch the repo.

If you'd like clarification about anything, don't hesitate to ask in the chat room or on the mailing list.

Setting Up the Repo

Clone or otherwise get https://github.com/web-platform-tests/wpt.

Note: because of the frequent creation and deletion of branches in this repo, it is recommended to "prune" stale branches when fetching updates, i.e. use git pull --prune (or git fetch -p && git merge).

Running the Tests

See the documentation website and in particular the system setup for running tests locally.

Command Line Tools

The wpt command provides a frontend to a variety of tools for working with and running web-platform-tests. Some of the most useful commands are:

  • wpt serve - For starting the wpt http server
  • wpt run - For running tests in a browser
  • wpt lint - For running the lint against all tests
  • wpt manifest - For updating or generating a MANIFEST.json test manifest
  • wpt install - For installing the latest release of a browser or webdriver server on the local machine.
  • wpt serve-wave - For starting the wpt http server and the WAVE test runner. For more details on how to use the WAVE test runner see the documentation.

Windows Notes

On Windows wpt commands must be prefixed with python or the path to the python binary (if python is not in your %PATH%).

python wpt [command]

Alternatively, you may also use Bash on Ubuntu on Windows in the Windows 10 Anniversary Update build, then access your windows partition from there to launch wpt commands.

Please make sure git and your text editor do not automatically convert line endings, as it will cause lint errors. For git, please set git config core.autocrlf false in your working tree.

Publication

The master branch is automatically synced to wpt.live and w3c-test.org.

Contributing

Save the Web, Write Some Tests!

Absolutely everyone is welcome to contribute to test development. No test is too small or too simple, especially if it corresponds to something for which you've noted an interoperability bug in a browser.

The way to contribute is just as usual:

  • Fork this repository (and make sure you're still relatively in sync with it if you forked a while ago).
  • Create a branch for your changes: git checkout -b topic.
  • Make your changes.
  • Run ./wpt lint as described above.
  • Commit locally and push that to your repo.
  • Create a pull request based on the above.

Issues with web-platform-tests

If you spot an issue with a test and are not comfortable providing a pull request per above to fix it, please file a new issue. Thank you!