зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5114c5e45b
Коммит
255718ee30
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче