Status

()

Core
DOM: Workers
4 years ago
4 years ago

People

(Reporter: Yoric, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [Async:ready])

Now that we are starting to develop features and modules for workers, we need a simple testing mechanism for workers, preferably one with a feature set comparable to SimpleTest.
Would be interesting to see if we could make testharness.js easy to use in workers
Yeah, we shouldn't be inventing new javascript test harnesses. If extensions to testharness.js to make it easier to use in workers are required we should add those.

Note also that web-platform-tests already has some worker tests [1]

[1] http://w3c-test.org/web-platform-tests/master/workers/

Comment 3

4 years ago
The worker tests I've written that use testharness are basically a bad way to write tests, since the harness doesn't have native support. I recall discussing this with jgraham for possible implementation strategies but don't remember the details.
I started poking at this: https://github.com/Ms2ger/testharness.js/tree/worker-support
Blocks: 853460
Whiteboard: [Async] → [Async:ready]
You need to log in before you can comment on or make changes to this bug.