18 lines
418 B
Plaintext
18 lines
418 B
Plaintext
|
Test Promise.prototype.then
|
||
|
|
||
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
||
|
|
||
|
PASS thisInInit is undefined
|
||
|
PASS firstPromise instanceof Promise is true
|
||
|
PASS secondPromise instanceof Promise is true
|
||
|
PASS thisInOnFulfilled is undefined
|
||
|
PASS result is "hello"
|
||
|
PASS result is "world"
|
||
|
PASS rejected
|
||
|
PASS result is "exception"
|
||
|
PASS resolved
|
||
|
PASS successfullyParsed is true
|
||
|
|
||
|
TEST COMPLETE
|
||
|
|