Skip to content

Commit c26c0fb

Browse files
QueenieZqqchromium-wpt-export-bot
authored andcommitted
Proofreader API: Update API shape for multiple labels per correction.
This is part of the preparation for the model switching from Nano + LoRA to TinyGemma. WPT test updated. Bug: 452978387 Change-Id: I4984482b3c766e1ce9c25f9a50c7b31f7553be86 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7548599 Reviewed-by: Nathan Memmott <memmott@chromium.org> Reviewed-by: Mike Wasserman <msw@chromium.org> Commit-Queue: Queenie Zhang <queeniezhang@google.com> Cr-Commit-Position: refs/heads/main@{#1600725}
1 parent bbf0c1a commit c26c0fb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ai/proofreader/proofreader-proofread.tentative.https.window.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ promise_test(async (t) => {
4444
assert_equals(typeof result, 'object');
4545
assert_not_equals(result.correctedInput, input);
4646
assert_greater_than(result.corrections.length, 0);
47-
assert_not_equals(result.corrections[0].type, undefined);
47+
assert_not_equals(result.corrections[0].types, undefined);
48+
assert_greater_than(result.corrections[0].types.length, 0);
4849
}, 'Proofreader.proofread() returns correction types when requested');
4950

5051
promise_test(async (t) => {

0 commit comments

Comments
 (0)