Home | History | Annotate | Download | only in js
      1 Test Promise.race
      2 
      3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
      4 
      5 PASS result is undefined
      6 PASS Promise.race() is rejected.
      7 PASS Promise.race({}) is rejected.
      8 PASS Promise.race([p4, p1, p6]) is fulfilled.
      9 PASS result is "p1"
     10 PASS Promise.race([p4, p6, p1]) is rejected.
     11 PASS result is "p6"
     12 PASS Promise.race([p9]) is fulfilled.
     13 PASS result is "p2"
     14 PASS Promise.race([p4,,]) is fulfilled.
     15 PASS result is undefined
     16 PASS Promise.race([p4,42]) is fulfilled.
     17 PASS result is 42
     18 PASS successfullyParsed is true
     19 
     20 TEST COMPLETE
     21 
     22