/third_party/typescript/tests/baselines/reference/ |
H A D | promiseType.js | 87 const p01 = p.then(); 100 const p20 = p.then(undefined); 101 const p21 = p.then(null); 102 const p22 = p.then(() => 1); 103 const p23 = p.then(() => x); 104 const p24 = p.then(() => undefined); 105 const p25 = p.then(() => null); 106 const p26 = p.then(() => {}); 107 const p27 = p.then(() => {throw 1}); 108 const p28 = p.then(() [all...] |
H A D | promiseTypeStrictNull.js | 87 const p01 = p.then(); 100 const p20 = p.then(undefined); 101 const p21 = p.then(null); 102 const p22 = p.then(() => 1); 103 const p23 = p.then(() => x); 104 const p24 = p.then(() => undefined); 105 const p25 = p.then(() => null); 106 const p26 = p.then(() => {}); 107 const p27 = p.then(() => {throw 1}); 108 const p28 = p.then(() [all...] |
H A D | promisePermutations.js | 3 then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; 4 then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; 5 then<U>(success?: (value: T) => U, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; 6 then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; 11 then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; 12 then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; 13 then<U>(success?: (value: T) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; 14 then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; 50 var r1a = r1.then(testFunction, testFunction, testFunction); 51 var r1b = r1.then(testFunctio [all...] |
H A D | promisePermutations2.js | 5 then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; 10 then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; 11 then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; 12 then<U>(success?: (value: T) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; 13 then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; 49 var r1a = r1.then(testFunction, testFunction, testFunction); 50 var r1b = r1.then(testFunction, testFunction, testFunction).then(testFunction, testFunction, testFunction); 51 var r1c = r1.then(testFunctionP, testFunctionP, testFunctionP); 53 var s1a = s1.then(testFunctio [all...] |
H A D | promisePermutations3.js | 5 then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; 6 then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; 7 then<U>(success?: (value: T) => U, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; 8 then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; 13 then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; 49 var r1a = r1.then(testFunction, testFunction, testFunction); 50 var r1b = r1.then(testFunction, testFunction, testFunction).then(testFunction, testFunction, testFunction); 51 var r1c = r1.then(testFunctionP, testFunctionP, testFunctionP); 53 var s1a = s1.then(testFunctio [all...] |
H A D | chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js | 4 then<S extends T>(cb: (x: T) => S): Chain<S> { 8 (new Chain(t)).then(tt => s).then(ss => t); 11 (new Chain(s)).then(ss => t); 14 (new Chain(t)).then(tt => t).then(tt => t).then(tt => t); 15 (new Chain(s)).then(ss => s).then(ss => s).then(s [all...] |
H A D | genericCallToOverloadedMethodWithOverloadedArguments.js | 4 then<U>(cb: (x: T) => Promise<U>): Promise<U>; 10 var newPromise = numPromise.then(testFunction); 17 then<U>(cb: (x: T) => Promise<U>): Promise<U>; 24 var newPromise = numPromise.then(testFunction); 31 then<U>(cb: (x: T) => Promise<U>): Promise<U>; 32 then<U>(cb: (x: T) => Promise<U>, error?: (error: any) => Promise<U>): Promise<U>; 38 var newPromise = numPromise.then(testFunction); 45 then<U>(cb: (x: T) => Promise<U>): Promise<U>; 46 then<U>(cb: (x: T) => Promise<U>, error?: (error: any) => Promise<U>): Promise<U>; 53 var newPromise = numPromise.then(testFunctio [all...] |
/third_party/node/test/parallel/ |
H A D | test-debugger-run-after-quit-restart.js | 24 .then(() => cli.waitForPrompt()) 25 .then(() => cli.stepCommand('n')) 26 .then(() => { 32 .then(() => cli.command('cont')) 33 .then(() => cli.waitFor(/disconnect/)) 34 .then(() => { 40 .then(() => { 44 .then(() => cli.command('cont')) 45 .then(() => cli.waitFor(/start the app/)) 46 .then(() [all...] |
H A D | test-debugger-clear-breakpoints.js | 24 .then(() => cli.waitForPrompt()) 25 .then(() => cli.command('sb("break.js", 3)')) 26 .then(() => cli.command('sb("break.js", 9)')) 27 .then(() => cli.command('breakpoints')) 28 .then(() => { 32 .then(() => cli.command('clearBreakpoint("break.js", 4)')) 33 .then(() => { 36 .then(() => cli.command('clearBreakpoint("not-such-script.js", 3)')) 37 .then(() => { 40 .then(() [all...] |
H A D | test-promises-unhandled-rejections.js | 168 promise.then(assert.fail, function() {}); 180 const promise2 = Promise.reject(e).then(assert.fail, function(reason) { 209 }).then(assert.fail, function(reason) { 228 promise2 = promise.then(assert.fail, function(reason) { 244 Promise.reject(e).then(assert.fail, function() {}); 256 }).then(assert.fail, function() {}); 266 promise.then(assert.fail, function() {}); 278 promise.then(assert.fail, function() {}); 291 .then(function() { 303 Promise.resolve().then(functio [all...] |
H A D | test-webstreams-abort-controller.js | 38 assert.rejects(reader.read(), /AbortError/).then(common.mustCall()); 39 assert.rejects(reader.closed, /AbortError/).then(common.mustCall()); 42 reader.read().then(common.mustCall((result) => { 61 })(), /AbortError/).then(common.mustCall()); 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(commo [all...] |
/third_party/rust/crates/bindgen/bindgen/codegen/ |
H A D | bitfield_unit_tests.rs | 80 With $storage:expr , then get($start:expr, $len:expr) is $expected:expr; 104 With [0b11100010], then get(0, 1) is 0; 105 With [0b11100010], then get(1, 1) is 1; 106 With [0b11100010], then get(2, 1) is 0; 107 With [0b11100010], then get(3, 1) is 0; 108 With [0b11100010], then get(4, 1) is 0; 109 With [0b11100010], then get(5, 1) is 1; 110 With [0b11100010], then get(6, 1) is 1; 111 With [0b11100010], then get(7, 1) is 1; 113 With [0b11100010], then ge [all...] |
/third_party/node/test/node-api/test_threadsafe_function/ |
H A D | test.js | 77 .then((result) => assert.strictEqual(result.indexOf(0), -1)); 99 .then(() => testWithJSMarshaller({ 104 .then((result) => assert.deepStrictEqual(result, expectedArray)) 110 .then(() => testWithJSMarshaller({ 115 .then((result) => assert.deepStrictEqual(result, expectedArray)) 119 .then(() => testWithJSMarshaller({ 124 .then((result) => assert.deepStrictEqual(result, expectedArray)) 128 .then(() => testWithJSMarshaller({ 133 .then((result) => assert.deepStrictEqual(result, expectedArray)) 137 .then(() [all...] |
/third_party/node/deps/npm/node_modules/promise-retry/test/ |
H A D | test.js | 15 .then(function () { 23 .then(function (value) { 39 .then(function () { 47 .then(function (value) { 62 .then(function () { 66 .then(function (value) { 81 .then(function () { 85 .then(function () { 100 .then(function () { 105 .then(functio [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
H A D | dag_test.cpp | 46 .then([&] { data.push("A"); }) in TEST_P() 47 .then([&] { data.push("B"); }) in TEST_P() 48 .then([&] { data.push("C"); }); in TEST_P() 61 .then([](Data& data) { data.push("A"); }) in TEST_P() 62 .then([](Data& data) { data.push("B"); }) in TEST_P() 63 .then([](Data& data) { data.push("C"); }); in TEST_P() 78 .then([](Data& data) { data.push("A"); }) in TEST_P() 79 .then([](Data& data) { data.push("B"); }) in TEST_P() 80 .then([](Data& data) { data.push("C"); }); in TEST_P() 100 root.then([](Dat in TEST_P() [all...] |
/third_party/node/test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/ |
H A D | ecdh_keys.js | 31 .then(function(results) { 41 .then(function(key) {return crypto.subtle.exportKey("raw", key);}) 42 .then(function(exportedKey) { 52 .then(function(key) {return crypto.subtle.exportKey("raw", key);}) 53 .then(function(exportedKey) { 64 .then(function(key) {return crypto.subtle.exportKey("raw", key);}) 65 .then(function(exportedKey) { 75 .then(function(key) {return crypto.subtle.exportKey("raw", key);}) 76 .then(function(exportedKey) { 90 .then(functio [all...] |
H A D | cfrg_curves_keys.js | 52 .then(function(results) { 61 .then(function(key) {return crypto.subtle.exportKey("raw", key);}) 62 .then(function(exportedKey) { 72 .then(function(key) {return crypto.subtle.exportKey("raw", key);}) 73 .then(function(exportedKey) { 84 .then(function(key) {return crypto.subtle.exportKey("raw", key);}) 85 .then(function(exportedKey) { 95 .then(function(key) {return crypto.subtle.exportKey("raw", key);}) 96 .then(function(exportedKey) { 110 .then(functio [all...] |
H A D | hkdf.js | 18 .then(function(allKeys) { 41 .then(function(derivation) { 51 .then(function(derivation) { 70 .then(function(key) { 73 .then(function(buffer) { 91 .then(function(key) { 101 .then(function(key) { 111 .then(function(key) { 125 .then(function(derivation) { 135 .then(functio [all...] |
/third_party/node/test/fixtures/wpt/WebCryptoAPI/sign_verify/ |
H A D | ecdsa.js | 18 .then(function(vectors) { 22 .then(function(is_verified) { 45 .then(function(vectors) { 50 .then(function(is_verified) { 71 .then(function(vectors) { 76 .then(function(is_verified) { 97 .then(function(vectors) { 101 .then(function(plaintext) { 120 .then(function(vectors) { 124 .then(functio [all...] |
H A D | hmac.js | 17 .then(function(vector) { 20 .then(function(is_verified) { 43 .then(function(vector) { 47 .then(function(is_verified) { 68 .then(function(vector) { 72 .then(function(is_verified) { 95 .then(function(vector) { 98 .then(function(plaintext) { 116 .then(function(vectors) { 119 .then(functio [all...] |
H A D | rsa.js | 17 .then(function(vectors) { 20 .then(function(is_verified) { 43 .then(function(vectors) { 47 .then(function(is_verified) { 68 .then(function(vectors) { 72 .then(function(is_verified) { 93 .then(function(vectors) { 96 .then(function(plaintext) { 115 .then(function(vectors) { 118 .then(functio [all...] |
H A D | eddsa.js | 17 .then(function(vectors) { 21 .then(function(is_verified) { 44 .then(function(vectors) { 49 .then(function(is_verified) { 70 .then(function(vectors) { 75 .then(function(is_verified) { 96 .then(function(vectors) { 100 .then(function(data) { 119 .then(function(vectors) { 123 .then(functio [all...] |
/third_party/node/deps/npm/node_modules/ignore-walk/lib/ |
H A D | index.js | 88 const then = _ => { 94 newIg.forEach(e => this.addIgnoreFile(e, then)) 97 addIgnoreFile (file, then) { 100 er ? this.emit('error', er) : this.onReadIgnoreFile(file, data, then)) 103 onReadIgnoreFile (file, data, then) { 118 then() 138 // if it's a dir, and passes as a dir, then recurse 144 const then = _ => { 153 this.stat({ entry, file, dir }, then) 158 onstat ({ st, entry, file, dir, isSymbolicLink }, then) { [all...] |
/third_party/node/test/fixtures/wpt/WebCryptoAPI/encrypt_decrypt/ |
H A D | aes.js | 18 .then(function(vector) { 21 .then(function(result) { 42 .then(function(vector) { 45 .then(function(result) { 67 .then(function(vector) { 70 .then(function(result) { 91 .then(function(vector) { 94 .then(function(result) { 120 .then(function(vector) { 123 .then(functio [all...] |
/third_party/node/test/fixtures/wpt/WebCryptoAPI/wrapKey_unwrapKey/ |
H A D | wrapKey_unwrapKey.https.any.js | 12 // Generate all the keys needed, then iterate over all combinations 16 .then(function(results) { 64 .then(function(key) { 106 .then(function(result) { 118 // Can we successfully "round-trip" (wrap, then unwrap, a key)? 132 return subtle.exportKey(fmt, toWrap.key).then(function(exportedKey) { 137 return Promise.resolve().then(() => { 142 .then(function(wrappedResult) { 144 }).then(function(unwrappedResult) { 147 }).then(functio [all...] |