Home
last modified time | relevance | path

Searched refs:promise_rejects_js (Results 1 – 25 of 35) sorted by relevance

12

/third_party/node/test/fixtures/wpt/streams/writable-streams/
Dreentrant-strategy.any.js104 return promise_rejects_js(t, TypeError, writer.write('a'), 'write() promise should reject')
138 …const writePromise = promise_rejects_js(t, TypeError, writer.write('a'), 'write() promise should r…
139 …const readyPromise = promise_rejects_js(t, TypeError, writer.ready, 'ready promise should reject');
140 …const closedPromise = promise_rejects_js(t, TypeError, writer.closed, 'closed promise should rejec…
167 …const writePromise1 = promise_rejects_js(t, TypeError, writer1.write(1), 'write() promise should r…
168 …const readyPromise = promise_rejects_js(t, TypeError, writer1.ready, 'ready promise should reject'…
169 …const closedPromise1 = promise_rejects_js(t, TypeError, writer1.closed, 'closed promise should rej…
Daborting.any.js54 return promise_rejects_js(t, TypeError, writer.abort(), 'abort() should reject with a TypeError');
641 promise_rejects_js(t, TypeError, writer.ready,
643 promise_rejects_js(t, TypeError, writer.closed,
738 promise_rejects_js(t, TypeError, writer.ready,
740 promise_rejects_js(t, TypeError, writer.closed,
784 promise_rejects_js(t, TypeError, writer.close(),
795 promise_rejects_js(t, TypeError, writer.close(),
820 promise_rejects_js(t, TypeError, writer.close(),
829 promise_rejects_js(t, TypeError, writer.close(),
831 promise_rejects_js(t, TypeError, writer.ready,
[all …]
Dclose.any.js218 promise_rejects_js(t, TypeError, closedPromise, '.closed promise should be rejected')
236 promise_rejects_js(t, TypeError, closedPromise, '.closed promise should be rejected')
425 return promise_rejects_js(t, TypeError, ws.close(), 'close should reject');
446 return promise_rejects_js(t, TypeError, ws.close(), 'close should reject');
454 return promise_rejects_js(t, TypeError, ws.close(), 'close should reject');
469 return promise_rejects_js(t, TypeError, ws.close(), 'close should reject');
/third_party/node/test/fixtures/wpt/encoding/streams/
Drealms.window.js203 await promise_rejects_js(t, constructorRealm.TypeError,
209 return promise_rejects_js(t, constructorRealm.TypeError, readPromise,
247 await promise_rejects_js(
253 return promise_rejects_js(
266 await promise_rejects_js(
272 return promise_rejects_js(
288 return promise_rejects_js(
Ddecode-bad-chunks.any.js35 await promise_rejects_js(t, TypeError, writePromise, 'write should reject');
36 await promise_rejects_js(t, TypeError, readPromise, 'read should reject');
Ddecode-non-utf8.any.js76 await promise_rejects_js(t, TypeError, reader.read(),
78 await promise_rejects_js(t, TypeError,
/third_party/node/test/fixtures/wpt/wasm/webapi/
Dcontenttype.any.js6 return promise_rejects_js(t, TypeError, WebAssembly.compileStreaming(response));
11 return promise_rejects_js(t, TypeError, WebAssembly.instantiateStreaming(response));
27 return promise_rejects_js(t, TypeError, WebAssembly.compileStreaming(response));
32 return promise_rejects_js(t, TypeError, WebAssembly.instantiateStreaming(response));
Dorigin.sub.any.js7 return promise_rejects_js(t, TypeError, WebAssembly[method](response));
13 return promise_rejects_js(t, TypeError, WebAssembly[method](response));
Dinvalid-args.any.js20 return promise_rejects_js(t, TypeError, WebAssembly[method](argument));
25 return promise_rejects_js(t, TypeError, WebAssembly[method](argument));
Dempty-body.any.js12 return promise_rejects_js(t, WebAssembly.CompileError, WebAssembly[method](argument));
17 return promise_rejects_js(t, WebAssembly.CompileError, WebAssembly[method](argument));
Dbody.any.js9 return promise_rejects_js(t, TypeError, WebAssembly[method](argument));
17 return promise_rejects_js(t, TypeError, promise);
Dmodified-contenttype.any.js12 return promise_rejects_js(t, TypeError, argument.blob());
20 await promise_rejects_js(t, TypeError, WebAssembly[method](argument));
Dinvalid-code.any.js13 return promise_rejects_js(t, WebAssembly.CompileError, WebAssembly[method](response));
19 return promise_rejects_js(t, WebAssembly.CompileError, WebAssembly[method](response));
/third_party/node/test/fixtures/wpt/wasm/jsapi/constructor/
Dcompile.any.js16 return promise_rejects_js(t, TypeError, WebAssembly.compile());
33 return promise_rejects_js(t, TypeError, WebAssembly.compile(argument),
63 return promise_rejects_js(t, WebAssembly.CompileError, WebAssembly.compile(buffer));
68 return promise_rejects_js(t, WebAssembly.CompileError, WebAssembly.compile(buffer));
Dinstantiate.any.js12 return promise_rejects_js(t, TypeError, WebAssembly.instantiate());
48 return promise_rejects_js(t, TypeError, WebAssembly.instantiate(argument),
138 return promise_rejects_js(t, WebAssembly.CompileError, WebAssembly.instantiate(buffer));
143 return promise_rejects_js(t, WebAssembly.CompileError, WebAssembly.instantiate(buffer));
Dinstantiate-bad-imports.any.js11 return promise_rejects_js(t, error, WebAssembly.instantiate(module, ...arguments));
20 return promise_rejects_js(t, error, WebAssembly.instantiate(buffer, ...arguments));
/third_party/node/test/fixtures/wpt/streams/resources/
Drs-test-templates.js269 promise_rejects_js(t, TypeError, read1, 'first read should reject'),
270 promise_rejects_js(t, TypeError, read2, 'second read should reject'),
271 promise_rejects_js(t, TypeError, closed, 'closed should reject')
282 promise_rejects_js(t, TypeError, reader.read()),
283 promise_rejects_js(t, TypeError, reader.read())
298 return promise_rejects_js(t, TypeError, closedBefore);
327 return promise_rejects_js(t, TypeError, stream.cancel());
390 promise_rejects_js(t, TypeError, closedAfter)
435 return promise_rejects_js(t, TypeError, closedAfter);
598 promise_rejects_js(t, TypeError, reader.read()),
[all …]
Dtest-utils.js6 …return promise_rejects_js(t, TypeError, getter.call(target), getterName + ' should reject with a T…
16 return promise_rejects_js(t, TypeError, method.apply(target, args),
/third_party/node/test/fixtures/wpt/streams/transform-streams/
Dterminate.any.js14 …const pipeToPromise = promise_rejects_js(t, TypeError, rs.pipeTo(ts.writable), 'pipeTo should reje…
40 return promise_rejects_js(t, TypeError, pipeToPromise, 'pipeTo() should reject');
68 promise_rejects_js(t, TypeError, ts.writable.abort(), 'abort() should reject with a TypeError'),
82 promise_rejects_js(t, TypeError, ts.writable.abort(), 'abort() should reject with a TypeError'),
Dstrategies.any.js125 return promise_rejects_js(t, RangeError, writer.write(), 'write should reject');
144 promise_rejects_js(t, RangeError, writer.ready, 'ready should reject'),
145 promise_rejects_js(t, RangeError, writer.closed, 'closed should reject'),
146promise_rejects_js(t, RangeError, ts.readable.getReader().closed, 'readable closed should reject')
/third_party/node/test/fixtures/wpt/streams/piping/
Dclose-propagation-backward.any.js105 return promise_rejects_js(t, TypeError, rs.pipeTo(ws, { preventCancel: truthy })).then(() => {
124 …return promise_rejects_js(t, TypeError, rs.pipeTo(ws, { preventCancel: true, preventAbort: true }))
143 return promise_rejects_js(t, TypeError,
Dgeneral.any.js65 return promise_rejects_js(t, TypeError, rs.pipeTo(ws)).then(() => {
81 return promise_rejects_js(t, TypeError, rs.pipeTo(ws)).then(() => {
195 return promise_rejects_js(t, TypeError, rs.pipeTo(ws, {
/third_party/node/test/fixtures/wpt/streams/readable-streams/
Ddefault-reader.any.js151 promise_rejects_js(t, TypeError, reader1.closed),
177 promise_rejects_js(t, TypeError, promise2, '.closed after releasing lock'),
203 promise_rejects_js(t, TypeError, promise2, '.closed after releasing lock')
277 promise_rejects_js(t, TypeError, cancelPromise),
526 …const promise1 = promise_rejects_js(t, TypeError, reader1.read(), 'read() from reader1 should reje…
/third_party/node/test/fixtures/wpt/streams/readable-byte-streams/
Dgeneral.any.js161 return promise_rejects_js(t, TypeError, reader.closed, 'closed must reject');
172 return promise_rejects_js(t, TypeError, reader.closed, 'closed must reject');
247 await promise_rejects_js(t, TypeError, read, 'pending read must reject');
258 await promise_rejects_js(t, TypeError, read, 'pending read must reject');
1448 return promise_rejects_js(t, TypeError, reader.read(new Uint16Array(1)), 'read(view) must fail')
1449 .then(() => promise_rejects_js(t, TypeError, reader.closed, 'reader.closed should reject'));
1474 return promise_rejects_js(t, TypeError, readPromise, 'read(view) must fail')
1475 .then(() => promise_rejects_js(t, TypeError, reader.closed, 'reader.closed must reject'));
1853 return promise_rejects_js(t, TypeError, reader.read(), 'read() must fail')
1864 return promise_rejects_js(t, TypeError, reader.read({}), 'read(view) must fail');
[all …]
Dbad-buffers-and-views.any.js93 return promise_rejects_js(t, TypeError, reader.read(view));
107 return promise_rejects_js(t, TypeError, reader.read(view));
120 return promise_rejects_js(t, TypeError, reader.read(view));

12