Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Nov 14, 2024
1 parent 9b6a185 commit f44ba97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
10 changes: 6 additions & 4 deletions tools/wptrunner/wptrunner/executors/asyncactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ def __init__(self, logger, protocol):
self.protocol = protocol

async def __call__(self, payload):
descriptor=payload['descriptor']
state=payload['state']
origin=payload['origin']
return await self.protocol.bidi_permissions.set_permission(descriptor, state, origin)
descriptor = payload['descriptor']
state = payload['state']
origin = payload['origin']
return await self.protocol.bidi_permissions.set_permission(descriptor,
state,
origin)


async_actions = [BidiPermissionsSetPermissionAction, BidiSessionSubscribeAction]
15 changes: 7 additions & 8 deletions tools/wptrunner/wptrunner/testdriver-extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,13 @@
on_event);
};

window.test_driver_internal.bidi.permissions.set_permission =
function (params) {
return create_action("bidi.permissions.set_permission", {
// Default to the current window's origin.
origin: window.location.origin,
...params
});
};
window.test_driver_internal.bidi.permissions.set_permission = function (params) {
return create_action("bidi.permissions.set_permission", {
// Default to the current window's origin.
origin: window.location.origin,
...params
});
};

window.test_driver_internal.set_test_context = function(context) {
if (window.__wptrunner_message_queue) {
Expand Down

0 comments on commit f44ba97

Please sign in to comment.