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-create.tentative.https.window.html - WPT Dashboard Interop Dashboard
// META: title=Writer Create
// META: script=/resources/testdriver.js
// META: script=../resources/util.js
// META: timeout=long
'use strict';
promise_test(async () => {
assert_true(!!Writer);
}, 'Writer must be defined.');
promise_test(async t => {
await testCreateMonitorCallbackThrowsError(t, createWriter);
}, 'If monitor throws an error, Writer.create() rejects with that error');