summaryrefslogtreecommitdiffstats
path: root/devtools/client/storage/test/browser_storage_search_keyboard_trap.js
blob: 71dfd32c003018e0a6965b6aeecadbf5cef5227f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Test ability to focus search field by using keyboard
"use strict";

add_task(function* () {
  yield openTabAndSetupStorage(MAIN_DOMAIN + "storage-search.html");

  gUI.tree.expandAll();
  yield selectTreeItem(["localStorage", "http://test1.example.org"]);

  yield focusSearchBoxUsingShortcut(gPanelWindow);
  ok(containsFocus(gPanelWindow.document, gUI.searchBox),
     "Focus is in a searchbox");

  yield finishTests();
});