summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /testing/mochitest/tests
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/mochitest/tests')
-rw-r--r--testing/mochitest/tests/browser/browser_waitForFocus.js8
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();
});