tor-browser

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

commit db8d3330d1481992489250414535874403666220
parent 8b3b26b10b6658cecdb4cb05037b6ef3bdbd1dab
Author: Mike Wasserman <msw@chromium.org>
Date:   Thu, 30 Oct 2025 18:57:41 +0000

Bug 1996382 [wpt PR 55655] - Writer API: Update default `WriterLength` to "short"., a=testonly

Automatic update from web-platform-tests
Writer API: Update default `WriterLength` to "short".

Change default Writer length "medium"->"short" to match spec:
https://webmachinelearning.github.io/writing-assistance-apis/#dictdef-writercreatecoreoptions

Update WPT to match.

Fixed: 454057364
Test: Automated WPT
Change-Id: Iddc867fbb3d85aa0022698b7c5335fe9334261e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7068623
Auto-Submit: Mike Wasserman <msw@chromium.org>
Reviewed-by: Nathan Memmott <memmott@chromium.org>
Commit-Queue: Mike Wasserman <msw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1535417}

--

wpt-commits: 8ec8e6d4dd5549616c01861f7c4f70f274c0772d
wpt-pr: 55655

Diffstat:
Mtesting/web-platform/tests/ai/writer/writer-create-available.tentative.https.window.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/testing/web-platform/tests/ai/writer/writer-create-available.tentative.https.window.js b/testing/web-platform/tests/ai/writer/writer-create-available.tentative.https.window.js @@ -26,7 +26,7 @@ promise_test(async () => { assert_equals(writer.tone, 'neutral'); assert_equals(writer.format, 'plain-text'); - assert_equals(writer.length, 'medium'); + assert_equals(writer.length, 'short'); }, 'Writer.create() returns a valid object with default options'); promise_test(async () => { @@ -59,9 +59,9 @@ promise_test(async () => { }, 'Creating a Writer with "markdown" format'); promise_test(async () => { - const writer = await createWriter({length: 'short'}); - assert_equals(writer.length, 'short'); -}, 'Creating a Writer with "short" length'); + const writer = await createWriter({length: 'medium'}); + assert_equals(writer.length, 'medium'); +}, 'Creating a Writer with "medium" length'); promise_test(async () => { const writer = await createWriter({length: 'long'});