OLD | NEW |
| 1 CONSOLE WARNING: Promise API is changing and this function might be affected. |
| 2 CONSOLE WARNING: Promise API is changing and this function might be affected. |
| 3 CONSOLE WARNING: Promise API is changing and this function might be affected. |
| 4 CONSOLE WARNING: Promise API is changing and this function might be affected. |
| 5 CONSOLE WARNING: Promise API is changing and this function might be affected. |
1 Test Promise. | 6 Test Promise. |
2 | 7 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 8 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 9 |
5 PASS promise instanceof Promise is true | 10 PASS promise instanceof Promise is true |
6 PASS promise.constructor is Promise | 11 PASS promise.constructor is Promise |
7 PASS thisInInit === promise is false | 12 PASS thisInInit === promise is false |
8 PASS thisInInit === window is true | 13 PASS thisInInit === window is true |
9 PASS resolve instanceof Function is true | 14 PASS resolve instanceof Function is true |
10 PASS reject instanceof Function is true | 15 PASS reject instanceof Function is true |
11 PASS new Promise() threw exception TypeError: Promise constructor takes a functi
on argument. | 16 PASS new Promise() threw exception TypeError: Promise constructor takes a functi
on argument. |
12 PASS new Promise(37) threw exception TypeError: Promise constructor takes a func
tion argument. | 17 PASS new Promise(37) threw exception TypeError: Promise constructor takes a func
tion argument. |
13 PASS promise = new Promise(function() { throw Error("foo"); }) did not throw exc
eption. | 18 PASS promise = new Promise(function() { throw Error("foo"); }) did not throw exc
eption. |
14 PASS result.message is "foo" | 19 PASS result.message is "foo" |
15 PASS fulfilled | 20 PASS fulfilled |
16 PASS result is "hello" | 21 PASS result is "hello" |
17 PASS successfullyParsed is true | 22 PASS successfullyParsed is true |
18 | 23 |
19 TEST COMPLETE | 24 TEST COMPLETE |
20 | 25 |
OLD | NEW |