diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /testing/mochitest/tests/browser | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/mochitest/tests/browser')
-rw-r--r-- | testing/mochitest/tests/browser/browser_waitForFocus.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/mochitest/tests/browser/browser_waitForFocus.js b/testing/mochitest/tests/browser/browser_waitForFocus.js index b41b07f423..93d682525a 100644 --- a/testing/mochitest/tests/browser/browser_waitForFocus.js +++ b/testing/mochitest/tests/browser/browser_waitForFocus.js @@ -103,12 +103,12 @@ add_task(async function () { // Tests focusing the sidebar, which is in a parent process subframe // and then switching the focus to another window. add_task(async function () { - await SidebarUI.show("viewBookmarksSidebar"); + await SidebarController.show("viewBookmarksSidebar"); gURLBar.focus(); // Focus the sidebar. - await SimpleTest.promiseFocus(SidebarUI.browser); + await SimpleTest.promiseFocus(SidebarController.browser); is( document.activeElement, document.getElementById("sidebar"), @@ -120,7 +120,7 @@ add_task(async function () { ); // Focus the sidebar again, which should cause no change. - await SimpleTest.promiseFocus(SidebarUI.browser); + await SimpleTest.promiseFocus(SidebarController.browser); is( document.activeElement, document.getElementById("sidebar"), @@ -156,5 +156,5 @@ add_task(async function () { ); await BrowserTestUtils.closeWindow(window2); - await SidebarUI.hide(); + await SidebarController.hide(); }); |