| 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 |
| |