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-then-in-workers.js | 5 Starting worker: resources/Promise-then-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.then(null) threw exception TypeError: fulfillCallback
must be a function or undefined. | 10 PASS [Worker] firstPromise.then(null) threw exception TypeError: onFulfilled mus
t be a function or undefined. |
10 PASS [Worker] firstPromise.then(undefined, null) threw exception TypeError: reje
ctCallback must be a function or undefined. | 11 PASS [Worker] firstPromise.then(undefined, null) threw exception TypeError: onRe
jected must be a function or undefined. |
11 PASS [Worker] firstPromise.then(37) threw exception TypeError: fulfillCallback m
ust be a function or undefined. | 12 PASS [Worker] firstPromise.then(37) threw exception TypeError: onFulfilled must
be a function or undefined. |
12 PASS [Worker] thisInFulfillCallback === firstPromise is false | 13 PASS [Worker] thisInFulfillCallback === firstPromise is false |
13 PASS [Worker] thisInFulfillCallback === secondPromise is true | 14 PASS [Worker] thisInFulfillCallback === secondPromise is false |
| 15 PASS [Worker] thisInFulfillCallback === global is true |
14 PASS [Worker] result is "hello" | 16 PASS [Worker] result is "hello" |
15 PASS successfullyParsed is true | 17 PASS successfullyParsed is true |
16 | 18 |
17 TEST COMPLETE | 19 TEST COMPLETE |
18 | 20 |
OLD | NEW |