Skip to content

Commit

Permalink
rename action to bidi_session_subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Feb 16, 2024
1 parent 04fb382 commit c67fdfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tools/wptrunner/wptrunner/executors/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def __call__(self, payload):
self.protocol.click.element(element)


class SubscribeAction:
name = "subscribe"
class BidiSessionSubscribeAction:
name = "bidi_session_subscribe"

def __init__(self, logger, protocol):
self.logger = logger
Expand Down Expand Up @@ -490,4 +490,4 @@ def __call__(self, payload):
UpdateVirtualSensorAction,
RemoveVirtualSensorAction,
GetVirtualSensorInformationAction,
SubscribeAction]
BidiSessionSubscribeAction]
2 changes: 1 addition & 1 deletion tools/wptrunner/wptrunner/executors/executorwebdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def do_testharness(self, protocol, url, timeout):
protocol.base.execute_script(self.window_loaded_script, asynchronous=True)

if protocol.events:
# If protocol implements events, subscribe to the events and forward them to tests.
# If protocol implements events, forward them to tests.
async def process_bidi_event(method, params):
print("bidi event received", method, params)
protocol.testdriver.send_message(-1, "event", method, json.dumps(params))
Expand Down
2 changes: 1 addition & 1 deletion tools/wptrunner/wptrunner/testdriver-extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
window.test_driver_internal.in_automation = true;

window.test_driver_internal.bidi.session.subscribe = function(event, context=null) {
return create_action("subscribe", {event, context});
return create_action("bidi_session_subscribe", {event, context});
};

window.test_driver_internal.bidi.log.entryAdded.on = function (callback) {
Expand Down

0 comments on commit c67fdfd

Please sign in to comment.