gecko-dev/testing/web-platform/tests
Boris Zbarsky 3dbe43d96c Bug 1151940 part 3. Make some writable cssom-view attributes that we only allow setting from chrome act the way readonly replaceables would when called from content. r=smaug 2015-04-08 22:50:45 -04:00
..
2dcontext Bug 1134188 - Update web-platform-tests to revision 06dfcf88301bcc02ed25830f0d87c75f041dad4e, a=testonly 2015-02-19 09:32:46 +00:00
DOMEvents Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
FileAPI Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
IndexedDB Bug 1131776 - Use WITHOUT ROWID tables for IndexedDB, r=janv. 2015-02-16 09:48:14 -08:00
WebCryptoAPI Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
WebIDL Bug 1127468 - Update web-platform-tests to revision 83d9681ecf334f5fbe1c4b076601cf3c50f42176, a=testonly 2015-01-30 09:40:54 +00:00
XMLHttpRequest Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
ambient-light Bug 1108382 - Part 12: Do not use non-standard flag argument of String.prototype.replace in testing/web-platform/tests/. r=jgriffin 2015-03-01 09:51:33 +09:00
animation-timing
app-uri Bug 1102907 - Update web-platform-tests to revision 6e35a4cd58f8fa507fc90b9d7b7ff28153759cac, a=testonly 2015-01-13 09:42:41 +00:00
battery-status Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
common Bug 1134188 - Update web-platform-tests to revision 06dfcf88301bcc02ed25830f0d87c75f041dad4e, a=testonly 2015-02-19 09:32:46 +00:00
conformance-checkers Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
content-security-policy Bug 1086999 - CSP: Asterisk (*) wildcard should not allow blob:, data:, or filesystem: when matching source expressions - web platform test update (r=sstamm,jgraham) 2015-03-11 17:16:13 -07:00
cors Bug 1025066 - Update web-platform-tests to revision 430c01c52a60299eaa1dd89fccaa869d7386a4b1, a=testonly 2015-01-10 10:42:44 +00:00
csp Bug 1140145 - Update web-platform-tests to revision 9a2c04e06cb4e63b13b803722d345d085bf0debf, a=testonly 2015-03-06 12:56:11 +00:00
custom-elements Bug 1127468 - Update web-platform-tests to revision 83d9681ecf334f5fbe1c4b076601cf3c50f42176, a=testonly 2015-01-30 09:40:54 +00:00
docs Bug 1140145 - Update web-platform-tests to revision 9a2c04e06cb4e63b13b803722d345d085bf0debf, a=testonly 2015-03-06 12:56:11 +00:00
dom Bug 1150821 - Update web-platform-tests to revision 1bb38c25b4720fbfd8ca086ef9275ac3e465c659, a=testonly 2015-04-03 10:15:36 +01:00
domparsing Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
domxpath
encoding Bug 1127468 - Update web-platform-tests to revision 83d9681ecf334f5fbe1c4b076601cf3c50f42176, a=testonly 2015-01-30 09:40:54 +00:00
eventsource Bug 1084367 - Upgrade wptrunner to 1.4 and web-platform-tests to 1b45197f111e5bb65607d89f7d385883849d005d, a=test-only 2014-10-21 14:21:57 +01:00
ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents
fonts
gamepad Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
geolocation-API
hr-time Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
html Bug 1151940 part 3. Make some writable cssom-view attributes that we only allow setting from chrome act the way readonly replaceables would when called from content. r=smaug 2015-04-08 22:50:45 -04:00
html-imports
html-longdesc
html-media-capture Bug 1134188 - Update web-platform-tests to revision 06dfcf88301bcc02ed25830f0d87c75f041dad4e, a=testonly 2015-02-19 09:32:46 +00:00
http
images Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
infrastructure Bug 1134188 - Update web-platform-tests to revision 06dfcf88301bcc02ed25830f0d87c75f041dad4e, a=testonly 2015-02-19 09:32:46 +00:00
js/builtins Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
media Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
media-source Bug 1126465 - Make redundant-seek use longer timeouts. r=me 2015-01-29 22:11:12 -08:00
mediacapture-streams Bug 1121960 - Update web-platform-tests to revision 78bc2a28397159604ce41997e408fbb171e11f8f, a=testonly 2015-01-15 12:59:36 +00:00
microdata
navigation-timing Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
notifications Bug 1134188 - Update web-platform-tests to revision 06dfcf88301bcc02ed25830f0d87c75f041dad4e, a=testonly 2015-02-19 09:32:46 +00:00
old-tests/submission Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
page-visibility Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
performance-timeline
pointerevents Bug 1150821 - Update web-platform-tests to revision 1bb38c25b4720fbfd8ca086ef9275ac3e465c659, a=testonly 2015-04-03 10:15:36 +01:00
pointerlock
progress-events Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
proximity Bug 1108382 - Part 12: Do not use non-standard flag argument of String.prototype.replace in testing/web-platform/tests/. r=jgriffin 2015-03-01 09:51:33 +09:00
quirks-mode Bug 1121960 - Update web-platform-tests to revision 78bc2a28397159604ce41997e408fbb171e11f8f, a=testonly 2015-01-15 12:59:36 +00:00
resource-timing Bug 1102907 - Update web-platform-tests to revision 6e35a4cd58f8fa507fc90b9d7b7ff28153759cac, a=testonly 2015-01-13 09:42:41 +00:00
resources Bug 1150821 - Update web-platform-tests to revision 1bb38c25b4720fbfd8ca086ef9275ac3e465c659, a=testonly 2015-04-03 10:15:36 +01:00
selectors/attribute-selectors/attribute-case Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
selectors-api/tests/submissions/Opera Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
service-workers Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
shadow-dom Bug 1127468 - Update web-platform-tests to revision 83d9681ecf334f5fbe1c4b076601cf3c50f42176, a=testonly 2015-01-30 09:40:54 +00:00
subresource-integrity Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
tools Bug 1150821 - Update web-platform-tests to revision 1bb38c25b4720fbfd8ca086ef9275ac3e465c659, a=testonly 2015-04-03 10:15:36 +01:00
touch-events
typedarrays
url Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
user-timing Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
vibration Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
web-animations Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
webaudio
webdriver Bug 1103906 - Update web-platform-tests to revision 551060ba2eb3fa6d1c713c179d52fdf1132ea50c, a=testonly 2014-11-24 12:56:30 +00:00
webgl
webmessaging Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
webrtc
websockets Bug 1150821 - Update web-platform-tests to revision 1bb38c25b4720fbfd8ca086ef9275ac3e465c659, a=testonly 2015-04-03 10:15:36 +01:00
webstorage Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
webvtt Bug 1127468 - Update web-platform-tests to revision 83d9681ecf334f5fbe1c4b076601cf3c50f42176, a=testonly 2015-01-30 09:40:54 +00:00
workers Bug 1134188 - Update web-platform-tests to revision 06dfcf88301bcc02ed25830f0d87c75f041dad4e, a=testonly 2015-02-19 09:32:46 +00:00
.gitignore Bug 1025066 - Update web-platform-tests to revision 430c01c52a60299eaa1dd89fccaa869d7386a4b1, a=testonly 2015-01-10 10:42:44 +00:00
.gitmodules Bug 1150821 - Update web-platform-tests to revision 1bb38c25b4720fbfd8ca086ef9275ac3e465c659, a=testonly 2015-04-03 10:15:36 +01:00
.travis.yml Bug 1150821 - Update web-platform-tests to revision 1bb38c25b4720fbfd8ca086ef9275ac3e465c659, a=testonly 2015-04-03 10:15:36 +01:00
CONTRIBUTING.md
LICENSE Bug 1084367 - Upgrade wptrunner to 1.4 and web-platform-tests to 1b45197f111e5bb65607d89f7d385883849d005d, a=test-only 2014-10-21 14:21:57 +01:00
README.md Bug 1140145 - Update web-platform-tests to revision 9a2c04e06cb4e63b13b803722d345d085bf0debf, a=testonly 2015-03-06 12:56:11 +00:00
config.default.json Bug 1025066 - Update web-platform-tests to revision 430c01c52a60299eaa1dd89fccaa869d7386a4b1, a=testonly 2015-01-10 10:42:44 +00:00
lint Bug 1140145 - Update web-platform-tests to revision 9a2c04e06cb4e63b13b803722d345d085bf0debf, a=testonly 2015-03-06 12:56:11 +00:00
manifest Bug 1150821 - Update web-platform-tests to revision 1bb38c25b4720fbfd8ca086ef9275ac3e465c659, a=testonly 2015-04-03 10:15:36 +01:00
serve Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
serve.py Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
server-side.md
testharness_runner.html

README.md

The Web Platform Tests Project IRC chat

These are test suites for 60+ Web-platform specifications, along with test-infrastructure code for running the tests.

Running the Tests

The tests are designed to be run from your local computer. The test environment requires Python 2.7+ (but not Python 3.x). You will also need a copy of OpenSSL. For users on Windows this is available from the openssl website.

To get the tests running, you need to set up the test domains in your hosts file. The following entries are required:

127.0.0.1	web-platform.test
127.0.0.1	www.web-platform.test
127.0.0.1	www1.web-platform.test
127.0.0.1	www2.web-platform.test
127.0.0.1	xn--n8j6ds53lwwkrqhv28a.web-platform.test
127.0.0.1	xn--lve-6lad.web-platform.test

Because web-platform-tests uses git submodules, you must ensure that these are up to date. In the root of your checkout, run:

git submodule update --init --recursive

The test environment can then be started using

./serve

This will start HTTP servers on two ports and a websockets server on one port. By default one web server starts on port 8000 and the other ports are randomly-chosen free ports. Tests must be loaded from the first HTTP server in the output. To change the ports, edit the config.json file, for example, replacing the part that reads:

"http": [8000, "auto"]

to some port of your choice e.g.

"http":[1234, "auto"]

If you installed OpenSSL in such a way that running openssl at a command line doesn't work, you also need to adjust the path to the OpenSSL binary. This can be done by adding a section to config.json like:

"ssl": {"openssl": {"binary": "/path/to/openssl"}}

Test Runner

There is a test runner that is designed to provide a convenient way to run the web-platform tests in-browser. It will run testharness.js tests automatically but requires manual work for reftests and manual tests.

The runner can be found at /tools/runner/index.html on the local server i.e.

http://web-platform.test:8000/tools/runner/index.html

in the default configuration. The first time you use this it has to generate a manifest of all tests. This may take some time, so please be patient.

Publication

The master branch is automatically synced to http://w3c-test.org/.

Pull requests that have been checked are automatically mirrored to http://w3c-test.org/submissions/.

Finding Things

Each top-level directory represents a W3C specification: the name matches the shortname used after the canonical address of the said specification under http://www.w3.org/TR/ .

For some of the specifications, the tree under the top-level directory represents the sections of the respective documents, using the section IDs for directory names, with a maximum of three levels deep.

So if you're looking for tests in HTML for "The History interface", they will be under html/browsers/history/the-history-interface/.

Various resources that tests depend on are in common, images, and fonts.

If you're looking at a section of the specification and can't figure out where the directory is for it in the tree, just run:

node tools/scripts/id2path.js your-id

Branches

In the vast majority of cases the only upstream branch that you should need to care about is master. If you see other branches in the repository, you can generally safely ignore them.

Contributing

Save the Web, Write Some Tests!

Absolutely everyone is welcome (and even encouraged) to contribute to test development, so long as you fulfill the contribution requirements detailed in the Contributing Guidelines. 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 your-name/topic.
  • Make your changes.
  • Run the lint script described below.
  • Commit locally and push that to your repo.
  • Send in a pull request based on the above.

A lint is available to test for common mistakes in testcases. It can be run with:

./lint

in the root of the checkout. It is also run for every submitted pull request, and branches with lint errors will not get merged. In the unusual case that the lint is reporting an error for something that is essential to your test, there is a whitelist at tools/lint/lint.whitelist that may be updated.

Adding command-line scripts ("tools" subdirs)

Sometimes you may want to add a script to the repository that's meant to be used from the command line, not from a browser (e.g., a script for generating test files). If you want to ensure (e.g., for security reasons) that such scripts won't be handled by the HTTP server, but will instead only be usable from the command line, then place them in either:

  • the tools subdir at the root of the repository, or

  • the tools subdir at the root of any top-level directory in the repository which contains the tests the script is meant to be used with

Any files in those tools directories won't be handled by the HTTP server; instead the server will return a 404 if a user navigates to the URL for a file within them.

If you want to add a script for use with a particular set of tests but there isn't yet any tools subdir at the root of a top-level directory in the repository containing those tests, you can create a tools subdir at the root of that top-level directory and place your scripts there.

For example, if you wanted to add a script for use with tests in the notifications directory, create the notifications/tools subdir and put your script there.

Test Review

We can sometimes take a little while to go through pull requests because we have to go through all the tests and ensure that they match the specification correctly. But we look at all of them, and take everything that we can.

Getting Involved

If you wish to contribute actively, you're very welcome to join the public-test-infra@w3.org mailing list (low traffic) by signing up to our mailing list. The mailing list is archived.

Join us on irc #testing (irc.w3.org, port 6665). The channel is archived.

Documentation