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/writer/writer-write-concurrent.tentative.https.window.html - WPT Dashboard Interop Dashboard
// META: title=Writer Write Concurrent
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: script=../resources/util.js
// META: timeout=long
'use strict';
promise_test(async () => {
const writer = await createWriter();
await Promise.all([writer.write(kTestPrompt), writer.write(kTestPrompt)]);
}, 'Multiple Writer.write() calls with identical inputs are resolved successfully');
promise_test(async () => {
const writer = await createWriter();
await Promise.all([writer.write(kTestPrompt), writer.write(kTestPrompt2)]);
}, 'Multiple Writer.write() calls with divergent inputs are resolved successfully');