browser_storage_cookies_edit_keyboard.js (971B)
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 cookies with the keyboard. 6 7 "use strict"; 8 9 add_task(async function () { 10 await openTabAndSetupStorage(MAIN_DOMAIN + "storage-cookies.html"); 11 showAllColumns(true); 12 showColumn("uniqueKey", false); 13 14 const date = new Date(); 15 date.setDate(date.getDate() + 8); 16 17 const id = getCookieId("test4", "test1.example.org", "/browser"); 18 await startCellEdit(id, "name"); 19 await typeWithTerminator("test6", "KEY_Tab"); 20 await typeWithTerminator("test6value", "KEY_Tab"); 21 await typeWithTerminator(".example.org", "KEY_Tab"); 22 await typeWithTerminator("/", "KEY_Tab"); 23 await typeWithTerminator(date.toGMTString(), "KEY_Tab"); 24 await typeWithTerminator("false", "KEY_Tab"); 25 await typeWithTerminator("false", "KEY_Tab"); 26 });