mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Make SSL tests work in servodriver.
This commit is contained in:
parent
08b76ee73f
commit
6ab475b0f4
3 changed files with 7 additions and 3 deletions
|
@ -89,6 +89,7 @@ class ServoWebDriverBrowser(Browser):
|
|||
self.command = None
|
||||
self.user_stylesheets = user_stylesheets if user_stylesheets else []
|
||||
self.headless = headless if headless else False
|
||||
self.ca_certificate_path = server_config.ssl_config["ca_cert_path"]
|
||||
|
||||
def start(self, **kwargs):
|
||||
self.webdriver_port = get_free_port(4444, exclude=self.used_ports)
|
||||
|
@ -117,6 +118,9 @@ class ServoWebDriverBrowser(Browser):
|
|||
if self.headless:
|
||||
command += ["--headless"]
|
||||
|
||||
if self.ca_certificate_path:
|
||||
command += ["--certificate-path", self.ca_certificate_path]
|
||||
|
||||
for stylesheet in self.user_stylesheets:
|
||||
command += ["--user-stylesheet", stylesheet]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue