mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 15:41:48 +00:00
add toJson object and fromJson value
This commit is contained in:
@@ -22,3 +22,10 @@
|
||||
testing.expectEqual(undefined, history.forward());
|
||||
testing.expectEqual(undefined, history.back());
|
||||
</script>
|
||||
|
||||
<script id=history-states>
|
||||
testing.expectEqual(null, history.state)
|
||||
|
||||
history.pushState({}, { "abc": "def" }, '');
|
||||
testing.expectEqual({ "abc": "def"}, history.state);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user