browser_storage_cookies_tab_navigation.js (773B)
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 cookie table tab navigation. 6 7 "use strict"; 8 9 add_task(async function () { 10 await openTabAndSetupStorage(MAIN_DOMAIN + "storage-cookies.html"); 11 showAllColumns(true); 12 13 const id = getCookieId("test1", ".test1.example.org", "/browser"); 14 await startCellEdit(id, "name"); 15 16 PressKeyXTimes("VK_TAB", 15); 17 is(getCurrentEditorValue(), "value3", "We have tabbed to the correct cell."); 18 19 PressKeyXTimes("VK_TAB", 15, { shiftKey: true }); 20 is( 21 getCurrentEditorValue(), 22 "test1", 23 "We have shift-tabbed to the correct cell." 24 ); 25 });