Bug 1562585 - Remove openViewOnFocus tests on release. r=post-facto, a=test-only
authorMarco Bonardo <mbonardo@mozilla.com>
Thu, 04 Jul 2019 17:57:54 +0200
changeset 537205 aed34f2ed95d76f2cc65bd45f83376e5f4a16629
parent 537204 59f950e8418099e5c3c7bb7ed69a767ec52442f4
child 537206 3a52b315fac071bbcc8b644c79181e4366330fd9
push id2091
push userjcristau@mozilla.com
push dateThu, 04 Jul 2019 16:31:41 +0000
treeherdermozilla-release@3a52b315fac0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspost-facto, test-only
bugs1562585
milestone68.0
Bug 1562585 - Remove openViewOnFocus tests on release. r=post-facto, a=test-only
browser/components/urlbar/tests/browser/browser_inputHistory_emptystring.js
--- a/browser/components/urlbar/tests/browser/browser_inputHistory_emptystring.js
+++ b/browser/components/urlbar/tests/browser/browser_inputHistory_emptystring.js
@@ -79,33 +79,13 @@ add_task(async function test_history_no_
       async () => {
         info("Test opening panel with history dropmarker on a page");
         let selectedBrowser = gBrowser.selectedBrowser;
         await BrowserTestUtils.loadURI(selectedBrowser, TEST_URL);
         await BrowserTestUtils.browserLoaded(selectedBrowser);
         UrlbarTestUtils.getDropMarker(window).click();
         return true;
       },
-      // The following tests must be the last to run because of the pref change.
-      async () => {
-        info("Test opening panel on focus");
-        Services.prefs.setBoolPref("browser.urlbar.openViewOnFocus", true);
-        gURLBar.blur();
-        EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {});
-        registerCleanupFunction(() => {
-          Services.prefs.clearUserPref("browser.urlbar.openViewOnFocus");
-        });
-        return UrlbarPrefs.get("quantumbar");
-      },
-      async () => {
-        info("Test opening panel on focus on a page");
-        let selectedBrowser = gBrowser.selectedBrowser;
-        await BrowserTestUtils.loadURI(selectedBrowser, TEST_URL);
-        await BrowserTestUtils.browserLoaded(selectedBrowser);
-        gURLBar.blur();
-        EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {});
-        return UrlbarPrefs.get("quantumbar");
-      },
     ]) {
       await do_test(openFn, pickMethod);
     }
   }
 });