wpt: Set servo window size and open blank page for wdspec (#38793)

On `ServoWdSpecBrowser`, we set the window size to `800x600` and open
`about:blank`. This will unify the behavior of servo and servodriver.


604b6ea26d/tests/wpt/tests/tools/wptrunner/wptrunner/browsers/servodriver.py (L101-L102)

Testing: Unify the behavior of servo and servodriver for wdspec

Signed-off-by: PotatoCP <Kenzie.Raditya.Tirtarahardja@huawei.com>
This commit is contained in:
Kenzie Raditya Tirtarahardja 2025-08-20 21:26:59 +08:00 committed by GitHub
parent 6e6ef513a9
commit 37088aa4c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -522937,7 +522937,7 @@
] ]
}, },
"servo.py": [ "servo.py": [
"07441780ccc7682c6b7616271aeb9a40310a433a", "2928ffb7f1d483cff60dd17ffd92a53c9b1c3148",
[] []
], ],
"servodriver.py": [ "servodriver.py": [

View file

@ -116,7 +116,10 @@ class ServoWdspecBrowser(WebDriverBrowser):
# See https://github.com/servo/servo/issues/30080. # See https://github.com/servo/servo/issues/30080.
# For some reason rustls does not like the certificate generated by the WPT tooling. # For some reason rustls does not like the certificate generated by the WPT tooling.
"--ignore-certificate-errors", "--ignore-certificate-errors",
"--headless"] + self.webdriver_args "--headless",
"--window-size",
"800x600",
"about:blank"] + self.webdriver_args
if self.binary_args: if self.binary_args:
command += self.binary_args command += self.binary_args
return command return command