diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:44:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:44:51 +0000 |
commit | 9e3c08db40b8916968b9f30096c7be3f00ce9647 (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /devtools/client/webconsole/test/browser/test-local-session-storage.html | |
parent | Initial commit. (diff) | |
download | thunderbird-9e3c08db40b8916968b9f30096c7be3f00ce9647.tar.xz thunderbird-9e3c08db40b8916968b9f30096c7be3f00ce9647.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/webconsole/test/browser/test-local-session-storage.html')
-rw-r--r-- | devtools/client/webconsole/test/browser/test-local-session-storage.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/devtools/client/webconsole/test/browser/test-local-session-storage.html b/devtools/client/webconsole/test/browser/test-local-session-storage.html new file mode 100644 index 0000000000..c38f805cc4 --- /dev/null +++ b/devtools/client/webconsole/test/browser/test-local-session-storage.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8" /> + <title>localStorage and sessionStorage Test</title> + + <script> + "use strict"; + + /* eslint-disable no-unused-vars */ + + function init() { + // We use the value key to ensure we cover an issue with iterating through + // storage entries... please leave this key as "key" + localStorage.setItem("key", "value1"); + localStorage.setItem("key2", "value2"); + + // We use the value key to ensure we cover an issue with iterating through + // storage entries... please leave this key as "key" + sessionStorage.setItem("key", "value3"); + sessionStorage.setItem("key2", "value4"); + } + </script> +</head> +<body onload="init()"> + <h1>localStorage and sessionStorage Test</h1> +</body> +</html> |