Lines Matching refs:Promise
41 Object.prototype.toString.call(new Promise(function() {})));
68 Promise: true, property
128 assertThrows(function() { Promise(function() {}) }, TypeError)
132 assertTrue(new Promise(function() {}) instanceof Promise)
136 assertThrows(function() { new Promise(5) }, TypeError)
140 assertDoesNotThrow(function() { new Promise(function() { throw 5 }) })
144 (new Promise(function() { throw 5 })).chain(
152 Promise.accept(5);
153 Promise.accept(5).chain(undefined, assertUnreachable).chain(
161 Promise.reject(5).chain(assertUnreachable, undefined).chain(
169 Promise.accept(5).then(undefined, assertUnreachable).chain(
174 Promise.accept(6).then(null, assertUnreachable).chain(
182 Promise.reject(5).then(assertUnreachable, undefined).chain(
187 Promise.reject(6).then(assertUnreachable, null).chain(
195 var p1 = Promise.accept(5)
196 var p2 = Promise.accept(p1)
197 var p3 = Promise.accept(p2)
207 var p1 = Promise.accept(5)
208 var p2 = Promise.accept(p1)
209 var p3 = Promise.accept(p2)
218 var p1 = Promise.reject(5)
219 var p2 = Promise.accept(p1)
220 var p3 = Promise.accept(p2)
229 var p1 = Promise.reject(5)
230 var p2 = Promise.accept(p1)
231 var p3 = Promise.accept(p2)
240 var p1 = Promise.accept(5)
241 var p2 = Promise.accept(p1)
242 var p3 = Promise.accept(p2)
251 var p1 = Promise.accept(5)
252 var p2 = Promise.accept(p1)
253 var p3 = Promise.accept(p2)
262 var p1 = Promise.accept(5)
263 var p2 = Promise.accept(p1)
264 var p3 = Promise.accept(p2)
273 var p1 = Promise.accept(5)
274 var p2 = Promise.accept(p1)
275 var p3 = Promise.accept(p2)
284 var p1 = Promise.accept(5)
285 var p2 = Promise.accept(p1)
286 var p3 = Promise.accept(p2)
295 var p1 = Promise.accept(5)
296 var p2 = Promise.accept(p1)
297 var p3 = Promise.accept(p2)
306 var p1 = Promise.accept(5)
307 var p2 = Promise.accept(p1)
308 var p3 = Promise.accept(p2)
309 p3.then(function(x){ return Promise.accept(x+1) }, assertUnreachable).chain(
317 var p1 = Promise.accept(5)
318 var p2 = Promise.accept(p1)
319 var p3 = Promise.accept(p2)
320 p3.then(function(x) { return Promise.accept(x+1) }, assertUnreachable).then(
328 var p1 = Promise.accept(5)
329 var p2 = Promise.accept(p1)
330 var p3 = Promise.accept(p2)
339 var p1 = Promise.accept(5)
340 var p2 = Promise.accept(p1)
341 var p3 = Promise.accept(p2)
350 var p1 = Promise.accept(5)
351 var p2 = Promise.accept(p1)
352 var p3 = Promise.accept(p2)
361 var p1 = Promise.accept(5)
362 var p2 = Promise.accept(p1)
363 var p3 = Promise.accept(p2)
372 var p1 = Promise.accept(5)
374 var p3 = Promise.accept(p2)
383 var p1 = Promise.accept(5)
385 var p3 = Promise.accept(p2)
394 var p1 = Promise.reject(5)
396 var p3 = Promise.accept(p2)
405 var p1 = Promise.reject(5)
407 var p3 = Promise.accept(p2)
416 var deferred = Promise.defer()
418 var p2 = Promise.accept(p1)
419 var p3 = Promise.accept(p2)
429 var deferred = Promise.defer()
431 var p2 = Promise.resolve(p1)
432 var p3 = Promise.resolve(p2)
442 var deferred = Promise.defer()
444 var p2 = Promise.accept(p1)
445 var p3 = Promise.accept(p2)
455 var deferred = Promise.defer()
457 var p2 = Promise.accept(p1)
458 var p3 = Promise.accept(p2)
468 var deferred = Promise.defer()
480 var deferred = Promise.defer()
492 var deferred = Promise.defer()
495 var p3 = Promise.accept(p2)
505 var deferred = Promise.defer()
508 var p3 = Promise.accept(p2)
518 var deferred = Promise.defer()
521 var p3 = Promise.accept(p2)
531 var deferred = Promise.defer()
534 var p3 = Promise.accept(p2)
544 var p1 = Promise.accept(5)
545 var p2 = Promise.accept(p1)
546 var deferred = Promise.defer()
557 var p1 = Promise.accept(5)
558 var p2 = Promise.accept(p1)
559 var deferred = Promise.defer()
570 var p1 = Promise.accept(5)
571 var p2 = Promise.accept(p1)
572 var deferred = Promise.defer()
583 var p1 = Promise.accept(5)
584 var p2 = Promise.accept(p1)
585 var deferred = Promise.defer()
596 var p1 = Promise.accept(5)
598 var deferred = Promise.defer()
609 var p1 = Promise.accept(5)
611 var deferred = Promise.defer()
622 var p1 = Promise.accept(0)
632 var p1 = Promise.accept(0)
642 var deferred = Promise.defer()
653 var deferred = Promise.defer()
664 Promise.all([]).chain(
673 Promise.all(value).chain(
687 var deferred = Promise.defer();
694 Promise.all(f()).chain(
711 var deferred1 = Promise.defer()
713 var deferred2 = Promise.defer()
715 var deferred3 = Promise.defer()
717 Promise.all([p1, p2, p3]).chain(
736 var deferred = Promise.defer()
738 var p2 = Promise.accept(2)
739 var p3 = Promise.defer().promise
740 Promise.all([p1, p2, p3]).chain(
748 var deferred1 = Promise.defer()
750 var deferred2 = Promise.defer()
752 var deferred3 = Promise.defer()
754 Promise.all([p1, p2, p3]).chain(
789 Promise.all(3).chain(
810 Promise.race([]).chain(
817 var p1 = Promise.accept(1)
818 var p2 = Promise.accept(2)
819 var p3 = Promise.accept(3)
820 Promise.race([p1, p2, p3]).chain(
828 var p1 = Promise.accept(1)
829 var p2 = Promise.accept(2)
830 var p3 = Promise.accept(3)
831 Promise.race([0, p1, p2, p3]).chain(
839 var deferred1 = Promise.defer()
841 var deferred2 = Promise.defer()
843 var deferred3 = Promise.defer()
845 Promise.race([p1, p2, p3]).chain(
855 var deferred = Promise.defer()
857 var p2 = Promise.accept(2)
858 var p3 = Promise.defer().promise
859 Promise.race([p1, p2, p3]).chain(
868 var deferred1 = Promise.defer()
870 var deferred2 = Promise.defer()
872 var deferred3 = Promise.defer()
874 Promise.race([p1, p2, p3]).chain(
884 var deferred1 = Promise.defer()
886 var deferred2 = Promise.defer()
888 var deferred3 = Promise.defer()
890 Promise.race([p1, p2, p3]).chain(
902 Promise.race(value).chain(
917 var deferred1 = Promise.defer()
919 var deferred2 = Promise.defer()
921 var deferred3 = Promise.defer()
928 Promise.race(f()).chain(
938 var deferred1 = Promise.defer()
940 var deferred2 = Promise.defer()
942 var deferred3 = Promise.defer()
949 Promise.race(f()).chain(
983 Promise.race(3).chain(
1000 var promise = new Promise(function(resolve, reject) {
1010 MyPromise.__proto__ = Promise
1016 MyPromise.prototype.__proto__ = Promise.prototype
1026 assertTrue(d3.promise instanceof Promise, "subclass/instance")
1043 return new Promise(function(resolve) { resolve(x) })
1049 Promise.all([11, Promise.accept(12), 13, MyPromise.accept(14), 15, 16])
1054 MyPromise.all([21, Promise.accept(22), 23, MyPromise.accept(24), 25, 26])
1062 class Pact extends Promise { }
1071 assertTrue(Pact.resolve(Promise.resolve()).constructor === Pact,
1086 var promise = new Promise(function(res) { resolve = res; });
1095 var p1 = (new Promise(function(res) { resolve = res; }));
1108 var p = Promise.resolve();
1111 get: function() { ++callCount; return Promise; }