mirror of
https://github.com/servo/servo.git
synced 2025-07-17 20:33:40 +01:00
9 lines
385 B
JavaScript
9 lines
385 B
JavaScript
// META: global=!default,dedicatedworker,sharedworker
|
|
// META: script=resources/test-incrementer.js
|
|
"use strict";
|
|
|
|
promise_test(t => {
|
|
const worker = new Worker("resources/incrementer-worker.js");
|
|
|
|
return testSharingViaIncrementerScript(t, worker, "parent worker", worker, "sub-worker");
|
|
}, "postMessaging to a dedicated sub-worker allows them to see each others' modifications");
|