mirror of
https://github.com/zen-browser/desktop.git
synced 2025-12-25 15:48:59 +00:00
test: Enable workspaces when doing tests, b=(no-bug), c=tests, workspaces
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
["browser_zen_workspaces.js"]
|
||||
["workspaces/browser_basic_workspaces.js"]
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
https://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
'use strict';
|
||||
|
||||
add_task(async function test_TODO() {
|
||||
ok(true, 'TODO: implement the test');
|
||||
});
|
||||
13
src/zen/tests/workspaces/browser_basic_workspaces.js
Normal file
13
src/zen/tests/workspaces/browser_basic_workspaces.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
https://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
'use strict';
|
||||
|
||||
add_setup(async function () {
|
||||
await ZenWorkspaces.createAndSaveWorkspace('Test Workspace 2');
|
||||
});
|
||||
|
||||
add_task(async function test_Check_Creation() {
|
||||
const workspaces = await ZenWorkspaces._workspaces();
|
||||
ok(workspaces.workspaces.length, 2);
|
||||
});
|
||||
@@ -678,7 +678,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
|
||||
get workspaceEnabled() {
|
||||
if (typeof this._workspaceEnabled === 'undefined') {
|
||||
this._workspaceEnabled = !gZenUIManager.testingEnabled && this.shouldHaveWorkspaces;
|
||||
this._workspaceEnabled = this.shouldHaveWorkspaces;
|
||||
}
|
||||
return this._workspaceEnabled && !window.closed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user