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,23 @@
<script src="../testing.js"></script>
<script id=history>
testing.expectEqual('auto', history.scrollRestoration);
history.scrollRestoration = 'manual';
history.scrollRestoration = 'foo';
testing.expectEqual('manual', history.scrollRestoration);
history.scrollRestoration = 'auto';
testing.expectEqual('auto', history.scrollRestoration);
testing.expectEqual(null, history.state)
history.pushState({}, null, '');
history.replaceState({}, null, '');
testing.expectEqual(undefined, history.go());
testing.expectEqual(undefined, history.go(1));
testing.expectEqual(undefined, history.go(-1));
testing.expectEqual(undefined, history.forward());
testing.expectEqual(undefined, history.back());
</script>