make_somedata.js (513B)
1 /* 2 Any copyright is dedicated to the Public Domain. 3 http://creativecommons.org/publicdomain/zero/1.0/ 4 */ 5 6 add_task(async function testSteps() { 7 const principal = getPrincipal("https://example.com"); 8 9 const data = { 10 key: "foo", 11 value: "bar", 12 }; 13 14 info("Getting storage"); 15 16 const storage = getLocalStorage(principal); 17 18 info("Adding data"); 19 20 storage.setItem(data.key, data.value); 21 22 info("Resetting client"); 23 24 const request = resetClient(principal); 25 await requestFinished(request); 26 });