Lines Matching refs:then

86   Promise.resolved(5).then(undefined, assertUnreachable).chain(
87 function(x) { assertAsync(x === 5, "resolved/then-nohandler") },
94 Promise.rejected(5).then(assertUnreachable, undefined).chain(
96 function(r) { assertAsync(r === 5, "rejected/then-nohandler") }
116 p3.then(
117 function(x) { assertAsync(x === 5, "resolved/then") },
138 p3.then(
140 function(x) { assertAsync(x === 5, "rejected/then") }
160 p3.chain(function(x) { return x }, assertUnreachable).then(
161 function(x) { assertAsync(x === 5, "resolved/chain/then") },
182 p3.chain(function(x) { return 6 }, assertUnreachable).then(
193 p3.then(function(x) { return x + 1 }, assertUnreachable).chain(
194 function(x) { assertAsync(x === 6, "resolved/then/chain") },
204 p3.then(function(x) { return x + 1 }, assertUnreachable).then(
205 function(x) { assertAsync(x === 6, "resolved/then/then") },
215 p3.then(function(x){ return Promise.resolved(x+1) }, assertUnreachable).chain(
216 function(x) { assertAsync(x === 6, "resolved/then/chain2") },
226 p3.then(function(x) { return Promise.resolved(x+1) }, assertUnreachable).then(
227 function(x) { assertAsync(x === 6, "resolved/then/then2") },
248 p3.chain(function(x) { throw 6 }, assertUnreachable).then(
250 function(x) { assertAsync(x === 6, "resolved/chain-throw/then") }
259 p3.then(function(x) { throw 6 }, assertUnreachable).chain(
261 function(x) { assertAsync(x === 6, "resolved/then-throw/chain") }
270 p3.then(function(x) { throw 6 }, assertUnreachable).then(
272 function(x) { assertAsync(x === 6, "resolved/then-throw/then") }
279 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
290 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
292 p3.then(
293 function(x) { assertAsync(x === 5, "resolved/thenable/then") },
301 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
312 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
314 p3.then(
316 function(x) { assertAsync(x === 5, "rejected/thenable/then") }
339 p3.then(
340 function(x) { assertAsync(x === 5, "then/resolve") },
365 p3.then(
367 function(x) { assertAsync(x === 5, "then/reject") }
376 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
389 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
391 p3.then(
392 function(x) { assertAsync(x === 5, "then/resolve/thenable") },
402 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
415 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
417 p3.then(
419 function(x) { assertAsync(x === 5, "then/reject/thenable") }
443 p3.then(
444 function(x) { assertAsync(x === 5, "then/resolve2") },
469 p3.then(
471 function(x) { assertAsync(x === 5, "then/reject2") }
479 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
492 var p2 = {then: function(onResolve, onReject) { onResolve(p1) }}
495 p3.then(
496 function(x) { assertAsync(x === 5, "then/resolve/thenable2") },
515 var p2 = p1.then(function(x) { return p2 }, assertUnreachable)
518 function(r) { assertAsync(r instanceof TypeError, "cyclic/then") }
538 p.then(
540 function(r) { assertAsync(r instanceof TypeError, "cyclic/deferred/then") }