blob: b6eb9cfaa5f3a8fe04337c1992d6f060762dacfe [file] [log] [blame]
Test Promise.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS thisInInit === firstPromise is false
PASS thisInInit === window is true
PASS firstPromise instanceof Promise is true
PASS secondPromise instanceof Promise is true
PASS thisInFulfillCallback === firstPromise is false
PASS thisInFulfillCallback === secondPromise is false
PASS thisInFulfillCallback === window is true
PASS result is "hello"
PASS result is "world"
PASS rejected
PASS result is "exception"
PASS resolved
PASS successfullyParsed is true
TEST COMPLETE