diff options
Diffstat (limited to 'devtools/client/storage/test/browser_storage_search_keyboard_trap.js')
-rw-r--r-- | devtools/client/storage/test/browser_storage_search_keyboard_trap.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devtools/client/storage/test/browser_storage_search_keyboard_trap.js b/devtools/client/storage/test/browser_storage_search_keyboard_trap.js new file mode 100644 index 0000000000..21ccd12980 --- /dev/null +++ b/devtools/client/storage/test/browser_storage_search_keyboard_trap.js @@ -0,0 +1,15 @@ +// Test ability to focus search field by using keyboard +"use strict"; + +add_task(async function () { + await openTabAndSetupStorage(MAIN_DOMAIN_SECURED + "storage-search.html"); + + gUI.tree.expandAll(); + await selectTreeItem(["localStorage", "https://test1.example.org"]); + + await focusSearchBoxUsingShortcut(gPanelWindow); + ok( + containsFocus(gPanelWindow.document, gUI.searchBox), + "Focus is in a searchbox" + ); +}); |