mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
add URL.canParse test
This commit is contained in:
@@ -99,3 +99,11 @@
|
|||||||
_ = new URL("://foo.bar/path?query#fragment");
|
_ = new URL("://foo.bar/path?query#fragment");
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script id=URL.canParse>
|
||||||
|
testing.expectEqual(true, URL.canParse("https://lightpanda.io"));
|
||||||
|
testing.expectEqual(false, URL.canParse("://lightpanda.io"));
|
||||||
|
|
||||||
|
testing.expectEqual(true, URL.canParse("/home", "https://lightpanda.io"));
|
||||||
|
testing.expectEqual(false, URL.canParse("lightpanda.io", "https"));
|
||||||
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user