Bug 1439946 [wpt PR 9601] - Adding additional enabled <option> element in WebDriver test page, a=testonly

Automatic update from web-platform-testswebdriver: add additional enabled <option> element in test page (#9601)

Clicking on a disabled <option> element should not allow it to become
selected. However, if the disabled <option> is the only child element of
the <select> element, it may be marked as selected by the user agent. This
commit allows the test to attempt to call elementClick on a disabled
<option> without it being selected.

wpt-commits: cf1569d41abb8dd17fcb70cdff37ea4486a2b281
wpt-pr: 9601
wpt-commits: cf1569d41abb8dd17fcb70cdff37ea4486a2b281
wpt-pr: 9601
This commit is contained in:
jimevans 2018-03-26 12:42:13 +00:00 committed by James Graham
parent 2ba85d6be8
commit d692fa02e5
2 changed files with 2 additions and 1 deletions

View File

@ -598074,7 +598074,7 @@
"wdspec"
],
"webdriver/tests/element_click/select.py": [
"bbce720456bd6bae72ad256b56b7743be85959f3",
"bddc341a0feb0d06e75415b8f98b8e9e0c2a829d",
"wdspec"
],
"webdriver/tests/element_click/stale.py": [

View File

@ -217,6 +217,7 @@ def test_option_disabled(session):
session.url = inline("""
<select>
<option disabled>foo
<option>bar
</select>""")
option = session.find.css("option", all=False)
assert not option.selected