tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 818effc2c02816377bc1dcb97f1c89469d27f6ea
parent 8660dd1fef109bf4c73ff22cfadd4fe4c9b71053
Author: Joey Arhar <jarhar@chromium.org>
Date:   Tue, 21 Oct 2025 10:29:21 +0000

Bug 1994533 [wpt PR 55461] - Move customizable select innerText WPT, a=testonly

Automatic update from web-platform-tests
Move customizable select innerText WPT

I created a new WPT when I modified the behavior of select's innerText
algorithm, but this created confusion due to the presence of another
innerText WPT:
https://github.com/whatwg/html/issues/11017#issuecomment-3384513275

This patch consolidates the two tests.

Bug: 387440276
Change-Id: I380180ad644319558690ce327262be0b31c2be96
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7031756
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1530439}

--

wpt-commits: 6fbe8d6cdd8212cbeacf1ef5fcd32b8720b10fae
wpt-pr: 55461

Diffstat:
Mtesting/web-platform/tests/html/dom/elements/the-innertext-and-outertext-properties/getter-tests.js | 1+
Dtesting/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-innertext.html | 61-------------------------------------------------------------
2 files changed, 1 insertion(+), 61 deletions(-)

diff --git a/testing/web-platform/tests/html/dom/elements/the-innertext-and-outertext-properties/getter-tests.js b/testing/web-platform/tests/html/dom/elements/the-innertext-and-outertext-properties/getter-tests.js @@ -204,6 +204,7 @@ testText("<div>a<optgroup></optgroup>bc", "a\nbc", "empty <optgroup> in <div>"); testText("<div>a<optgroup>123</optgroup>bc", "a\nbc", "<optgroup> in <div>"); testText("<div>a<option></option>bc", "a\nbc", "empty <option> in <div>"); testText("<div>a<option>123</option>bc", "a\n123\nbc", "<option> in <div>"); +testText("<select><option>one</option><div><optgroup label=optgroup><div><option><span>two", "one\ntwo"); /**** innerText on replaced element children ****/ diff --git a/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-innertext.html b/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-innertext.html @@ -1,61 +0,0 @@ -<!DOCTYPE html> -<link rel=author href="mailto:jarhar@chromium.org"> -<link rel=help href="https://issues.chromium.org/issues/387440276"> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/resources/testdriver.js"></script> -<script src="/resources/testdriver-vendor.js"></script> - -<select id=oldcontentmodel> - <option>one</option> - <optgroup label=emptygroup></optgroup> - <optgroup label=optgroup> - <option>two</option> - </optgroup> -</select> - -<select id=newcontentmodel> - <option>one</option> - <optgroup label=emptygroup></optgroup> - <div> - <optgroup label=optgroup> - <div> - <option> - <span>two</span> - </option> - </div> - </optgroup> - </div> -</select> - -<style> -.base, .base::picker(select) { - appearance: base-select; -} -</style> - -<script> -const expectedText = 'one\ntwo'; -const oldSelect = document.getElementById('oldcontentmodel'); -const newSelect = document.getElementById('newcontentmodel'); - -test(() => { - assert_equals(oldSelect.innerText, expectedText); -}, '<select> innerText with old content model and appearance:auto.'); - -test(() => { - assert_equals(newSelect.innerText, expectedText); -}, '<select> innerText with new content model and appearance:auto.'); - -promise_test(async () => { - newSelect.classList.add('base'); - await new Promise(requestAnimationFrame); - assert_equals(newSelect.innerText, expectedText); -}, '<select> innerText with new content model and appearance:base-select.'); - -promise_test(async () => { - await test_driver.bless(); - newSelect.showPicker(); - assert_equals(newSelect.innerText, expectedText); -}, '<select> innerText with new content model and appearance:base-select with picker open.'); -</script>