commit 14127b06da885ee6c5b7b0597bac8afc82bef48c
parent 180801eb19efdd20939b906ebdb5fd4d07a1fa71
Author: Mason Freed <masonf@chromium.org>
Date: Fri, 31 Oct 2025 08:56:33 +0000
Bug 1996948 [wpt PR 55730] - Fix new selection-after-whitespace-change.html test, a=testonly
Automatic update from web-platform-tests
Fix new selection-after-whitespace-change.html test
This test improperly send an array of keys (with one entry) to
the test_driver.send_keys() function. Per the documentation:
https://web-platform-tests.org/writing-tests/testdriver.html#test_driver.send_keys
...the second argument is just a string. This fixes that.
This was added here:
https://github.com/web-platform-tests/wpt/commit/bbb3bb005f0142c1039ad4ef661f8bde9d8615d5
Fixed: 453673799
Change-Id: I028ab1846f5fe460127857661c03983697503fa7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7083987
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1536810}
--
wpt-commits: a6fe5f6d70452238c94d6fec8b7c01fc2b76fbf5
wpt-pr: 55730
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testing/web-platform/tests/html/semantics/forms/the-textarea-element/selection-after-whitespace-change.html b/testing/web-platform/tests/html/semantics/forms/the-textarea-element/selection-after-whitespace-change.html
@@ -19,10 +19,10 @@ promise_test(async () => {
.send();
} else {
// Home
- await test_driver.send_keys(t, ["\uE011"]);
+ await test_driver.send_keys(t, "\uE011");
}
// And then Delete
- await test_driver.send_keys(t, ["\uE017"]);
+ await test_driver.send_keys(t, "\uE017");
t.style.whiteSpace = "pre-line";
await new Promise(setTimeout);
assert_equals(t.selectionStart, 0, "selectionStart should remain 0");