mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
More Python fixes for servodriver
``` Traceback (most recent call last): File "/home/simon/servo1/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/testrunner.py", line 90, in run rv = commands[command](*args) File "/home/simon/servo1/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/testrunner.py", line 110, in wait self.executor.wait() File "/home/simon/servo1/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/base.py", line 209, in wait self.protocol.base.wait() AttributeError: 'ServoWebDriverProtocol' object has no attribute 'base' ```
This commit is contained in:
parent
e6eca2bce4
commit
f10b47465a
1 changed files with 17 additions and 0 deletions
|
@ -6,6 +6,7 @@ import time
|
|||
import traceback
|
||||
|
||||
from .base import (Protocol,
|
||||
BaseProtocolPart,
|
||||
RefTestExecutor,
|
||||
RefTestImplementation,
|
||||
TestharnessExecutor,
|
||||
|
@ -46,7 +47,23 @@ def do_delayed_imports():
|
|||
return self.session.send_command("POST", "servo/prefs/reset", body)
|
||||
|
||||
|
||||
class ServoBaseProtocolPart(BaseProtocolPart):
|
||||
def execute_script(self, script, async=False):
|
||||
pass
|
||||
|
||||
def set_timeout(self, timeout):
|
||||
pass
|
||||
|
||||
def wait(self):
|
||||
pass
|
||||
|
||||
def set_window(self, handle):
|
||||
pass
|
||||
|
||||
|
||||
class ServoWebDriverProtocol(Protocol):
|
||||
implements = [ServoBaseProtocolPart]
|
||||
|
||||
def __init__(self, executor, browser, capabilities, **kwargs):
|
||||
do_delayed_imports()
|
||||
Protocol.__init__(self, executor, browser)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue