| OLD | NEW |
| 1 CONSOLE WARNING: Promise API is changing and this function might be affected. |
| 1 [Worker] Test Promise. | 2 [Worker] Test Promise. |
| 2 | 3 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 5 |
| 5 Starting worker: resources/Promise-then-in-workers.js | 6 Starting worker: resources/Promise-then-in-workers.js |
| 6 PASS [Worker] thisInInit === firstPromise is false | 7 PASS [Worker] thisInInit === firstPromise is false |
| 7 PASS [Worker] thisInInit === global is true | 8 PASS [Worker] thisInInit === global is true |
| 8 PASS [Worker] firstPromise instanceof Promise is true | 9 PASS [Worker] firstPromise instanceof Promise is true |
| 9 PASS [Worker] secondPromise instanceof Promise is true | 10 PASS [Worker] secondPromise instanceof Promise is true |
| 10 PASS [Worker] thisInFulfillCallback === firstPromise is false | 11 PASS [Worker] thisInFulfillCallback === firstPromise is false |
| 11 PASS [Worker] thisInFulfillCallback === secondPromise is false | 12 PASS [Worker] thisInFulfillCallback === secondPromise is false |
| 12 PASS [Worker] thisInFulfillCallback === global is true | 13 PASS [Worker] thisInFulfillCallback === global is true |
| 13 PASS [Worker] result is "hello" | 14 PASS [Worker] result is "hello" |
| 14 PASS [Worker] result is "world" | 15 PASS [Worker] result is "world" |
| 15 PASS [Worker] rejected | 16 PASS [Worker] rejected |
| 16 PASS [Worker] result is "exception" | 17 PASS [Worker] result is "exception" |
| 17 PASS [Worker] resolved | 18 PASS [Worker] resolved |
| 18 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
| 19 | 20 |
| 20 TEST COMPLETE | 21 TEST COMPLETE |
| 21 | 22 |
| OLD | NEW |