Bug 291371
Summary: | [WebDriver][BiDi] session.subscribe should subscribe to all events in a module if just given the module name | ||
---|---|---|---|
Product: | WebKit | Reporter: | Lauro Moura <lmoura> |
Component: | WebDriver | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | bburg, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 281940 |
Lauro Moura
https://w3c.github.io/webdriver-bidi/#obtain-a-set-of-event-names
To obtain a set of event names given a name:
1. Let events be an empty set.
2. If name contains a U+002E (period):
1. If name is the event name for an event, append name to events and return success with data events.
2. Return an error with error code invalid argument
3. Otherwise name is interpreted as representing all the events in a module. If name is not a module name return an error with error code invalid argument.
4. Append the event name for each event in the module with name name to events.
5. Return success with data events.
Related tests:
imported/w3c/webdriver/tests/bidi/session/subscribe/events.py::test_subscribe_to_module
imported/w3c/webdriver/tests/bidi/session/subscribe/events.py::test_subscribe_to_one_event_and_then_to_module
imported/w3c/webdriver/tests/bidi/session/subscribe/events.py::test_subscribe_to_module_and_then_to_one_event_again
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/149479444>