about summary refs log tree commit diff stats
path: root/test/js/window.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/window.html')
-rw-r--r--test/js/window.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/js/window.html b/test/js/window.html
index 5aef5186..07b76145 100644
--- a/test/js/window.html
+++ b/test/js/window.html
@@ -7,5 +7,13 @@ assert_equals(window.toString(), "[object Window]");
 const desc = Object.getOwnPropertyDescriptor(window, "window");
 assert(desc.enumerable, "window must be enumerable");
 assert(!desc.configurable, "window must not be configurable");
+assert_equals(window.history.state, null);
+window.localStorage.setItem("a", "x");
+window.localStorage["b"] = "y";
+assert_equals(window.localStorage["b"], "y")
+delete window.localStorage.b;
+assert_equals(window.localStorage["b"], undefined);
+window.localStorage["b"] = "y";
+assert(window.sessionStorage instanceof Storage);
 document.getElementById("x").textContent = "Success";
 </script>