mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Allow running WPT in Firefox
This commit is contained in:
parent
f8eab2b165
commit
3bc2a5632a
3 changed files with 15 additions and 2 deletions
|
@ -135,6 +135,7 @@ def _activate_virtualenv(topdir):
|
||||||
requirements_paths = [
|
requirements_paths = [
|
||||||
os.path.join("python", "requirements.txt"),
|
os.path.join("python", "requirements.txt"),
|
||||||
os.path.join("tests", "wpt", "harness", "requirements.txt"),
|
os.path.join("tests", "wpt", "harness", "requirements.txt"),
|
||||||
|
os.path.join("tests", "wpt", "harness", "requirements_firefox.txt"),
|
||||||
os.path.join("tests", "wpt", "harness", "requirements_servo.txt"),
|
os.path.join("tests", "wpt", "harness", "requirements_servo.txt"),
|
||||||
]
|
]
|
||||||
for req_rel_path in requirements_paths:
|
for req_rel_path in requirements_paths:
|
||||||
|
|
|
@ -77,6 +77,18 @@ first adding the following to the system's hosts file:
|
||||||
and then running `python serve` from `tests/wpt/web-platform-tests`.
|
and then running `python serve` from `tests/wpt/web-platform-tests`.
|
||||||
Then navigate Servo to `http://web-platform.test:8000/path/to/test`.
|
Then navigate Servo to `http://web-platform.test:8000/path/to/test`.
|
||||||
|
|
||||||
|
Running the tests in Firefox
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
When working with tests, you may want to compare Servo's result with Firefox.
|
||||||
|
You can supply `--product firefox` along with the path to a Firefox binary (as
|
||||||
|
well as few more odds and ends) to run tests in Firefox from your Servo
|
||||||
|
checkout:
|
||||||
|
|
||||||
|
GECKO="$HOME/projects/mozilla/gecko"
|
||||||
|
GECKO_BINS="$GECKO/obj-firefox-release-artifact/dist/Nightly.app/Contents/MacOS"
|
||||||
|
./mach test-wpt dom --product firefox --binary $GECKO_BINS/firefox --certutil-binary $GECKO_BINS/certutil --prefs-root $GECKO/testing/profiles
|
||||||
|
|
||||||
Updating test expectations
|
Updating test expectations
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
|
@ -191,5 +203,4 @@ MANIFEST.json can be regenerated automatically with the mach command `update-man
|
||||||
|
|
||||||
This is equivalent to running
|
This is equivalent to running
|
||||||
|
|
||||||
./mach test-wpt --manifest-update SKIP_TESTS
|
./mach test-wpt --manifest-update SKIP_TESTS
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
[products]
|
[products]
|
||||||
servo =
|
servo =
|
||||||
servodriver =
|
servodriver =
|
||||||
|
firefox =
|
||||||
|
|
||||||
[web-platform-tests]
|
[web-platform-tests]
|
||||||
remote_url = https://github.com/w3c/web-platform-tests.git
|
remote_url = https://github.com/w3c/web-platform-tests.git
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue