mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
migrate more tests to htmlRunner
This commit is contained in:
23
src/tests/html/history.html
Normal file
23
src/tests/html/history.html
Normal 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>
|
||||
Reference in New Issue
Block a user