Bug 1522440 - Finish porting browser_test_focus_urlbar.js to quantumbar. r=adw
authorDão Gottwald <dao@mozilla.com>
Mon, 29 Apr 2019 20:00:28 +0000
changeset 530655 db10a6b3d728c9113c13c1b92d01a56a3f947c1d
parent 530654 143b77783b2e662853ea6dc151043ebb803bde6d
child 530656 70b8b938b4d4198823a4b42280109125d64559b5
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw
bugs1522440
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1522440 - Finish porting browser_test_focus_urlbar.js to quantumbar. r=adw Differential Revision: https://phabricator.services.mozilla.com/D29119
accessible/tests/browser/events/browser_test_focus_urlbar.js
--- a/accessible/tests/browser/events/browser_test_focus_urlbar.js
+++ b/accessible/tests/browser/events/browser_test_focus_urlbar.js
@@ -114,16 +114,19 @@ async function runTests() {
   event = await focused;
   testStates(event.accessible, STATE_FOCUSED);
 
   info("Ensuring text box focus on left arrow");
   focused = waitForEvent(EVENT_FOCUS, textBox);
   EventUtils.synthesizeKey("KEY_ArrowLeft");
   await focused;
   testStates(textBox, STATE_FOCUSED);
+  if (UrlbarPrefs.get("quantumbar")) {
+    gURLBar.view.close();
+  }
   // On Mac, down arrow when not at the end of the field moves to the end.
   // Move back to the end so the next press of down arrow opens the popup.
   EventUtils.synthesizeKey("KEY_ArrowRight");
 
   info("Ensuring autocomplete focus on down arrow");
   focused = waitForEvent(EVENT_FOCUS, isEventForAutocompleteItem);
   EventUtils.synthesizeKey("KEY_ArrowDown");
   event = await focused;