make_migration_emptyValue.js (413B)
1 /* 2 Any copyright is dedicated to the Public Domain. 3 http://creativecommons.org/publicdomain/zero/1.0/ 4 */ 5 6 async function testSteps() { 7 const data = { 8 key: "foo", 9 value: "", 10 }; 11 12 info("Setting pref"); 13 14 Services.prefs.setBoolPref("dom.storage.next_gen", false); 15 16 info("Getting storage"); 17 18 const storage = getLocalStorage(); 19 20 info("Adding data"); 21 22 storage.setItem(data.key, data.value); 23 }