Lines Matching refs:then
138 Promise.accept(5).then(undefined, assertUnreachable).chain(
139 function(x) { assertAsync(x === 5, "resolved/then-nohandler-undefined") },
143 Promise.accept(6).then(null, assertUnreachable).chain(
144 function(x) { assertAsync(x === 6, "resolved/then-nohandler-null") },
151 Promise.reject(5).then(assertUnreachable, undefined).chain(
153 function(r) { assertAsync(r === 5, "rejected/then-nohandler-undefined") }
156 Promise.reject(6).then(assertUnreachable, null).chain(
158 function(r) { assertAsync(r === 6, "rejected/then-nohandler-null") }
178 p3.then(
179 function(x) { assertAsync(x === 5, "resolved/then") },
200 p3.then(
202 function(x) { assertAsync(x === 5, "rejected/then") }
222 p3.chain(function(x) { return x }, assertUnreachable).then(
223 function(x) { assertAsync(x === 5, "resolved/chain/then") },
244 p3.chain(function(x) { return 6 }, assertUnreachable).then(
255 p3.then(function(x) { return x + 1 }, assertUnreachable).chain(
256 function(x) { assertAsync(x === 6, "resolved/then/chain") },
266 p3.then(function(x) { return x + 1 }, assertUnreachable).then(
267 function(x) { assertAsync(x === 6, "resolved/then/then") },
277 p3.then(function(x){ return Promise.accept(x+1) }, assertUnreachable).chain(
278 function(x) { assertAsync(x === 6, "resolved/then/chain2") },
288 p3.then(function(x) { return Promise.accept(x+1) }, assertUnreachable).then(
289 function(x) { assertAsync(x === 6, "resolved/then/then2") },
310 p3.chain(function(x) { throw 6 }, assertUnreachable).then(
312 function(x) { assertAsync(x === 6, "resolved/chain-throw/then") }
321 p3.then(function(x) { throw 6 }, assertUnreachable).chain(
323 function(x) { assertAsync(x === 6, "resolved/then-throw/chain") }
332 p3.then(function(x) { throw 6 }, assertUnreachable).then(
334 function(x) { assertAsync(x === 6, "resolved/then-throw/then") }
341 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
352 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
354 p3.then(
355 function(x) { assertAsync(x === 5, "resolved/thenable/then") },
363 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
374 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
376 p3.then(
378 function(x) { assertAsync(x === 5, "rejected/thenable/then") }
401 p3.then(
402 function(x) { assertAsync(x === 5, "then/resolve") },
427 p3.then(
429 function(x) { assertAsync(x === 5, "then/reject") }
438 var p2 = p1.then(1, 2)
439 p2.then(
440 function(x) { assertAsync(x === 5, "then/resolve-non-function") },
450 var p2 = p1.then(1, 2)
451 p2.then(
453 function(x) { assertAsync(x === 5, "then/reject-non-function") }
462 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
475 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
477 p3.then(
478 function(x) { assertAsync(x === 5, "then/resolve/thenable") },
488 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
501 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
503 p3.then(
505 function(x) { assertAsync(x === 5, "then/reject/thenable") }
529 p3.then(
530 function(x) { assertAsync(x === 5, "then/resolve2") },
555 p3.then(
557 function(x) { assertAsync(x === 5, "then/reject2") }
565 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
578 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
581 p3.then(
582 function(x) { assertAsync(x === 5, "then/resolve/thenable2") },
601 var p2 = p1.then(function(x) { return p2 }, assertUnreachable)
604 function(r) { assertAsync(r instanceof TypeError, "cyclic/then") }
624 p.then(
626 function(r) { assertAsync(r instanceof TypeError, "cyclic/deferred/then") }