Commit 902f46ca authored by Masayuki Nakano's avatar Masayuki Nakano
Browse files

Bug 1491797 - Make browser_bug1163304.js wait for focus event before checking...

Bug 1491797 - Make browser_bug1163304.js wait for focus event before checking IME state r=NeilDeakin

Differential Revision: https://phabricator.services.mozilla.com/D113618
parent 83467013
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -8,4 +8,3 @@ skip-if = (os == 'linux') || e10s # Bug 1157576
[browser_bug1163304.js]
skip-if =
  os != 'linux' && os != 'win' // Due to testing menubar behavior with keyboard
  os == "linux" && bits == 64 #Bug 1491797
+5 −0
Original line number Diff line number Diff line
@@ -11,7 +11,12 @@ add_task(async function test_setup() {
});

add_task(async function() {
  const promiseFocusInSearchBar = BrowserTestUtils.waitForEvent(
    BrowserSearch.searchBar.textbox,
    "focus"
  );
  BrowserSearch.searchBar.focus();
  await promiseFocusInSearchBar;

  let DOMWindowUtils = EventUtils._getDOMWindowUtils();
  is(