OLD | NEW |
1 [Worker] Test Promise. | 1 [Worker] 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 Starting worker: resources/Promise-catch-in-workers.js | 5 Starting worker: resources/Promise-catch-in-workers.js |
6 PASS [Worker] thisInInit === firstPromise is true | 6 PASS [Worker] thisInInit === firstPromise is false |
| 7 PASS [Worker] thisInInit === global is true |
7 PASS [Worker] firstPromise instanceof Promise is true | 8 PASS [Worker] firstPromise instanceof Promise is true |
8 PASS [Worker] secondPromise instanceof Promise is true | 9 PASS [Worker] secondPromise instanceof Promise is true |
9 PASS [Worker] firstPromise.catch(null) threw exception TypeError: rejectCallback
must be a function or undefined. | 10 PASS [Worker] firstPromise.catch(null) threw exception TypeError: onRejected mus
t be a function or undefined. |
10 PASS [Worker] firstPromise.catch(37) threw exception TypeError: rejectCallback m
ust be a function or undefined. | 11 PASS [Worker] firstPromise.catch(37) threw exception TypeError: onRejected must
be a function or undefined. |
11 PASS [Worker] thisInFulfillCallback === firstPromise is false | 12 PASS [Worker] thisInFulfillCallback === firstPromise is false |
12 PASS [Worker] thisInFulfillCallback === secondPromise is true | 13 PASS [Worker] thisInFulfillCallback === secondPromise is false |
| 14 PASS [Worker] thisInFulfillCallback === global is true |
13 PASS [Worker] result is "hello" | 15 PASS [Worker] result is "hello" |
14 PASS [Worker] result is "bye" | 16 PASS [Worker] result is "bye" |
15 PASS [Worker] fulfilled | 17 PASS [Worker] fulfilled |
16 PASS successfullyParsed is true | 18 PASS successfullyParsed is true |
17 | 19 |
18 TEST COMPLETE | 20 TEST COMPLETE |
19 | 21 |
OLD | NEW |