2d48e06e52
Import Blink layout tests for Promises. We omitted some tests (for example workers tests). We fixed some wrong test expectations. BUG=347095 LOG=N R=rossberg@chromium.org Review URL: https://codereview.chromium.org/182713002 Patch from Yutaka Hirano <yhirano@chromium.org>. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19757 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
33 lines
837 B
Plaintext
33 lines
837 B
Plaintext
Test Promise.all
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
PASS result is undefined
|
|
PASS Promise.all() is rejected.
|
|
PASS Promise.all([]) is fulfilled.
|
|
PASS result.length is 0
|
|
PASS Promise.all([p1, p2, p3]) is fulfilled.
|
|
PASS result.length is 3
|
|
PASS result[0] is "p1"
|
|
PASS result[1] is "p2"
|
|
PASS result[2] is "p3"
|
|
PASS Promise.all([p1, p6, p5]) is rejected.
|
|
PASS result is "p6"
|
|
PASS Promise.all([p9]) is fulfilled.
|
|
PASS result.length is 1
|
|
PASS result[0] is "p2"
|
|
PASS Promise.all([p9,,,]) is fulfilled.
|
|
PASS result.length is 3
|
|
PASS result[0] is "p2"
|
|
PASS result[1] is undefined
|
|
PASS result[2] is undefined
|
|
PASS Promise.all([p9,42]) is fulfilled.
|
|
PASS result.length is 2
|
|
PASS result[0] is "p2"
|
|
PASS result[1] is 42
|
|
PASS Promise.all({}) is rejected.
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|