Home
last modified time | relevance | path

Searched refs:throws (Results 1 - 25 of 331) sorted by relevance

12345678910>>...14

/third_party/node/test/parallel/
H A Dtest-assert.js45 assert.throws(() => a(false), a.AssertionError, 'ok(false)');
46 assert.throws(() => a.ok(false), a.AssertionError, 'ok(false)');
66 assert.throws(() => a.equal(true, false),
76 assert.throws(() => a.notEqual(true, true),
79 assert.throws(() => a.strictEqual(2, '2'),
83 assert.throws(() => a.strictEqual(null, undefined),
86 assert.throws(
94 assert.throws(
103 assert.throws(
119 assert.throws(()
[all...]
H A Dtest-timers-throw-when-cb-not-function.js16 assert.throws(doSetTimeout('foo'), errMessage);
17 assert.throws(doSetTimeout({ foo: 'bar' }), errMessage);
18 assert.throws(doSetTimeout(), errMessage);
19 assert.throws(doSetTimeout(undefined, 0), errMessage);
20 assert.throws(doSetTimeout(null, 0), errMessage);
21 assert.throws(doSetTimeout(false, 0), errMessage);
30 assert.throws(doSetInterval('foo'), errMessage);
31 assert.throws(doSetInterval({ foo: 'bar' }), errMessage);
32 assert.throws(doSetInterval(), errMessage);
33 assert.throws(doSetInterva
[all...]
H A Dtest-crypto-keygen.js20 assert.throws(() => generateKeyPairSync('ec', {
44 assert.throws(() => generateKeyPairSync(type, {}), {
52 assert.throws(() => generateKeyPairSync('rsa2', {}), {
61 assert.throws(() => generateKeyPair('rsa', common.mustNotCall()), {
70 assert.throws(() => generateKeyPair('ed448', 0, common.mustNotCall()), {
81 assert.throws(() => generateKeyPairSync('rsa', {
98 assert.throws(() => generateKeyPairSync('rsa', {
118 assert.throws(() => generateKeyPairSync('rsa', {
138 assert.throws(() => generateKeyPairSync('rsa', {
155 assert.throws(()
[all...]
H A Dtest-child-process-spawn-typeerror.js42 assert.throws(function() {
53 assert.throws(function() {
57 assert.throws(function() {
61 assert.throws(function() {
66 assert.throws(function() {
70 assert.throws(function() {
74 assert.throws(function() {
78 assert.throws(function() {
82 assert.throws(function() {
109 assert.throws(()
[all...]
H A Dtest-fs-assert-encoding-error.js15 assert.throws(() => {
19 assert.throws(() => {
23 assert.throws(() => {
27 assert.throws(() => {
31 assert.throws(() => {
35 assert.throws(() => {
39 assert.throws(() => {
43 assert.throws(() => {
47 assert.throws(() => {
51 assert.throws(()
[all...]
H A Dtest-whatwg-url-custom-searchparams-constructor.js44 assert.throws(() => new URLSearchParams([[1]]), tupleError);
45 assert.throws(() => new URLSearchParams([[1, 2, 3]]), tupleError);
46 assert.throws(() => new URLSearchParams({ [Symbol('test')]: 42 }),
48 assert.throws(() => new URLSearchParams({ [Symbol.iterator]: 42 }),
50 assert.throws(() => new URLSearchParams([{}]), tupleError);
51 assert.throws(() => new URLSearchParams(['a']), tupleError);
52 assert.throws(() => new URLSearchParams([null]), tupleError);
53 assert.throws(() => new URLSearchParams([{ [Symbol.iterator]: 42 }]),
56 assert.throws(() => new URLSearchParams(
70 assert.throws(()
[all...]
H A Dtest-http2-socket-proxy.js55 assert.throws(() => socket.destroy, errMsg);
56 assert.throws(() => socket.emit, errMsg);
57 assert.throws(() => socket.end, errMsg);
58 assert.throws(() => socket.pause, errMsg);
59 assert.throws(() => socket.read, errMsg);
60 assert.throws(() => socket.resume, errMsg);
61 assert.throws(() => socket.write, errMsg);
62 assert.throws(() => socket.setEncoding, errMsg);
63 assert.throws(() => socket.setKeepAlive, errMsg);
64 assert.throws(()
[all...]
H A Dtest-buffer-fakes.js12 assert.throws(function() {
16 assert.throws(function() {
20 assert.throws(function() {
24 assert.throws(function() {
28 assert.throws(function() {
32 assert.throws(function() {
36 assert.throws(function() {
40 assert.throws(function() {
44 assert.throws(function() {
48 assert.throws(functio
[all...]
H A Dtest-crypto-dh-errors.js12 assert.throws(() => crypto.createDiffieHellman(13.37), {
19 assert.throws(() => crypto.createDiffieHellman('abcdef', 13.37), {
28 assert.throws(() => crypto.createDiffieHellman(bits), {
34 assert.throws(() => crypto.createDiffieHellman(bits), {
48 assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex);
49 assert.throws(() => crypto.createDiffieHellman('abcdef', 'hex', g), ex);
60 assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex);
61 assert.throws(() => crypto.createDiffieHellman('abcdef', 'hex', g), ex);
70 assert.throws(
80 assert.throws(
[all...]
H A Dtest-dgram-send-bad-arguments.js33 assert.throws(
45 assert.throws(
54 assert.throws(
63 assert.throws(
72 assert.throws(
94 assert.throws(
103 assert.throws(
112 assert.throws(
122 assert.throws(() => { sock.send(buf, 1, 1, -1, host); }, RangeError);
123 assert.throws(()
[all...]
H A Dtest-vm-options-validation.js17 assert.throws(() => {
22 assert.throws(() => {
26 assert.throws(() => {
32 assert.throws(() => {
36 assert.throws(() => {
41 assert.throws(() => {
45 assert.throws(() => {
49 assert.throws(() => {
53 assert.throws(() => {
58 assert.throws(()
[all...]
H A Dtest-validators.js37 assert.throws(() => {
40 assert.throws(() => {
51 ].forEach((val) => assert.throws(() => validateInt32(val, 'name'), {
56 ].forEach((val) => assert.throws(() => validateInt32(val, 'name'), {
64 ].forEach((val) => assert.throws(() => validateUint32(val, 'name'), {
69 ].forEach((val) => assert.throws(() => validateUint32(val, 'name'), {
84 assert.throws(() => {
90 assert.throws(() => {
101 assert.throws(() => {
118 assert.throws(()
[all...]
H A Dtest-crypto-pbkdf2.js58 assert.throws(
67 assert.throws(
77 assert.throws(
89 assert.throws(
102 assert.throws(
116 assert.throws(
125 assert.throws(
134 assert.throws(
143 assert.throws(
151 assert.throws(
[all...]
H A Dtest-dns-lookup.js22 assert.throws(() => dns.lookup(1, {}), err);
23 assert.throws(() => dnsPromises.lookup(1, {}), err);
39 assert.throws(() => {
46 assert.throws(() => {
65 assert.throws(() => { dnsPromises.lookup(false, options); }, err);
66 assert.throws(() => {
84 assert.throws(() => { dnsPromises.lookup(false, options); }, err);
85 assert.throws(() => {
94 assert.throws(() => { dnsPromises.lookup(false, options); }, err);
95 assert.throws(()
[all...]
H A Dtest-buffer-compare-offset.js13 assert.throws(() => a.compare(b, '0'), { code: 'ERR_INVALID_ARG_TYPE' });
21 assert.throws(
52 assert.throws(
58 assert.throws(
64 assert.throws(
72 assert.throws(
76 assert.throws(
83 assert.throws(() => a.compare(b, 0, 100, 0), oor);
84 assert.throws(() => a.compare(b, 0, 1, 0, 100), oor);
85 assert.throws(()
[all...]
H A Dtest-vm-basic.js93 assert.throws(() => vm.runInContext(script, context, filename), checkErr);
94 assert.throws(() => vm.runInNewContext(script, context, filename), checkErr);
95 assert.throws(() => vm.runInThisContext(script, filename), checkErr);
100 assert.throws(() => {
111 assert.throws(() => {
122 assert.throws(() => {
149 assert.throws(() => {
159 assert.throws(() => vm.compileFunction(), {
168 assert.throws(() => vm.compileFunction('', null), {
188 assert.throws(()
[all...]
H A Dtest-crypto-authenticated.js135 assert.throws(() => {
157 // Assert that final throws if input data could not be verified!
158 assert.throws(function() { decrypt.final('hex'); }, errMessages.auth);
165 assert.throws(() => { crypto.createCipher(test.algo, test.password); },
184 assert.throws(() => { crypto.createDecipher(test.algo, test.password); },
196 // Assert that final throws if input data could not be verified!
197 assert.throws(function() { decrypt.final('ascii'); }, errMessages.auth);
209 assert.throws(function() { encrypt.getAuthTag(); }, errMessages.state);
214 assert.throws(function() {
232 assert.throws(()
[all...]
H A Dtest-worker-unsupported-path.js14 assert.throws(() => { new Worker(existingRelPathNoDot); }, expectedErr);
15 assert.throws(() => { new Worker('relative_no_dot'); }, expectedErr);
16 assert.throws(() => { new Worker('file:///file_url'); }, expectedErr);
17 assert.throws(() => { new Worker('https://www.url.com'); }, expectedErr);
21 assert.throws(
25 assert.throws(
29 assert.throws(
41 assert.throws(() => { new Worker(new URL('https://www.url.com')); },
H A Dtest-dns.js81 assert.throws(
99 assert.throws(() => dns.setServers(['foobar']), {
104 assert.throws(() => dns.setServers(['127.0.0.1:va']), {
149 assert.throws(() => {
152 assert.throws(() => {
163 assert.throws(() => {
176 assert.throws(() => dns.lookup({}, common.mustNotCall()), errorReg);
178 assert.throws(() => dns.lookup([], common.mustNotCall()), errorReg);
180 assert.throws(() => dns.lookup(true, common.mustNotCall()), errorReg);
182 assert.throws(()
[all...]
H A Dtest-internal-util-objects.js33 assert.throws(
37 assert.throws(
41 assert.throws(
45 assert.throws(
49 assert.throws(
53 assert.throws(
57 assert.throws(
105 assert.throws(
109 assert.throws(
113 assert.throws(
[all...]
H A Dtest-crypto.js44 assert.throws(() => {
64 assert.throws(() => {
74 assert.throws(() => {
84 assert.throws(() => {
96 assert.throws(
190 assert.throws(
199 assert.throws(() => { throw error; }, encodingError);
205 assert.throws(
209 assert.throws(() => { throw error; }, encodingError);
214 assert.throws(
[all...]
H A Dtest-assert-deep.js17 // for assert.throws()
49 assert.throws(
64 assert.throws(
84 assert.throws(
113 assert.throws(
122 assert.throws(
143 assert.throws(
174 assert.throws(
192 assert.throws(
196 assert.throws(
[all...]
H A Dtest-buffer-writeint.js27 assert.throws(() => {
30 assert.throws(() => {
39 assert.throws(
45 assert.throws(
82 assert.throws(() => {
85 assert.throws(() => {
90 assert.throws(
96 assert.throws(
144 assert.throws(() => {
147 assert.throws(()
[all...]
H A Dtest-webcrypto-webidl.js21 assert.throws(() => webidl.requiredArguments(0, 3, { prefix }), {
27 assert.throws(() => webidl.requiredArguments(0, 1, { prefix }), {
77 assert.throws(() => converter(max + 1, { ...opts, enforceRange: true }), {
94 assert.throws(() => converter(Symbol(), opts), {
99 assert.throws(() => converter(0n, opts), {
120 assert.throws(() => converters.DOMString(Symbol(), opts), {
134 assert.throws(() => converters.object(bad, opts), {
149 assert.throws(() => converters.Uint8Array(bad, opts), {
156 assert.throws(() => converters.Uint8Array(new Uint8Array(new SharedArrayBuffer()), opts), {
185 assert.throws(()
[all...]
H A Dtest-crypto-cipheriv-decipheriv.js90 assert.throws(
99 assert.throws(
106 assert.throws(
123 assert.throws(
132 assert.throws(
139 assert.throws(
166 assert.throws(
178 assert.throws(
185 assert.throws(() => {
190 assert.throws(
[all...]

Completed in 6 milliseconds

12345678910>>...14