mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-31 12:51:59 +00:00
38 lines
979 B
JavaScript
38 lines
979 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
https://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
add_task(async function test_Empty_Tab_Transparent() {
|
|
const emptyTab = gZenWorkspaces._emptyTab;
|
|
ok(emptyTab, "Empty tab should exist");
|
|
ok(emptyTab.parentElement, "Empty tab should be in the DOM");
|
|
ok(
|
|
emptyTab.hasAttribute("zen-empty-tab"),
|
|
"Empty tab should have the zen-empty-tab attribute"
|
|
);
|
|
ok(
|
|
emptyTab.linkedBrowser.hasAttribute("transparent"),
|
|
"Empty tab should have the transparent attribute"
|
|
);
|
|
});
|
|
|
|
add_task(async function test_Empty_Tab_Always_First() {
|
|
ok(
|
|
gBrowser.tabs[0].hasAttribute("zen-empty-tab"),
|
|
"First tab should be the empty tab"
|
|
);
|
|
await BrowserTestUtils.withNewTab(
|
|
{
|
|
gBrowser,
|
|
url: "https://example.com",
|
|
},
|
|
async () => {
|
|
ok(
|
|
gBrowser.tabs[0].hasAttribute("zen-empty-tab"),
|
|
"First tab should be the empty tab"
|
|
);
|
|
}
|
|
);
|
|
});
|