fix: Start working on more eslint rules, p=#11874

* fix: Start working on more eslint rules, b=no-bug, c=common, mods, workspaces

* chore: Continue migration, b=no-bug, c=workflows, windows, glance, mods, welcome, workspaces, common, compact-mode, folders, tests, kbs, media, split-view, tabs

* chore: Finish, b=no-bug, c=common, compact-mode, folders, glance, tests, kbs, media, mods, split-view, tabs, workspaces, welcome

* fix: Fix installing deps, b=no-bug, c=common

* feat: Dont initialize git on download checks, b=no-bug, c=workflows

* feat: Remove empty JS docs, b=no-bug, c=common, compact-mode, folders, glance, kbs, media, mods, split-view, tabs, tests, workspaces

* chore: Run lint, b=no-bug, c=common, folders, glance, kbs, mods, split-view, tabs, workspaces
This commit is contained in:
mr. m
2026-01-12 15:11:43 +01:00
committed by GitHub
parent fd82ad95b7
commit 37eed5fcfe
200 changed files with 15153 additions and 12664 deletions

View File

@@ -1,33 +1,35 @@
/* Any copyright is dedicated to the Public Domain.
https://creativecommons.org/publicdomain/zero/1.0/ */
'use strict';
"use strict";
add_setup(async function () {});
add_task(async function test_Check_Creation() {
const currentWorkspaceUUID = gZenWorkspaces.activeWorkspace;
await gZenWorkspaces.createAndSaveWorkspace('Test Workspace 2');
await gZenWorkspaces.createAndSaveWorkspace("Test Workspace 2");
const workspaces = await gZenWorkspaces._workspaces();
ok(workspaces.length === 2, 'Two workspaces should exist.');
ok(
currentWorkspaceUUID !== workspaces[1].uuid,
'The new workspace should be different from the current one.'
Assert.strictEqual(workspaces.length, 2, "Two workspaces should exist.");
Assert.notStrictEqual(
currentWorkspaceUUID,
workspaces[1].uuid,
"The new workspace should be different from the current one."
);
let newTab = BrowserTestUtils.addTab(gBrowser, 'about:blank', {
let newTab = BrowserTestUtils.addTab(gBrowser, "about:blank", {
skipAnimation: true,
});
ok(newTab, 'New tab should be opened.');
ok(gBrowser.tabs.length === 2, 'There should be two tabs.');
ok(newTab, "New tab should be opened.");
Assert.strictEqual(gBrowser.tabs.length, 2, "There should be two tabs.");
BrowserTestUtils.removeTab(newTab);
await gZenWorkspaces.removeWorkspace(gZenWorkspaces.activeWorkspace);
const workspacesAfterRemove = await gZenWorkspaces._workspaces();
ok(workspacesAfterRemove.workspaces.length === 1, 'One workspace should exist.');
ok(
workspacesAfterRemove[0].uuid === currentWorkspaceUUID,
'The workspace should be the one we started with.'
Assert.strictEqual(workspacesAfterRemove.workspaces.length, 1, "One workspace should exist.");
Assert.strictEqual(
workspacesAfterRemove[0].uuid,
currentWorkspaceUUID,
"The workspace should be the one we started with."
);
ok(gBrowser.tabs.length === 2, 'There should be one tab.');
Assert.strictEqual(gBrowser.tabs.length, 2, "There should be one tab.");
});