mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
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:
parent
5114c5e45b
commit
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;
|
||||
|
Loading…
Reference in New Issue
Block a user