ladybird/Tests/LibWeb/Text/input/HTML/Location-protocol-setter.html

12 lines
278 B
HTML
Raw Normal View History

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
try {
window.location.protocol = "\xff";
} catch (e) {
println(`Setting location.protocol to an invalid value throws ${e.name}`);
}
});
</script>