Closed
Bug 909726
Opened 11 years ago
Closed 4 years ago
SimpleTest for Workers
Categories
(Core :: DOM: Workers, defect, P5)
Core
DOM: Workers
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: Yoric, Unassigned)
References
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.
Comment 1•11 years ago
|
||
Would be interesting to see if we could make testharness.js easy to use in workers
Comment 2•11 years ago
|
||
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•11 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.
Comment 4•11 years ago
|
||
I started poking at this: https://github.com/Ms2ger/testharness.js/tree/worker-support
Reporter | ||
Updated•11 years ago
|
Blocks: WorkForTheWorkers
Updated•10 years ago
|
Whiteboard: [Async] → [Async:ready]
Updated•6 years ago
|
Priority: -- → P5
Comment 5•4 years ago
|
||
The multi-global WPT mechanism I think now accomplishes most of what we'd want in worker contexts, and it's possible to use for Mozilla-only tests. And for many service-based affordances, I think testing would normally happen from the main thread with the use of workers being an implementation detail.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•