blob: 3a762623ebab0ae8f3883be7261e9f8ebbd77314 [file] [log] [blame]
Test Promise.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS promise instanceof Promise is true
PASS promise.constructor is Promise
PASS thisInInit is promise
PASS resolver instanceof PromiseResolver is true
PASS resolver.constructor is PromiseResolver
PASS new Promise() threw exception TypeError: Promise constructor takes a function argument.
PASS new Promise(37) threw exception TypeError: Promise constructor takes a function argument.
PASS promise = new Promise(function() { throw Error("foo"); }) did not throw exception.
PASS successfullyParsed is true
TEST COMPLETE