mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
add an invalid url test
* this test should not pass; it's related to implementation of `std.Uri` though.
This commit is contained in:
@@ -76,3 +76,8 @@
|
|||||||
testing.expectEqual("", sk.hostname);
|
testing.expectEqual("", sk.hostname);
|
||||||
testing.expectEqual("sveltekit-internal://", sk.href);
|
testing.expectEqual("sveltekit-internal://", sk.href);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script id=invalidUrl>
|
||||||
|
let u = new URL("://foo.bar/path?query#fragment");
|
||||||
|
testing.expectEqual(":", u.protocol);
|
||||||
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user