OLD | NEW |
(Empty) | |
| 1 Test Promise. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 PASS promise instanceof Promise is true |
| 6 PASS promise.constructor is Promise |
| 7 PASS thisInInit is promise |
| 8 PASS resolver instanceof PromiseResolver is true |
| 9 PASS resolver.constructor is PromiseResolver |
| 10 PASS new Promise() threw exception TypeError: Promise constructor takes a functi
on argument. |
| 11 PASS new Promise(37) threw exception TypeError: Promise constructor takes a func
tion argument. |
| 12 PASS promise = new Promise(function() { throw Error("foo"); }) did not throw exc
eption. |
| 13 PASS successfullyParsed is true |
| 14 |
| 15 TEST COMPLETE |
| 16 |
OLD | NEW |