summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/nested_worker_importScripts.worker.js
blob: a671ee4e1e93b795a1109650eb30856bb0e65991 (plain)
1
2
3
4
5
6
7
8
9
10
11
importScripts("/resources/testharness.js");

async_test(function() {
    const worker = new Worker("support/ImportScripts.js");
    worker.postMessage("ping");
    worker.onmessage = this.step_func_done(function(evt) {
        assert_equals(evt.data, "Pass");
        worker.terminate();
    });
}, "Nested worker that calls importScripts()");
done();