summaryrefslogtreecommitdiffstats
path: root/browser/components/syncedtabs/test
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 /browser/components/syncedtabs/test
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 'browser/components/syncedtabs/test')
-rw-r--r--browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js25
1 files changed, 13 insertions, 12 deletions
diff --git a/browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js b/browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js
index daf980e5fa..2728ba5155 100644
--- a/browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js
+++ b/browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js
@@ -91,28 +91,28 @@ function setupSyncedTabsStubs({
async function testClean() {
sinon.restore();
await new Promise(resolve => {
- window.SidebarUI.browser.contentWindow.addEventListener(
+ window.SidebarController.browser.contentWindow.addEventListener(
"unload",
function () {
resolve();
},
{ once: true }
);
- SidebarUI.hide();
+ SidebarController.hide();
});
}
add_task(async function testSyncedTabsSidebarList() {
- await SidebarUI.show("viewTabsSidebar");
+ await SidebarController.show("viewTabsSidebar");
Assert.equal(
- SidebarUI.currentID,
+ SidebarController.currentID,
"viewTabsSidebar",
"Sidebar should have SyncedTabs loaded"
);
let syncedTabsDeckComponent =
- SidebarUI.browser.contentWindow.syncedTabsDeckComponent;
+ SidebarController.browser.contentWindow.syncedTabsDeckComponent;
Assert.ok(syncedTabsDeckComponent, "component exists");
@@ -172,9 +172,9 @@ add_task(async function testSyncedTabsSidebarList() {
add_task(testClean);
add_task(async function testSyncedTabsSidebarFilteredList() {
- await SidebarUI.show("viewTabsSidebar");
+ await SidebarController.show("viewTabsSidebar");
let syncedTabsDeckComponent =
- window.SidebarUI.browser.contentWindow.syncedTabsDeckComponent;
+ window.SidebarController.browser.contentWindow.syncedTabsDeckComponent;
Assert.ok(syncedTabsDeckComponent, "component exists");
@@ -244,9 +244,9 @@ add_task(async function testSyncedTabsSidebarFilteredList() {
add_task(testClean);
add_task(async function testSyncedTabsSidebarStatus() {
- await SidebarUI.show("viewTabsSidebar");
+ await SidebarController.show("viewTabsSidebar");
let syncedTabsDeckComponent =
- window.SidebarUI.browser.contentWindow.syncedTabsDeckComponent;
+ window.SidebarController.browser.contentWindow.syncedTabsDeckComponent;
Assert.ok(syncedTabsDeckComponent, "component exists");
@@ -377,9 +377,9 @@ add_task(async function testSyncedTabsSidebarStatus() {
add_task(testClean);
add_task(async function testSyncedTabsSidebarContextMenu() {
- await SidebarUI.show("viewTabsSidebar");
+ await SidebarController.show("viewTabsSidebar");
let syncedTabsDeckComponent =
- window.SidebarUI.browser.contentWindow.syncedTabsDeckComponent;
+ window.SidebarController.browser.contentWindow.syncedTabsDeckComponent;
Assert.ok(syncedTabsDeckComponent, "component exists");
@@ -547,7 +547,8 @@ async function testContextMenu(
let chromeWindow = triggerElement.ownerGlobal.top;
let rect = triggerElement.getBoundingClientRect();
- let contentRect = chromeWindow.SidebarUI.browser.getBoundingClientRect();
+ let contentRect =
+ chromeWindow.SidebarController.browser.getBoundingClientRect();
// The offsets in `rect` are relative to the content window, but
// `synthesizeMouseAtPoint` calls `nsIDOMWindowUtils.sendMouseEvent`,
// which interprets the offsets relative to the containing *chrome* window.