Bug 1531039 - Fix a couple more tests in browser/base/content to work with QuantumBar. r=adw

Differential Revision: https://phabricator.services.mozilla.com/D21377

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Banner 2019-02-28 00:02:39 +00:00
Родитель 5114c5e45b
Коммит 255718ee30
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -848,7 +848,7 @@ add_task(async function contextMenu() {
// urlbar tests that run after this one can break if the mouse is left over
// the area where the urlbar popup appears, which seems to happen due to the
// above synthesized mouse events. Move it over the urlbar.
EventUtils.synthesizeMouseAtCenter(gURLBar, { type: "mousemove" });
EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, { type: "mousemove" });
gURLBar.focus();
});

Просмотреть файл

@ -2,7 +2,7 @@
* http://creativecommons.org/publicdomain/zero/1.0/ */
async function testSidebarKeyToggle(key, options, expectedSidebarId) {
EventUtils.synthesizeMouseAtCenter(gURLBar, {});
EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {});
let promiseShown = BrowserTestUtils.waitForEvent(window, "SidebarShown");
EventUtils.synthesizeKey(key, options);
await promiseShown;