gecko-dev/testing/web-platform/tests
James Graham f645b62a17 Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly
--HG--
rename : testing/web-platform/tests/dom/nodes/Document-createProcessingInstruction.xhtml => testing/web-platform/tests/dom/nodes/Document-createProcessingInstruction-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Document-getElementsByTagName.xhtml => testing/web-platform/tests/dom/nodes/Document-getElementsByTagName-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/DocumentType-literal.xhtml => testing/web-platform/tests/dom/nodes/DocumentType-literal-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-childElement-null.svg => testing/web-platform/tests/dom/nodes/Element-childElement-null-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-childElement-null.xhtml => testing/web-platform/tests/dom/nodes/Element-childElement-null-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-add.svg => testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-add-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-add.xhtml => testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-add-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-remove.svg => testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-remove-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-remove.xhtml => testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-remove-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-nochild.svg => testing/web-platform/tests/dom/nodes/Element-childElementCount-nochild-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-nochild.xhtml => testing/web-platform/tests/dom/nodes/Element-childElementCount-nochild-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount.svg => testing/web-platform/tests/dom/nodes/Element-childElementCount-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount.xhtml => testing/web-platform/tests/dom/nodes/Element-childElementCount-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-firstElementChild-entity.xhtml => testing/web-platform/tests/dom/nodes/Element-firstElementChild-entity-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-firstElementChild-namespace.svg => testing/web-platform/tests/dom/nodes/Element-firstElementChild-namespace-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-firstElementChild-namespace.xhtml => testing/web-platform/tests/dom/nodes/Element-firstElementChild-namespace-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-firstElementChild.svg => testing/web-platform/tests/dom/nodes/Element-firstElementChild-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-firstElementChild.xhtml => testing/web-platform/tests/dom/nodes/Element-firstElementChild-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-lastElementChild.svg => testing/web-platform/tests/dom/nodes/Element-lastElementChild-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-lastElementChild.xhtml => testing/web-platform/tests/dom/nodes/Element-lastElementChild-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-nextElementSibling.svg => testing/web-platform/tests/dom/nodes/Element-nextElementSibling-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-nextElementSibling.xhtml => testing/web-platform/tests/dom/nodes/Element-nextElementSibling-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-previousElementSibling.svg => testing/web-platform/tests/dom/nodes/Element-previousElementSibling-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-previousElementSibling.xhtml => testing/web-platform/tests/dom/nodes/Element-previousElementSibling-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-siblingElement-null.svg => testing/web-platform/tests/dom/nodes/Element-siblingElement-null-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-siblingElement-null.xhtml => testing/web-platform/tests/dom/nodes/Element-siblingElement-null-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Node-nodeName.xhtml => testing/web-platform/tests/dom/nodes/Node-nodeName-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/ParentNode-querySelector-All.xht => testing/web-platform/tests/dom/nodes/ParentNode-querySelector-All-xht.xht
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case-xhtml.xhtml
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id-xhtml.xhtml
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace-xhtml.xhtml
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-xhtml.xhtml
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef-xhtml.xhtml
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param-xhtml.xhtml
rename : testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event.xhtml => testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event-xhtml.xhtml
rename : testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text.xhtml => testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text-xhtml.xhtml
rename : testing/web-platform/tests/url/a-element.xhtml => testing/web-platform/tests/url/a-element-xhtml.xhtml
2015-12-18 23:10:42 +00:00
..
2dcontext Bug 1230948 - Update web-platform-tests to revision 63bf7b5e1e12b308ba6ed20480ad7dc93afa1943, a=testonly 2015-12-07 16:31:18 +00:00
DOMEvents Bug 1209297 - Update web-platform-tests to revision 2869a58fd81da41f9f904441ff39f9398fba53bc, a=testonly 2015-09-28 23:02:37 +01:00
FileAPI Bug 1194131 - Update web-platform-tests to revision b54dddfdcc4761d2f8a892fd783d60353949992d, a=tetsonly 2015-08-13 10:25:55 +01:00
IndexedDB Bug 1225032 - Update web-platform-tests to revision a5f15d6bdbeeec010465dc906e542873d64797ec, a=testonly 2015-11-16 13:52:16 +00:00
WebCryptoAPI Bug 1230948 - Update web-platform-tests to revision 63bf7b5e1e12b308ba6ed20480ad7dc93afa1943, a=testonly 2015-12-07 16:31:18 +00:00
WebIDL Bug 1187720 - Update web-platform-tests to revision 4bc69f287365a67585d470300a2ef109689cf465, a=testonly 2015-07-26 18:49:16 +01:00
XMLHttpRequest Bug 918771 - Part 3: Update Web Platform tests to check for correct behavior, r=bz 2015-10-20 15:54:17 -04:00
ambient-light Bug 1171755 - Update web-platform-tests to revision 0fbf63dbe6f6b8b0dccee76d96ec4b7d50c3fff6, a=testonly 2015-06-05 00:53:48 +01:00
app-uri Bug 1225032 - Update web-platform-tests to revision a5f15d6bdbeeec010465dc906e542873d64797ec, a=testonly 2015-11-16 13:52:16 +00:00
battery-status Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
common
conformance-checkers Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
content-security-policy Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
cors Bug 1232118 - Fix use of stash.put in CORS test, r=Ms2ger 2015-12-16 22:48:07 +00:00
cssom-view Bug 1230948 - Update web-platform-tests to revision 63bf7b5e1e12b308ba6ed20480ad7dc93afa1943, a=testonly 2015-12-07 16:31:18 +00:00
custom-elements Bug 1221424 - Give custom element test a longer timeout, r=Ms2ger 2015-12-16 22:48:07 +00:00
docs Bug 1209297 - Update web-platform-tests to revision 2869a58fd81da41f9f904441ff39f9398fba53bc, a=testonly 2015-09-28 23:02:37 +01:00
dom Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
domparsing Bug 1209297 - Update web-platform-tests to revision 2869a58fd81da41f9f904441ff39f9398fba53bc, a=testonly 2015-09-28 23:02:37 +01:00
domxpath Bug 1214162 - Update web-platform-tests to revision 886dea2c3dbb79925360319a6a0f662ce196ab3c, a=testonly 2015-10-16 17:04:35 +01:00
editing Bug 1199127 - Update web-platform-tests to revision 4600b7dbae996754fe52f48bc9c225834f11a686, a=testonly 2015-08-27 09:41:20 +01:00
encoding Bug 912470 part 2 - Implement Encoding Standard-compliant big5 encoder. r=emk. 2015-09-03 15:21:57 +03:00
eventsource Bug 1171755 - Update web-platform-tests to revision 0fbf63dbe6f6b8b0dccee76d96ec4b7d50c3fff6, a=testonly 2015-06-05 00:53:48 +01:00
ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents
fetch/nosniff Bug 1153521 - Update web-platform-tests to revision 7311aa630534282885b9add15b1c30b2b59316dd, a=testonly 2015-04-13 10:35:10 +01:00
fonts
gamepad
geolocation-API
hr-time Bug 1225909 - Update web-platform-tests to revision 623c1536821f7536d8ee2859bbeaf0d9738ea707, a=testonly 2015-11-18 17:20:47 +00:00
html Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
html-imports Bug 1183628 - Update web-platform-tests to revision 593fd27931d7e9d573d2796fe10df9fff778d56f, a=testonly 2015-07-14 14:39:06 +01:00
html-longdesc
html-media-capture
http
images
infrastructure
innerText Bug 1226293. Followup: add SVG tests. r=bz 2015-11-23 18:09:39 +13:00
js Bug 1170760 part 13. Add subclassing support to Promise::Then/Catch. r=baku,efaust 2015-11-25 15:48:10 -05:00
media Bug 1214162 - Update web-platform-tests to revision 886dea2c3dbb79925360319a6a0f662ce196ab3c, a=testonly 2015-10-16 17:04:35 +01:00
media-source Bug 1105760 - Increase timeout for unstable Media Source test, rs=Ms2ger 2015-09-18 13:25:06 +01:00
mediacapture-streams Bug 1206982 - getUserMedia s/PermissionDeniedError/SecurityError/. r=jesup 2015-09-21 20:57:12 -04:00
microdata Bug 1214162 - Update web-platform-tests to revision 886dea2c3dbb79925360319a6a0f662ce196ab3c, a=testonly 2015-10-16 17:04:35 +01:00
mixed-content Bug 1225909 - Update web-platform-tests to revision 623c1536821f7536d8ee2859bbeaf0d9738ea707, a=testonly 2015-11-18 17:20:47 +00:00
navigation-timing Bug 1180500 - Update web-platform-tests to revision 87398b8448f699e3e324148795891658f2fa16dd, a=testonly 2015-07-07 10:05:28 +01:00
notifications Bug 1201822 - Update web-platform-tests to revision d0571e01e1a2e4b8c5f696af2f81cbc1be9a5842, a=testonly 2015-09-04 10:39:26 +01:00
old-tests/submission Bug 1204461 - Update web-platform-tests to revision 3f82dd41c8e3697bfe5fa5c57321c842b65ba2aa, a=testonly 2015-09-14 12:19:08 +01:00
page-visibility
performance-timeline
pointerevents Bug 1225032 - Update web-platform-tests to revision a5f15d6bdbeeec010465dc906e542873d64797ec, a=testonly 2015-11-16 13:52:16 +00:00
pointerlock
progress-events
proximity Bug 1180500 - Update web-platform-tests to revision 87398b8448f699e3e324148795891658f2fa16dd, a=testonly 2015-07-07 10:05:28 +01:00
quirks-mode Bug 1209994. Fix a couple of issues that make the percentage-height-calculation.html test unreliable. r=bz 2015-10-29 16:56:30 +13:00
referrer-policy Bug 1187720 - Update web-platform-tests to revision 4bc69f287365a67585d470300a2ef109689cf465, a=testonly 2015-07-26 18:49:16 +01:00
resource-timing Bug 1180500 - Update web-platform-tests to revision 87398b8448f699e3e324148795891658f2fa16dd, a=testonly 2015-07-07 10:05:28 +01:00
resources Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
screen-orientation Bug 1194131 - Update web-platform-tests to revision b54dddfdcc4761d2f8a892fd783d60353949992d, a=tetsonly 2015-08-13 10:25:55 +01:00
selection Bug 1199127 - Update web-platform-tests to revision 4600b7dbae996754fe52f48bc9c225834f11a686, a=testonly 2015-08-27 09:41:20 +01:00
selectors/attribute-selectors/attribute-case Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
selectors-api/tests/submissions/Opera Bug 1187720 - Update web-platform-tests to revision 4bc69f287365a67585d470300a2ef109689cf465, a=testonly 2015-07-26 18:49:16 +01:00
service-workers Bug 1182094 Fix wpt sandboxed-iframes.https.html test to expect rejected promises. r=jgraham 2015-09-15 08:04:13 -07:00
shadow-dom Bug 1214162 - Update web-platform-tests to revision 886dea2c3dbb79925360319a6a0f662ce196ab3c, a=testonly 2015-10-16 17:04:35 +01:00
subresource-integrity Bug 1225032 - Update web-platform-tests to revision a5f15d6bdbeeec010465dc906e542873d64797ec, a=testonly 2015-11-16 13:52:16 +00:00
svg Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
tools Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
touch-events Bug 1209297 - Update web-platform-tests to revision 2869a58fd81da41f9f904441ff39f9398fba53bc, a=testonly 2015-09-28 23:02:37 +01:00
typedarrays Bug 1199127 - Update web-platform-tests to revision 4600b7dbae996754fe52f48bc9c225834f11a686, a=testonly 2015-08-27 09:41:20 +01:00
uievents Bug 1183628 - Update web-platform-tests to revision 593fd27931d7e9d573d2796fe10df9fff778d56f, a=testonly 2015-07-14 14:39:06 +01:00
url Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
user-timing
vibration
web-animations Bug 1215406 - Part 6: Test. r=birtles 2015-11-22 18:27:00 +01:00
webaudio Bug 1218694 - Test that AudioNode.connect() returns the node connected to. r=smaug 2015-10-28 13:54:57 +09:00
webdriver Bug 1225032 - Update web-platform-tests to revision a5f15d6bdbeeec010465dc906e542873d64797ec, a=testonly 2015-11-16 13:52:16 +00:00
webgl Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly 2015-12-18 23:10:42 +00:00
webmessaging Bug 1183628 - Update web-platform-tests to revision 593fd27931d7e9d573d2796fe10df9fff778d56f, a=testonly 2015-07-14 14:39:06 +01:00
webrtc Bug 1155923 - Updating webplatform-tests, r=jib 2015-09-28 11:25:04 -07:00
websockets Bug 1230948 - Update web-platform-tests to revision 63bf7b5e1e12b308ba6ed20480ad7dc93afa1943, a=testonly 2015-12-07 16:31:18 +00:00
webstorage Bug 1230948 - Update web-platform-tests to revision 63bf7b5e1e12b308ba6ed20480ad7dc93afa1943, a=testonly 2015-12-07 16:31:18 +00:00
webvtt
workers Bug 1225909 - Update web-platform-tests to revision 623c1536821f7536d8ee2859bbeaf0d9738ea707, a=testonly 2015-11-18 17:20:47 +00:00
.gitignore Bug 1225032 - Update web-platform-tests to revision a5f15d6bdbeeec010465dc906e542873d64797ec, a=testonly 2015-11-16 13:52:16 +00:00
.gitmodules Bug 1225909 - Update web-platform-tests to revision 623c1536821f7536d8ee2859bbeaf0d9738ea707, a=testonly 2015-11-18 17:20:47 +00:00
.travis.yml Bug 1187720 - Update web-platform-tests to revision 4bc69f287365a67585d470300a2ef109689cf465, a=testonly 2015-07-26 18:49:16 +01:00
CONTRIBUTING.md
LICENSE
README.md Bug 1225032 - Update web-platform-tests to revision a5f15d6bdbeeec010465dc906e542873d64797ec, a=testonly 2015-11-16 13:52:16 +00:00
config.default.json Bug 1171755 - Update web-platform-tests to revision 0fbf63dbe6f6b8b0dccee76d96ec4b7d50c3fff6, a=testonly 2015-06-05 00:53:48 +01:00
lint Bug 1214162 - Update web-platform-tests to revision 886dea2c3dbb79925360319a6a0f662ce196ab3c, a=testonly 2015-10-16 17:04:35 +01:00
lint.whitelist Bug 1230948 - Update web-platform-tests to revision 63bf7b5e1e12b308ba6ed20480ad7dc93afa1943, a=testonly 2015-12-07 16:31:18 +00:00
manifest
serve
serve.py Bug 1180500 - Update web-platform-tests to revision 87398b8448f699e3e324148795891658f2fa16dd, a=testonly 2015-07-07 10:05:28 +01:00
server-side.md
testharness_runner.html

README.md

The Web Platform Tests Project IRC chat

The Web Platform Tests Project is a W3C-coordinated attempt to build a cross-browser testsuite for the Web-platform stack. However, for mainly historic reasons, the CSS WG testsuite is in a separate repository, csswg-test. 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.

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. Users on Windows should read the Windows Notes section below.

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"}}

Windows Notes

Running wptserve with SSL enabled on Windows typically requires installing an OpenSSL distribution. Shining Light provide a convenient installer that is known to work, but requires a little extra setup.

After installation ensure that the path to OpenSSL is on your %Path% environment variable.

Then set the path to the default OpenSSL configuration file (usually something like C:\OpenSSL-Win32\bin\openssl.cfg in the server configuration. To do this copy config.default.json in the web-platform-tests root to config.json. Then edit the JSON so that the key ssl/openssl/base_conf_path has a value that is the path to the OpenSSL config file.

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 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.

Lint tool

We have a lint tool for catching common mistakes in test files. You can run it manually by starting the lint executable from the root of your local web-platform-tests working directory like this:

./lint

The lint tool is also run automatically for every submitted pull request, and reviewers will not merge branches with tests that have lint errors, so you must fix any errors the lint tool reports. For details on doing that, see the lint-tool documentation.

But in the unusual case of error reports for things essential to a certain test or that for other exceptional reasons shouldn't prevent a merge of a test, update and commit the lint.whitelist file in the web-platform-tests root directory to suppress the error reports. For details on doing that, see the lint-tool documentation.

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