Skip to content

Commit

Permalink
Add set_device_posture and clear_device_posture to tools/wptrunner/wp…
Browse files Browse the repository at this point in the history
…trunner/executors/executormarionette.py
  • Loading branch information
JuhaVainio committed Apr 5, 2024
1 parent 13e933a commit 6561027
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tools/wptrunner/wptrunner/executors/executormarionette.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
PrintProtocolPart,
DebugProtocolPart,
VirtualSensorProtocolPart,
DevicePostureProtocolPart,
merge_dicts)


Expand Down Expand Up @@ -745,6 +746,17 @@ def get_virtual_sensor_information(self, information_parameters):
raise NotImplementedError("get_virtual_sensor_information not yet implemented")


class MarionetteDevicePostureProtocolPart(DevicePostureProtocolPart):
def setup(self):
self.marionette = self.parent.marionette

def set_device_posture(self, posture):
raise NotImplementedError("set_device_posture not yet implemented")

def clear_device_posture(self):
raise NotImplementedError("clear_device_posture not yet implemented")


class MarionetteProtocol(Protocol):
implements = [MarionetteBaseProtocolPart,
MarionetteTestharnessProtocolPart,
Expand All @@ -765,7 +777,8 @@ class MarionetteProtocol(Protocol):
MarionettePrintProtocolPart,
MarionetteDebugProtocolPart,
MarionetteAccessibilityProtocolPart,
MarionetteVirtualSensorProtocolPart]
MarionetteVirtualSensorProtocolPart,
MarionetteDevicePostureProtocolPart]

def __init__(self, executor, browser, capabilities=None, timeout_multiplier=1, e10s=True, ccov=False):
do_delayed_imports()
Expand Down

0 comments on commit 6561027

Please sign in to comment.