Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 2 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /ai/summarizer/summarizer-create.tentative.https.window.html - WPT Dashboard Interop Dashboard
// 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');