migrate more tests to htmlRunner

This commit is contained in:
Karl Seguin
2025-09-11 12:07:17 +08:00
parent 31fe2807aa
commit ede35718ae
26 changed files with 602 additions and 631 deletions

View File

@@ -0,0 +1,14 @@
<script src="../testing.js"></script>
<script id=location>
testing.expectEqual('http://localhost:9582/src/tests/html/location.html', location.href);
testing.expectEqual('http://localhost:9582/src/tests/html/location.html', document.location.href);
testing.expectEqual("localhost:9582", location.host);
testing.expectEqual("localhost", location.hostname);
testing.expectEqual("http://localhost:9582", location.origin);
testing.expectEqual("/src/tests/html/location.html", location.pathname);
testing.expectEqual("", location.hash);
testing.expectEqual("9582", location.port);
testing.expectEqual("", location.search);
</script>