Closed Bug 1746520 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 32120 - [SelectMenu] Expose selectmenu.selectedOption.

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 32120 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/32120
Details from upstream follow.

Ionel Popescu <iopopesc@microsoft.com> wrote:

[SelectMenu] Expose selectmenu.selectedOption.

This CL adds support for HTMLSelectMenu.selectedOption by simply
exposing the already computed selected_option_.

Bug: 1121840
Change-Id: I57d23789afd4e537fc31acaf06cd143d964277e5
Reviewed-on: https://chromium-review.googlesource.com/3345974
WPT-Export-Revision: e10e50cfa43a8b25a96f9bd85e1f2bfa18ab949f

PR 32120 applied with additional changes from upstream: 0695d6b2b0e1bdaa2020500b514ac542464a7ae5, 106034af717156b00245588d297e1cafcd83b7d6, e9a0e96769121428427d51d9f70a8647870928a8
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 9 subtests

Status Summary

Firefox

OK : 1
FAIL: 9

Chrome

OK : 1
FAIL: 9

Safari

OK : 1
FAIL: 9

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/semantics/forms/the-selectmenu-element/selectmenu-value-selectedOption.tentative.html
Test that HTMLSelectMenu with no options has empty string for value and null for selectedOption: FAIL (Chrome: FAIL, Safari: FAIL)
Test value and selectedOption with HTMLOptionElement element option parts: FAIL (Chrome: FAIL, Safari: FAIL)
Test value with non-HTMLOptionElement elements labeled as parts: FAIL (Chrome: FAIL, Safari: FAIL)
Test that value and selectedOption are updated when options are removed: FAIL (Chrome: FAIL, Safari: FAIL)
Test that slotted-in selected-value part is updated to value of selectmenu: FAIL (Chrome: FAIL, Safari: FAIL)
Test that option parts in a slotted-in listbox are reflected in the value property: FAIL (Chrome: FAIL, Safari: FAIL)
Test that value and selectedOption are correctly updated: FAIL (Chrome: FAIL, Safari: FAIL)
Test that HTMLOption.selected updates selectmenu.value and selectmenu.selectedOption: FAIL (Chrome: FAIL, Safari: FAIL)
Test that HTMLOption.value updates selectmenu.value: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e6e1ed34f438
[wpt PR 32120] - [SelectMenu] Expose selectmenu.selectedOption., a=testonly
https://hg.mozilla.org/integration/autoland/rev/dbcc78823fb6
[wpt PR 32120] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
You need to log in before you can comment on or make changes to this bug.