summaryrefslogtreecommitdiffstats
path: root/dom/localstorage/test/unit/make_migration_emptyValue.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/localstorage/test/unit/make_migration_emptyValue.js')
-rw-r--r--dom/localstorage/test/unit/make_migration_emptyValue.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/dom/localstorage/test/unit/make_migration_emptyValue.js b/dom/localstorage/test/unit/make_migration_emptyValue.js
new file mode 100644
index 0000000000..12484ad7f3
--- /dev/null
+++ b/dom/localstorage/test/unit/make_migration_emptyValue.js
@@ -0,0 +1,23 @@
+/*
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+*/
+
+async function testSteps() {
+ const data = {
+ key: "foo",
+ value: "",
+ };
+
+ info("Setting pref");
+
+ Services.prefs.setBoolPref("dom.storage.next_gen", false);
+
+ info("Getting storage");
+
+ const storage = getLocalStorage();
+
+ info("Adding data");
+
+ storage.setItem(data.key, data.value);
+}