Newer
Older
minerva / Tests / LibWeb / Text / input / HTML / DedicatedWorkerGlobalScope-instanceof.html
@minerva minerva on 13 Jul 434 bytes Initial commit
<script src="../include.js"></script>
<script>
    asyncTest(done => {
        const worker = new Worker("DedicatedWorkerGlobalScope-instanceof-worker.js");
        worker.onmessage = function (event) {
            if (event.data.result === true) {
                println("PASS");
            } else {
                println("FAIL");
            }
            done();
        };
        worker.postMessage("run");
    });
</script>