mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-28 03:06:20 -04:00
[assert] URL.html
This commit is contained in:
parent
6f371d6002
commit
6b5ed8fa51
8
test/ecmascript/assert/URL.html
Normal file
8
test/ecmascript/assert/URL.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<script>
|
||||||
|
console.error("URL.html");
|
||||||
|
var url = new URL('https://www.example.com/cats');
|
||||||
|
console.assert(url.pathname === '/cats', url.pathname);
|
||||||
|
console.assert(url.protocol === 'https:', url.protocol);
|
||||||
|
console.assert(url.hostname === 'www.example.com', url.hostname);
|
||||||
|
console.exit(0);
|
||||||
|
</script>
|
Loading…
Reference in New Issue
Block a user