https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 664d5705e7ec00e69c5ed40ee47d12ef203a8622 authored by Simon Pieters on 18 October 2018, 07:49:54 UTC
Address comments
Tip revision: 664d570
nested_worker_sync_xhr.worker.js
importScripts("/resources/testharness.js");

async_test(function() {
    const worker = new Worker("support/sync_xhr.js");
    worker.postMessage("ping");
    worker.onmessage = this.step_func_done(function(evt) {
        assert_equals(evt.data, "Pass");
        worker.terminate();
    });
}, "Nested worker that issues a sync XHR");
done();
back to top