Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /ai/language-model/prompt/streaming/empty-array-input.tentative.https.window.html - WPT Dashboard Interop Dashboard
// META: title=Language Model Prompt Streaming - array
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: script=../../../resources/util.js
// META: timeout=long
'use strict';
promise_test(async (t) => {
await ensureLanguageModel();
const model = await createLanguageModel();
for await (const _ of model.promptStreaming([])) { }
}, 'LanguageModel.promptStreaming() allows empty array input');