summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/docs/index.rst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /testing/web-platform/docs/index.rst
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/docs/index.rst')
-rw-r--r--testing/web-platform/docs/index.rst27
1 files changed, 26 insertions, 1 deletions
diff --git a/testing/web-platform/docs/index.rst b/testing/web-platform/docs/index.rst
index 7f2d263113..a36c702b6f 100644
--- a/testing/web-platform/docs/index.rst
+++ b/testing/web-platform/docs/index.rst
@@ -372,4 +372,29 @@ bot <https://github.com/mozilla/wpt-sync>`_. This performs the following tasks:
The nature of a two-way sync means that occasional merge conflicts and
other problems. If something isn't in sync with upstream in the way
you expect, please ask on `#interop
-<https://chat.mozilla.org/#/room/#interop:mozilla.org>`_ on matrix.
+<https://chat.mozilla.org/#/room/#interop:mozilla.org>`_ on matritx.
+
+wpt-serve
+---------
+
+Sometimes, it's preferable to run the WPT's web server on its own, and point different browsers to the test files.
+
+ ./mach wpt-serve
+
+can be used for this, after a short setup:
+
+On Unix, one can run:
+
+ ./wpt make-hosts-file | sudo tee -a /etc/hosts
+
+from the root of the WPT checkout, present at ``testing/web-platform/tests/``.
+
+On Windows, from an administrator ``mozilla-build`` shell, one can run:
+
+ ./wpt make-hosts-file >> /c/Windows/System32/drivers/etc/host
+
+from the WPT checkout.
+
+Most of the time, browsing to http://localhost:8000 will allow
+running the test, although some tests have special requirements, such as running
+on a specific domain or running using https.