From 59203c63bb777a3bacec32fb8830fba33540e809 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:29 +0200 Subject: Adding upstream version 127.0. Signed-off-by: Daniel Baumann --- testing/web-platform/docs/index.rst | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'testing/web-platform/docs') 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 `_. 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 -`_ on matrix. +`_ 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. -- cgit v1.2.3