ladybird/Tests/LibWeb/Text/input/Worker/Worker-location.html

12 lines
367 B
HTML
Raw Normal View History

<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>