blob: 21f77501171cdd06b4e76ea578f04fa46808f00f [file] [log] [blame]
[Worker] Test Promise.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Starting worker: resources/Promise-catch-in-workers.js
PASS [Worker] thisInInit === firstPromise is true
PASS [Worker] firstPromise instanceof Promise is true
PASS [Worker] secondPromise instanceof Promise is true
PASS [Worker] firstPromise.catch(null) threw exception TypeError: Expected function or undefined as as first argument.
PASS [Worker] firstPromise.catch(37) threw exception TypeError: Expected function or undefined as as first argument.
PASS [Worker] thisInFulfillCallback === firstPromise is false
PASS [Worker] thisInFulfillCallback === secondPromise is true
PASS [Worker] result is "hello"
PASS [Worker] result is "bye"
PASS [Worker] fulfilled
PASS successfullyParsed is true
TEST COMPLETE