OLD | NEW |
1 Test Promise. | 1 Test Promise. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 PASS thisInInit === firstPromise is true | 5 PASS thisInInit === firstPromise is false |
| 6 PASS thisInInit === window is true |
6 PASS firstPromise instanceof Promise is true | 7 PASS firstPromise instanceof Promise is true |
7 PASS secondPromise instanceof Promise is true | 8 PASS secondPromise instanceof Promise is true |
8 PASS firstPromise.then(null) threw exception TypeError: fulfillCallback must be
a function or undefined. | 9 PASS firstPromise.then(null) threw exception TypeError: onFulfilled must be a fu
nction or undefined. |
9 PASS firstPromise.then(undefined, null) threw exception TypeError: rejectCallbac
k must be a function or undefined. | 10 PASS firstPromise.then(undefined, null) threw exception TypeError: onRejected mu
st be a function or undefined. |
10 PASS firstPromise.then(37) threw exception TypeError: fulfillCallback must be a
function or undefined. | 11 PASS firstPromise.then(37) threw exception TypeError: onFulfilled must be a func
tion or undefined. |
11 PASS thisInFulfillCallback === firstPromise is false | 12 PASS thisInFulfillCallback === firstPromise is false |
12 PASS thisInFulfillCallback === secondPromise is true | 13 PASS thisInFulfillCallback === secondPromise is false |
| 14 PASS thisInFulfillCallback === window is true |
13 PASS result is "hello" | 15 PASS result is "hello" |
14 PASS successfullyParsed is true | 16 PASS successfullyParsed is true |
15 | 17 |
16 TEST COMPLETE | 18 TEST COMPLETE |
17 | 19 |
OLD | NEW |