diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /dom/tests/mochitest/localstorage/frameOrder.html | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/tests/mochitest/localstorage/frameOrder.html')
-rw-r--r-- | dom/tests/mochitest/localstorage/frameOrder.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dom/tests/mochitest/localstorage/frameOrder.html b/dom/tests/mochitest/localstorage/frameOrder.html new file mode 100644 index 0000000000..3b3f0ebef8 --- /dev/null +++ b/dom/tests/mochitest/localstorage/frameOrder.html @@ -0,0 +1,27 @@ +<html> +<head> +</head> +<script type="text/javascript"> +function doTest() +{ + var query = location.search.substring(1); + query = unescape(query); + var keyNames = eval(query); + + parent.is(localStorage.a, "10", "a = 10"); + parent.is(localStorage.b, "20", "b = 20"); + parent.is(localStorage.c, "30", "c = 30"); + parent.is(localStorage.d, "40", "d = 40"); + parent.is(localStorage.e, "50", "e = 50"); + parent.is(localStorage.length, 5, "length = 5"); + + for (var i = 0; i < localStorage.length; ++i) + parent.is(keyNames[i], localStorage.key(i), "key "+keyNames[i]+" on same index"); + + parent.SimpleTest.finish(); + localStorage.clear(); +} +</script> +<body onload="doTest();"> +</body> +</html> |