mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Allow prefs to be overridden from a file and set WPT-specific prefs from file (#33163)
* Allow prefs to be passed in from a separate file Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add wpt-prefs.json for setting WPT-specific prefs Signed-off-by: Daniel Adams <msub2official@gmail.com> * fix argument to read_prefs_file Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update test_parse_pref test Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add line in executorservo.py to read from wpt-prefs.json Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update MANIFEST.json Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Disable dom.webxr.test for interfaces test Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
parent
2db9032e72
commit
e85491b5fc
10 changed files with 36 additions and 15 deletions
2
tests/wpt/meta/MANIFEST.json
vendored
2
tests/wpt/meta/MANIFEST.json
vendored
|
@ -489596,7 +489596,7 @@
|
|||
[]
|
||||
],
|
||||
"executorservo.py": [
|
||||
"9c938b6e75e27c61167294a941629928fa33db73",
|
||||
"c23f7632c9ef5f0acbdbb569db41f741ccf9de89",
|
||||
[]
|
||||
],
|
||||
"executorservodriver.py": [
|
||||
|
|
1
tests/wpt/mozilla/meta-legacy-layout/mozilla/interfaces.html.ini
vendored
Normal file
1
tests/wpt/mozilla/meta-legacy-layout/mozilla/interfaces.html.ini
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
prefs: [dom.webxr.test: false]
|
1
tests/wpt/mozilla/meta/mozilla/interfaces.html.ini
vendored
Normal file
1
tests/wpt/mozilla/meta/mozilla/interfaces.html.ini
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
prefs: [dom.webxr.test: false]
|
|
@ -1,4 +0,0 @@
|
|||
[create_session.https.html]
|
||||
expected: ERROR
|
||||
[create_session]
|
||||
expected: TIMEOUT
|
|
@ -1,3 +0,0 @@
|
|||
[obtain_frame.https.html]
|
||||
[obtain_frame]
|
||||
expected: FAIL
|
|
@ -1,4 +1,4 @@
|
|||
[sessionavailable.https.html]
|
||||
expected: ERROR
|
||||
expected: TIMEOUT
|
||||
[Requesting immersive session in a sessionavailable handler should succeed]
|
||||
expected: TIMEOUT
|
||||
|
|
|
@ -78,6 +78,7 @@ class ServoExecutor(ProcessTestExecutor):
|
|||
args += ["--user-stylesheet", stylesheet]
|
||||
for pref, value in self.environment.get('prefs', {}).items():
|
||||
args += ["--pref", f"{pref}={value}"]
|
||||
args += ["--prefs-file", "resources/wpt-prefs.json"]
|
||||
if self.browser.ca_certificate_path:
|
||||
args += ["--certificate-path", self.browser.ca_certificate_path]
|
||||
if extra_args:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue