writer-create.tentative.https.window.js (393B)
1 // META: title=Writer Create 2 // META: script=/resources/testdriver.js 3 // META: script=../resources/util.js 4 // META: timeout=long 5 6 'use strict'; 7 8 promise_test(async () => { 9 assert_true(!!Writer); 10 }, 'Writer must be defined.'); 11 12 promise_test(async t => { 13 await testCreateMonitorCallbackThrowsError(t, createWriter); 14 }, 'If monitor throws an error, Writer.create() rejects with that error');