ladybird/Tests/LibWeb/Text/input/Worker/Worker-location.html
2025-03-20 11:50:49 +01:00

12 lines
383 B
HTML

<!DOCTYPE html>
<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>