/third_party/node/test/parallel/ |
D | test-assert-async.js | 44 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 …]
|
D | test-webstreams-abort-controller.js | 38 assert.rejects(reader.read(), /AbortError/).then(common.mustCall()); 39 assert.rejects(reader.closed, /AbortError/).then(common.mustCall()); 55 assert.rejects((async () => { 79 assert.rejects(reader1.read(), /AbortError/).then(common.mustCall()); 80 assert.rejects(reader1.closed, /AbortError/).then(common.mustCall()); 85 assert.rejects(reader2.read(), /AbortError/).then(common.mustCall()); 86 assert.rejects(reader2.closed, /AbortError/).then(common.mustCall()); 106 assert.rejects(reader1.read(), /AbortError/).then(common.mustCall()); 107 assert.rejects(reader1.closed, /AbortError/).then(common.mustCall()); 112 assert.rejects(reader2.read(), /AbortError/).then(common.mustCall()); [all …]
|
D | test-webcrypto-constructors.js | 58 assert.rejects(() => notSubtle.encrypt(), { 65 assert.rejects(() => notSubtle.decrypt(), { 72 assert.rejects(() => notSubtle.sign(), { 79 assert.rejects(() => notSubtle.verify(), { 86 assert.rejects(() => notSubtle.digest(), { 93 assert.rejects(() => notSubtle.generateKey(), { 100 assert.rejects(() => notSubtle.deriveKey(), { 107 assert.rejects(() => notSubtle.deriveBits(), { 114 assert.rejects(() => notSubtle.importKey(), { 121 assert.rejects(() => notSubtle.exportKey(), { [all …]
|
D | test-vm-module-errors.js | 40 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 () => { 143 await assert.rejects(async () => { 182 await assert.rejects(() => { [all …]
|
D | test-webcrypto-encrypt-decrypt-aes.js | 48 return assert.rejects(subtle.encrypt(algorithm, key, plaintext), { 63 return assert.rejects(subtle.decrypt(algorithm, key, output), { 77 return assert.rejects(subtle.encrypt(algorithm, key, plaintext), { 112 variations.push(assert.rejects(testEncrypt(vector), { 115 variations.push(assert.rejects(testDecrypt(vector), { 121 variations.push(assert.rejects(testDecrypt(vector), { 151 variations.push(assert.rejects(testEncrypt(vector), { 154 variations.push(assert.rejects(testDecrypt(vector), { 160 variations.push(assert.rejects(testDecrypt(vector), { 188 variations.push(assert.rejects(testEncrypt(vector), { [all …]
|
D | test-webcrypto-sign-verify-eddsa.js | 77 await assert.rejects( 82 await assert.rejects( 88 await assert.rejects( 93 await assert.rejects( 98 await assert.rejects( 188 await assert.rejects( 194 await assert.rejects( 199 await assert.rejects( 204 await assert.rejects( 243 …await assert.rejects(subtle.sign({ name: 'Ed448', context: Buffer.alloc(1) }, privateKey, vector.d… [all …]
|
D | test-webcrypto-export-import-cfrg.js | 126 await assert.rejects( 133 await assert.rejects( 162 await assert.rejects( 168 await assert.rejects( 262 await assert.rejects( 266 await assert.rejects( 274 await assert.rejects( 285 await assert.rejects( 294 await assert.rejects( 305 await assert.rejects( [all …]
|
D | test-webcrypto-sign-verify-ecdsa.js | 78 await assert.rejects( 83 await assert.rejects( 89 await assert.rejects( 94 await assert.rejects( 99 await assert.rejects( 136 await assert.rejects( 205 await assert.rejects( 211 await assert.rejects( 216 await assert.rejects( 221 await assert.rejects(
|
D | test-webcrypto-derivebits-ecdh.js | 140 await assert.rejects(subtle.deriveBits({ 164 await assert.rejects( 174 await assert.rejects( 187 await assert.rejects( 206 await assert.rejects(subtle.deriveBits({ 224 await assert.rejects(subtle.deriveBits({ 234 await assert.rejects(subtle.deriveBits({ 244 await assert.rejects(subtle.deriveBits({ 261 await assert.rejects(subtle.deriveBits({
|
D | test-stream-forEach.js | 54 assert.rejects(stream.forEach(common.mustCall((x) => { 64 assert.rejects(stream.forEach(async (x) => { 74 assert.rejects(stream.forEach((x) => { 84 assert.rejects(stream.forEach(async (x) => { 101 assert.rejects(async () => { 115 assert.rejects(async () => { 118 assert.rejects(async () => { 123 assert.rejects(async () => {
|
D | test-webcrypto-derivekey-ecdh.js | 126 await assert.rejects( 136 await assert.rejects( 149 await assert.rejects( 170 await assert.rejects( 191 await assert.rejects( 204 await assert.rejects( 217 await assert.rejects( 237 await assert.rejects(
|
D | test-webcrypto-export-import.js | 16 assert.rejects( 21 await assert.rejects( 25 await assert.rejects( 29 await assert.rejects( 35 await assert.rejects( 43 await assert.rejects( 52 await assert.rejects( 61 await assert.rejects( 100 await assert.rejects( 142 await assert.rejects(
|
D | test-webcrypto-keygen.js | 163 return assert.rejects( 202 await assert.rejects( 220 await assert.rejects( 236 await assert.rejects( 303 await assert.rejects( 308 await assert.rejects( 313 await assert.rejects( 319 return assert.rejects(subtle.generateKey({ 338 return assert.rejects( 345 return assert.rejects(subtle.generateKey({ [all …]
|
D | test-stream-reduce.js | 55 assert.rejects(Readable.from([1, 2, 3, 4, 5, 6]) 71 assert.rejects(async () => { 88 assert.rejects(async () => { 105 assert.rejects(async () => { 122 assert.rejects(() => Readable.from([]).reduce(1), /TypeError/); 123 assert.rejects(() => Readable.from([]).reduce('5'), /TypeError/); 124 assert.rejects(() => Readable.from([]).reduce((x, y) => x + y, 0, 1), /ERR_INVALID_ARG_TYPE/); 125 …assert.rejects(() => Readable.from([]).reduce((x, y) => x + y, 0, { signal: true }), /ERR_INVALID_…
|
D | test-webcrypto-export-import-ec.js | 122 await assert.rejects( 129 await assert.rejects( 162 await assert.rejects( 168 await assert.rejects( 263 await assert.rejects( 267 await assert.rejects( 275 await assert.rejects( 286 await assert.rejects( 295 await assert.rejects( 306 await assert.rejects( [all …]
|
D | test-webcrypto-derivebits-hkdf.js | 260 assert.rejects( 264 assert.rejects( 269 assert.rejects( 274 assert.rejects( 293 assert.rejects( 302 assert.rejects( 328 return assert.rejects( 346 return assert.rejects( 364 return assert.rejects( 382 return assert.rejects( [all …]
|
D | test-child-process-exec-abortcontroller-promisified.js | 21 assert.rejects(promise, { 33 assert.rejects(promise, { 44 assert.rejects(promise, { 68 assert.rejects(promise, { name: 'AbortError' }) 77 assert.rejects(promise, { name: 'AbortError', cause: err }) 85 assert.rejects(promise, { name: 'AbortError', cause: 'boom' })
|
D | test-whatwg-readablestream.js | 356 assert.rejects(reader.read(), { 360 assert.rejects(closedBefore, { 369 assert.rejects(iterable.next(), { 378 assert.rejects(iterable.return(), { 392 assert.rejects(stream.cancel(), { 484 assert.rejects(closedAfter, { 506 assert.rejects(closedAfter, { 582 assert.rejects(reader.closed, error); 583 assert.rejects(reader.read(), error); 584 assert.rejects(reader.read(), error); [all …]
|
/third_party/node/test/es-module/ |
D | test-esm-import-assertion-errors.js | 3 const { rejects } = require('assert'); 16 await rejects( 21 await rejects( 26 await rejects( 31 await rejects( 36 await rejects( 41 await rejects( 46 await rejects( 51 await rejects(
|
D | test-esm-import-assertion-errors.mjs | 2 import { rejects } from 'assert'; 15 await rejects( 16 // This rejects because of the unsupported MIME type, not because of the 22 await rejects( 27 await rejects( 32 await rejects( 37 await rejects( 42 await rejects( 47 await rejects( 52 await rejects(
|
D | test-esm-undefined-cjs-global-like-variables.js | 7 assert.rejects( 11 assert.rejects( 16 assert.rejects( 22 assert.rejects( 26 assert.rejects( 30 assert.rejects( 34 assert.rejects( 39 assert.rejects(
|
D | test-esm-cjs-named-error.mjs | 2 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 () => {
|
D | test-esm-loader.mjs | 6 await assert.rejects( 11 await assert.rejects( 16 await assert.rejects( 22 await assert.rejects( 26 await assert.rejects( 31 await assert.rejects( 36 await assert.rejects( 41 await assert.rejects(
|
/third_party/skia/tests/ |
D | SkGlyphBufferTest.cpp | 99 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 …]
|
/third_party/node/deps/npm/test/lib/commands/ |
D | access.js | 34 await t.rejects( 42 await t.rejects(npm.exec('access', []), { code: 'EUSAGE' }) 47 await t.rejects( 53 await t.rejects(npm.exec('access', ['get']), { code: 'EUSAGE' }) 58 await t.rejects(npm.exec('access', ['list', 'blerg']), { code: 'EUSAGE' }) 64 await t.rejects(npm.exec('access', ['grant', 'other']), { code: 'EUSAGE' }) 69 await t.rejects(npm.exec('access', ['grant', 'read-only']), { code: 'EUSAGE' }) 121 await t.rejects(npm.exec('access', ['list', 'other'], { code: 'EUSAGE' })) 200 await t.rejects(npm.exec('access', ['get', 'other'], { code: 'EUSAGE' })) 229 await t.rejects( [all …]
|