Unreviewed. Update W3C WebDriver imported tests.
[WebKit-https.git] / WebDriverTests / imported / w3c / tools / webdriver / webdriver / servo.py
1 class ServoExtensionCommands(object):
2     def __init__(self, session):
3         self.session = session
4
5     @command
6     def get_prefs(self, *prefs):
7         body = {"prefs": list(prefs)}
8         return self.session.send_command("POST", "servo/prefs/get", body)
9
10     @command
11     def set_prefs(self, prefs):
12         body = {"prefs": prefs}
13         return self.session.send_command("POST", "servo/prefs/set", body)
14
15     @command
16     def reset_prefs(self, *prefs):
17         body = {"prefs": list(prefs)}
18         return self.session.send_command("POST", "servo/prefs/reset", body)