mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05: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…
x
Reference in New Issue
Block a user