Files
sousa-gecko/testing/web-platform/tests/ai/summarizer/summarizer-create.tentative.https.window.js
T
Mike Wasserman 3abf610fa6 Bug 1976735 [wpt PR 53698] - Built-In AI APIs: Fix create-user-activation WPT flakiness, a=testonly
Automatic update from web-platform-tests
Built-In AI APIs: Fix create-user-activation WPT flakiness

Make EchoAIManager mock model download state per mojo receiver.
Revise WPTs to use PRECONDITION_FAILED if not 'downloadable'; cleanup.
Add FAIL AIExpectations for Chrome testing with side-loaded models.

Bug: 407988949
Change-Id: Icf8f2c538012cc25e3a949350f5afba22a70a40e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6714834
Auto-Submit: Mike Wasserman <msw@chromium.org>
Commit-Queue: Mike Wasserman <msw@chromium.org>
Reviewed-by: Brad Triebwasser <btriebw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1485095}

--

wpt-commits: 0afe15f961a8af4208a5e1c1432ef046298cb634
wpt-pr: 53698
2025-07-14 08:27:22 +00:00

15 lines
524 B
JavaScript

// META: title=Summarizer Create
// META: script=/resources/testdriver.js
// META: script=../resources/util.js
// META: timeout=long
'use strict';
promise_test(async () => {
assert_implements_optional("Summarizer" in self, "Summarizer is not supported");
assert_equals(typeof Summarizer.create, 'function');
}, 'Summarizer.create() is defined');
promise_test(async t => {
await testCreateMonitorCallbackThrowsError(t, createSummarizer);
}, 'If monitor throws an error, Summarizer.create() rejects with that error');