diff options
Diffstat (limited to '')
-rw-r--r-- | testing/web-platform/tests/webstorage/storage_key_empty_string.window.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webstorage/storage_key_empty_string.window.js b/testing/web-platform/tests/webstorage/storage_key_empty_string.window.js new file mode 100644 index 0000000000..c3d59c42b8 --- /dev/null +++ b/testing/web-platform/tests/webstorage/storage_key_empty_string.window.js @@ -0,0 +1,10 @@ +["localStorage", "sessionStorage"].forEach(function(name) { + test(function () { + var storage = window[name]; + storage.clear(); + + storage.setItem("", "empty string"); + assert_equals(storage.getItem(""), "empty string"); + + }, name + ".key with empty string"); +}); |