mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Remove @command in executorservodriver.py (#37363)
The `@webdriver.client.command` function is removed in the [recent upstream sync](bd6639aadb (diff-f09302464a433395dfc4a01c84c093fdf14aaeb0a9fd39845e2c945610655c22L12-L29)
). Change that removes the function: [[Commit]](8ccc161a1f
) | [[Issue]](https://github.com/web-platform-tests/wpt/issues/51845) Testing: `./mach test-wpt -r --product servodriver tests/wpt/tests/infrastucture/testdriver/actions` Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
This commit is contained in:
parent
da02dacaa4
commit
b58d248e22
2 changed files with 1 additions and 4 deletions
2
tests/wpt/meta/MANIFEST.json
vendored
2
tests/wpt/meta/MANIFEST.json
vendored
|
@ -517102,7 +517102,7 @@
|
|||
[]
|
||||
],
|
||||
"executorservodriver.py": [
|
||||
"e27b111ee8b7c4cdff4a0aee5c010d402efff263",
|
||||
"8176d15ea2a5bbc201618076d58c76b59bc42c47",
|
||||
[]
|
||||
],
|
||||
"executorwebdriver.py": [
|
||||
|
|
|
@ -20,17 +20,14 @@ def do_delayed_imports():
|
|||
def __init__(self, session):
|
||||
self.session = session
|
||||
|
||||
@webdriver.client.command
|
||||
def get_prefs(self, *prefs):
|
||||
body = {"prefs": list(prefs)}
|
||||
return self.session.send_session_command("POST", "servo/prefs/get", body)
|
||||
|
||||
@webdriver.client.command
|
||||
def set_prefs(self, prefs):
|
||||
body = {"prefs": prefs}
|
||||
return self.session.send_session_command("POST", "servo/prefs/set", body)
|
||||
|
||||
@webdriver.client.command
|
||||
def reset_prefs(self, *prefs):
|
||||
body = {"prefs": list(prefs)}
|
||||
return self.session.send_session_command("POST", "servo/prefs/reset", body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue