Raw File
nested_worker_importScripts.worker.js
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();
back to top