blob: 73c87f405508e2f66464b48f710e1771c67c08d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
importScripts("/resources/testharness.js");
async_test(function() {
if (!self.Worker)
done();
const worker = new Worker("support/WorkerClose.js");
worker.onmessage = this.step_func_done(function(e) {
assert_equals(e.data, "close");
done();
});
worker.postMessage("close");
}, "Nested work that closes itself");
|