[wdspec] Improve BiDi specific tests for invalid types that miss `None` checks
Categories
(Remote Protocol :: WebDriver BiDi, enhancement, P3)
Tracking
(firefox101 fixed)
Tracking | Status | |
---|---|---|
firefox101 | --- | fixed |
People
(Reporter: whimboo, Assigned: Sasha)
Details
(Whiteboard: [bidi-m3-mvp], [wptsync upstream])
Attachments
(1 file)
As noticed a couple of Webdriver Bidi tests that check for invalid types miss the None
type which in most cases would be invalid because a required argument most likely shouldn't be null
.
Here the list of tests that need to be checked:
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Checked the listed tests:
-
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/webdriver/tests/bidi/browsing_context/get_tree/invalid.py -
None
has a logic to cover it for both possible arguments (maxDepth
androot
), so it doesn't throw an error for both arguments; -
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/webdriver/tests/bidi/browsing_context/navigate/invalid.py - have already checks for
None
for argumentscontext
andurl
,wait
has a default value and doesn't throw an error when it'sNone
; -
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/webdriver/tests/bidi/session/subscribe/subscribe.py and https://searchfox.org/mozilla-central/source/testing/web-platform/tests/webdriver/tests/bidi/session/unsubscribe/unsubscribe.py have already checks for
None
for all possible arguments; -
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/webdriver/tests/bidi/browsing_context/close/invalid.py - the only test which is missing a valid check for
None
Assignee | ||
Comment 2•3 years ago
|
||
![]() |
||
Comment 5•3 years ago
|
||
bugherder |
Description
•