mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-15 00:53:58 -05:00
25 lines
747 B
HTML
25 lines
747 B
HTML
<!DOCTYPE html>
|
|
<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>
|