mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 16:28:58 +00:00
add location set hash tests
This commit is contained in:
@@ -13,3 +13,13 @@
|
||||
testing.expectEqual("9582", location.port);
|
||||
testing.expectEqual("", location.search);
|
||||
</script>
|
||||
|
||||
<script id=location_hash>
|
||||
location.hash = "#abcdef";
|
||||
testing.expectEqual("#abcdef", location.hash);
|
||||
testing.expectEqual('http://localhost:9582/src/tests/html/location.html#abcdef', location.href);
|
||||
|
||||
location.hash = "xyzxyz";
|
||||
testing.expectEqual("#xyzxyz", location.hash);
|
||||
testing.expectEqual('http://localhost:9582/src/tests/html/location.html#xyzxyz', location.href);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user