browser_storage_localstorage_edit.js (794B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 // Basic test to check the editing of localStorage. 6 7 "use strict"; 8 9 add_task(async function () { 10 await openTabAndSetupStorage( 11 MAIN_DOMAIN_SECURED + "storage-localstorage.html" 12 ); 13 14 await selectTreeItem(["localStorage", "https://test1.example.org"]); 15 16 await editCell("TestLS1", "name", "newTestLS1"); 17 await editCell("newTestLS1", "value", "newValueLS1"); 18 19 await editCell("TestLS3", "name", "newTestLS3"); 20 await editCell("newTestLS3", "value", "newValueLS3"); 21 22 await editCell("TestLS5", "name", "newTestLS5"); 23 await editCell("newTestLS5", "value", "newValueLS5"); 24 });