Home
last modified time | relevance | path

Searched refs:rejects (Results 1 – 25 of 202) sorted by relevance

123456789

/third_party/node/test/parallel/
Dtest-assert-async.js44 promises.push(assert.rejects(rejectingFn, errObj));
45 promises.push(assert.rejects(rejectingFn(), errObj));
53 promises.push(assert.rejects(validRejectingThenable, { code: 'FAIL' }));
57 promises.push(assert.rejects(
58 assert.rejects(invalidThenable, {}),
63 promises.push(assert.rejects(
64 assert.rejects(invalidThenableFunc, {}),
72 promises.push(assert.rejects(
73 () => assert.rejects(Promise.reject(err), validate),
99 let promise = assert.rejects(async () => {}, common.mustNotCall());
[all …]
Dtest-vm-module-errors.js40 await assert.rejects(async () => {
52 await assert.rejects(async () => {
61 await assert.rejects(async () => {
70 await assert.rejects(async () => {
78 await assert.rejects(async () => {
95 await assert.rejects(async () => {
115 await assert.rejects(async () => {
127 await assert.rejects(async () => {
142 await assert.rejects(async () => {
177 await assert.rejects(() => {
[all …]
Dtest-timers-promisified.js49 assert.rejects(setTimeout(10, undefined, { signal }), /AbortError/);
57 assert.rejects(setTimeout(10, undefined, { signal }), /AbortError/);
63 assert.rejects(setImmediate(10, { signal }), /AbortError/);
71 assert.rejects(setImmediate(10, { signal }), /AbortError/);
111 [1, '', false, Infinity].map((i) => assert.rejects(setImmediate(10, i)), {
117 (signal) => assert.rejects(setImmediate(10, { signal })), {
123 (i) => assert.rejects(setTimeout(10, null, i)), {
129 (signal) => assert.rejects(setTimeout(10, null, { signal })), {
135 (ref) => assert.rejects(setTimeout(10, null, { ref })), {
Dtest-fs-promises-watch.js76 assert.rejects(
81 assert.rejects(
86 assert.rejects(
91 assert.rejects(
96 assert.rejects(
101 assert.rejects(
Dtest-events-once.js10 rejects,
130 return rejects(once(ee, 'foo', { signal }), {
135 return rejects(once(ee, 'foo', { signal: ac.signal }), {
144 const r = rejects(once(ee, 'foo', { signal: ac.signal }), {
167 return rejects(once(et, 'foo', { signal }), {
172 return rejects(once(et, 'foo', { signal: ac.signal }), {
180 const r = rejects(once(et, 'foo', { signal: ac.signal }), {
Dtest-fs-promises.js54 assert.rejects(
63 assert.rejects(
71 assert.rejects(
192 assert.rejects(
203 assert.rejects(
279 assert.rejects(
366 assert.rejects(
383 assert.rejects(
415 assert.rejects(
429 assert.rejects(
Dtest-fs-promises-file-handle-readFile.js65 await assert.rejects(readFile(fileHandle, { signal }), {
80 await assert.rejects(readFile(fileHandle, { signal }), {
97 await assert.rejects(fileHandle.readFile({ signal, encoding: 'utf8' }), {
115 await assert.rejects(fileHandle.readFile(), {
Dtest-fs-promises-readfile.js50 assert.rejects(readFile(fn, { signal }), {
59 assert.rejects(readFile(fn, { signal }), {
68 await assert.rejects(async () => {
Dtest-directory-import.js9 assert.rejects(import('./'), /ERR_UNSUPPORTED_DIR_IMPORT/);
10 assert.rejects(
Dtest-fs-promises-file-handle-writeFile.js42 await assert.rejects(writeFile(fileHandle, buffer, { signal }), {
104 await assert.rejects(
129 assert.rejects(
179 assert.rejects(
Dtest-fs-promises-writefile.js70 await assert.rejects(
85 assert.rejects(fsPromises.writeFile(dest, iterableWith(value)), {
114 assert.rejects(fsPromises.writeFile(dest, value), {
125 await assert.rejects(
Dtest-fs-opendir.js164 await assert.rejects(async () => dir.read(), dirclosedError);
176 await assert.rejects(async () => dir.read(), dirclosedError);
192 await assert.rejects(async () => dir.read(), dirclosedError);
230 await assert.rejects(() => dir.close(), dirclosedError);
289 assert.rejects(dir.close(), dirclosedError).then(common.mustCall());
Dtest-child-process-exec-abortcontroller-promisified.js22 assert.rejects(promise, /AbortError/, 'post aborted sync signal failed')
46 assert.rejects(promise, /AbortError/, 'pre aborted signal failed')
Dtest-dns-channel-cancel-promise.js29 await assert.rejects(
50 assert.rejects(
Dtest-fs-promises-file-handle-sync.js13 await assert.rejects(
21 await assert.rejects(
Dtest-child-process-execFile-promisified-abortController.js25 assert.rejects(
37 assert.rejects(
/third_party/skia/tests/
DSkGlyphBufferTest.cpp99 SkSourceGlyphBuffer rejects; in DEF_TEST() local
105 rejects.setSource(source); in DEF_TEST()
106 for (auto [i, glyphID, pos] : SkMakeEnumerate(rejects.source())) { in DEF_TEST()
111 rejects.reject(1); in DEF_TEST()
112 rejects.reject(2, 100); in DEF_TEST()
113 rejects.flipRejectsToSource(); in DEF_TEST()
114 REPORTER_ASSERT(reporter, rejects.rejectedMaxDimension() == 100); in DEF_TEST()
115 for (auto [i, glyphID, pos] : SkMakeEnumerate(rejects.source())) { in DEF_TEST()
123 rejects.reject(0, 10); in DEF_TEST()
124 rejects.flipRejectsToSource(); in DEF_TEST()
[all …]
DSkScalerCacheTest.cpp67 SkSourceGlyphBuffer rejects; in DEF_TEST() local
70 rejects.setSource(local); in DEF_TEST()
72 drawable.startBitmapDevice(rejects.source(), {0, 0}, SkMatrix::I(), in DEF_TEST()
74 scalerCache.prepareForMaskDrawing(&drawable, &rejects); in DEF_TEST()
75 rejects.flipRejectsToSource(); in DEF_TEST()
/third_party/node/test/es-module/
Dtest-esm-undefined-cjs-global-like-variables.js7 assert.rejects(
11 assert.rejects(
16 assert.rejects(
22 assert.rejects(
26 assert.rejects(
30 assert.rejects(
34 assert.rejects(
39 assert.rejects(
Dtest-esm-cjs-named-error.mjs2 import { rejects } from 'assert';
26 rejects(async () => {
33 rejects(async () => {
40 rejects(async () => {
47 rejects(async () => {
54 rejects(async () => {
61 rejects(async () => {
68 rejects(async () => {
75 rejects(async () => {
Dtest-esm-invalid-data-urls.js6 await assert.rejects(import('data:text/plain,export default0'), {
12 await assert.rejects(import('data:text/plain;base64,'), {
18 await assert.rejects(import('data:application/json,[]'), {
/third_party/skia/src/core/
DSkStrikeForGPU.h37 SkDrawableGlyphBuffer* drawables, SkSourceGlyphBuffer* rejects) = 0;
40 SkDrawableGlyphBuffer* drawables, SkSourceGlyphBuffer* rejects) = 0;
43 SkDrawableGlyphBuffer* drawables, SkSourceGlyphBuffer* rejects) = 0;
DSkStrikeCache.h121 SkDrawableGlyphBuffer* drawbles, SkSourceGlyphBuffer* rejects) override { in prepareForMaskDrawing() argument
122 size_t increase = fScalerCache.prepareForMaskDrawing(drawbles, rejects); in prepareForMaskDrawing()
127 SkDrawableGlyphBuffer* drawbles, SkSourceGlyphBuffer* rejects) override { in prepareForSDFTDrawing() argument
128 size_t increase = fScalerCache.prepareForSDFTDrawing(drawbles, rejects); in prepareForSDFTDrawing()
133 SkDrawableGlyphBuffer* drawbles, SkSourceGlyphBuffer* rejects) override { in prepareForPathDrawing() argument
134 size_t increase = fScalerCache.prepareForPathDrawing(drawbles, rejects); in prepareForPathDrawing()
DSkScalerCache.cpp190 SkDrawableGlyphBuffer* drawables, SkSourceGlyphBuffer* rejects) { in prepareForMaskDrawing() argument
197 rejects->reject(i); in prepareForMaskDrawing()
205 SkDrawableGlyphBuffer* drawables, SkSourceGlyphBuffer* rejects) { in prepareForSDFTDrawing() argument
212 rejects->reject(i); in prepareForSDFTDrawing()
220 SkDrawableGlyphBuffer* drawables, SkSourceGlyphBuffer* rejects) { in prepareForPathDrawing() argument
234 rejects->reject(i, glyph->maxDimension()); in prepareForPathDrawing()
238 rejects->reject(i, glyph->maxDimension()); in prepareForPathDrawing()
/third_party/node/test/internet/
Dtest-dns-lookup.js10 assert.rejects(
22 assert.rejects(

123456789