summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webstorage/storage_length.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/webstorage/storage_length.html')
-rw-r--r--testing/web-platform/tests/webstorage/storage_length.html31
1 files changed, 0 insertions, 31 deletions
diff --git a/testing/web-platform/tests/webstorage/storage_length.html b/testing/web-platform/tests/webstorage/storage_length.html
deleted file mode 100644
index ecee6ec9b..000000000
--- a/testing/web-platform/tests/webstorage/storage_length.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE HTML>
-<meta charset=utf-8>
-<title>WebStorage Test: Storage - length</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<div id="log"></div>
-<script>
-["localStorage", "sessionStorage"].forEach(function(name) {
- test(function() {
- var storage = window[name];
- storage.clear();
- assert_equals(storage.length, 0, "storage.length")
-
- storage["name"] = "user1";
- storage["age"] = "20";
-
- assert_equals(storage.length, 2, "storage.length")
- }, name + ".length (method access)");
-
- test(function() {
- var storage = window[name];
- storage.clear();
- assert_equals(storage.length, 0, "storage.length")
-
- storage.setItem("name", "user1");
- storage.setItem("age", "20");
-
- assert_equals(storage.length, 2, "storage.length")
- }, name + ".length (proprty access)");
-});
-</script>