diff --git a/resources/testdriver.js b/resources/testdriver.js index 87df7a48416bd3..f8238ab4a8ef70 100644 --- a/resources/testdriver.js +++ b/resources/testdriver.js @@ -1032,14 +1032,6 @@ console.log('JV666 TEST_DRIVER testdriver.js set_device_posture: ' + posture); return window.test_driver_internal.set_device_posture(posture, context); }, - - /** - * Sets the viewport orientation. - */ - async set_display_feature(orientation, offset, mask_length, context=null) { - console.log('JV666 TEST_DRIVER testdriver.js set_display_feature: ' + orientation + ' ' + offset + ' ' + mask_length); - return window.test_driver_internal.set_display_feature(orientation, offset, mask_length, context); - } }; window.test_driver_internal = { @@ -1223,10 +1215,6 @@ async set_device_posture(posture, context=null) { throw new Error("set_device_posture() is not implemented by testdriver-vendor.js"); - }, - - async set_display_feature(orientation, offset, mask_length, context=null) { - throw new Error("set_display_feature() is not implemented by testdriver-vendor.js"); } }; })(); diff --git a/tools/wptrunner/wptrunner/executors/actions.py b/tools/wptrunner/wptrunner/executors/actions.py index b6c2781c4db84e..a0685322b6e32d 100644 --- a/tools/wptrunner/wptrunner/executors/actions.py +++ b/tools/wptrunner/wptrunner/executors/actions.py @@ -455,20 +455,6 @@ def __call__(self, payload): self.logger.debug("JV666 tools/wptrunner/wptrunner/executors/actions.py set_device_posture: %s" % posture) return self.protocol.device_posture.set_device_posture(posture) -class SetDisplayFeature: - name = "set_display_feature" - - def __init__(self, logger, protocol): - self.logger = logger - self.protocol = protocol - - def __call__(self, payload): - orientation = payload["orientation"] - offset = payload["offset"] - mask_length = payload["mask_length"] - self.logger.debug("JV666 tools/wptrunner/wptrunner/executors/actions.py set_display_feature: %s" % orientation) - return self.protocol.display_feature.set_display_feature(orientation, offset, mask_length) - actions = [ClickAction, DeleteAllCookiesAction, GetAllCookiesAction, @@ -503,5 +489,4 @@ def __call__(self, payload): UpdateVirtualSensorAction, RemoveVirtualSensorAction, GetVirtualSensorInformationAction, - SetDevicePostureAction, - SetDisplayFeature] + SetDevicePostureAction] diff --git a/tools/wptrunner/wptrunner/executors/executorwebdriver.py b/tools/wptrunner/wptrunner/executors/executorwebdriver.py index 4552300c6eb15f..88d55e33a641d0 100644 --- a/tools/wptrunner/wptrunner/executors/executorwebdriver.py +++ b/tools/wptrunner/wptrunner/executors/executorwebdriver.py @@ -36,7 +36,6 @@ FedCMProtocolPart, VirtualSensorProtocolPart, DevicePostureProtocolPart, - DisplayFeatureProtocolPart, merge_dicts) from webdriver.client import Session @@ -442,17 +441,6 @@ def set_device_posture(self, posture): self.logger.debug("JV666 tools/wptrunner/wptrunner/executors/executorwebdriver.py set_device_posture: %s" % posture) return self.webdriver.send_session_command("POST", "deviceposture", body) -class WebDriverDisplayFeaturePart(DisplayFeatureProtocolPart): - def setup(self): - self.webdriver = self.parent.webdriver - - def set_display_feature(self, orientation, offset, mask_length): - body = {"orientation": orientation} - body.update({"offset": offset}) - body.update({"maskLength": mask_length}) - self.logger.debug("JV666 tools/wptrunner/wptrunner/executors/executorwebdriver.py set_display_feature: %s" % orientation) - return self.webdriver.send_session_command("POST", "displayfeature", body) - class WebDriverProtocol(Protocol): implements = [WebDriverBaseProtocolPart, WebDriverTestharnessProtocolPart, @@ -472,8 +460,7 @@ class WebDriverProtocol(Protocol): WebDriverFedCMProtocolPart, WebDriverDebugProtocolPart, WebDriverVirtualSensorPart, - WebDriverDevicePosturePart, - WebDriverDisplayFeaturePart] + WebDriverDevicePosturePart] def __init__(self, executor, browser, capabilities, **kwargs): super().__init__(executor, browser) diff --git a/tools/wptrunner/wptrunner/executors/protocol.py b/tools/wptrunner/wptrunner/executors/protocol.py index 56fb52f689b3e4..2aba9f676c7119 100644 --- a/tools/wptrunner/wptrunner/executors/protocol.py +++ b/tools/wptrunner/wptrunner/executors/protocol.py @@ -812,13 +812,3 @@ class DevicePostureProtocolPart(ProtocolPart): @abstractmethod def set_device_posture(self, posture): pass - -class DisplayFeatureProtocolPart(ProtocolPart): - """Protocol part for Display Feature""" - __metaclass__ = ABCMeta - - name = "display_feature" - - @abstractmethod - def set_display_feature(self, orientation, offset, mask_length): - pass diff --git a/tools/wptrunner/wptrunner/testdriver-extra.js b/tools/wptrunner/wptrunner/testdriver-extra.js index 8af6285701bfe6..b0968849a4ff18 100644 --- a/tools/wptrunner/wptrunner/testdriver-extra.js +++ b/tools/wptrunner/wptrunner/testdriver-extra.js @@ -332,9 +332,4 @@ console.log('JV666 TEST_DRIVER tools/wptrunner/wptrunner/testdriver-extra.js set_device_posture: ' + posture); return create_action("set_device_posture", {posture, context}); }; - - window.test_driver_internal.set_display_feature = function(orientation, offset, mask_length, context=null) { - console.log('JV666 TEST_DRIVER tools/wptrunner/wptrunner/testdriver-extra.js set_display_feature: ' + orientation + ' ' + offset + ' ' + mask_length); - return create_action("set_display_feature", {orientation, offset, mask_length, context}); - }; })(); diff --git a/visual-viewport/display-feature.html b/visual-viewport/display-feature.html deleted file mode 100644 index 315f7e974325e5..00000000000000 --- a/visual-viewport/display-feature.html +++ /dev/null @@ -1,41 +0,0 @@ - - -Viewport Segments: visualViewport.segments - - - - - - -