mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -13,12 +13,15 @@ HERE = os.path.dirname(os.path.abspath(__file__))
|
|||
WPT_ROOT = os.path.normpath(os.path.join(HERE, '..', '..'))
|
||||
HARNESS = os.path.join(HERE, 'harness.html')
|
||||
|
||||
def pytest_addoption(parser):
|
||||
parser.addoption("--binary", action="store", default=None, help="path to browser binary")
|
||||
|
||||
def pytest_collect_file(path, parent):
|
||||
if path.ext.lower() == '.html':
|
||||
return HTMLItem(str(path), parent)
|
||||
|
||||
def pytest_configure(config):
|
||||
config.driver = webdriver.Firefox()
|
||||
config.driver = webdriver.Firefox(firefox_binary=config.getoption("--binary"))
|
||||
config.server = WPTServer(WPT_ROOT)
|
||||
config.server.start()
|
||||
config.add_cleanup(lambda: config.server.stop())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue