Newer
Older
minerva / Tests / LibWeb / Text / input / Worker / Worker-location.html
@minerva minerva on 13 Jul 367 bytes Initial commit
<script src="../include.js"></script>
<script>
    asyncTest(done => {
        let work = new Worker("Worker-location.js");
        work.onmessage = (evt) => {
            const locationURL = new URL(evt.data);
            println(`location global object URL final segment: ${locationURL.pathname.split('/').pop()}`);
            done();
        };
    });
</script>