mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Depends on D54119 Differential Revision: https://phabricator.services.mozilla.com/D54265
26 lines
875 B
JavaScript
26 lines
875 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
// There are shutdown issues for which multiple rejections are left uncaught.
|
|
// See bug 1018184 for resolving these issues.
|
|
const { PromiseTestUtils } = ChromeUtils.import(
|
|
"resource://testing-common/PromiseTestUtils.jsm"
|
|
);
|
|
PromiseTestUtils.whitelistRejectionsGlobally(/File closed/);
|
|
|
|
// On debug test slave, it takes about 50s to run the test.
|
|
requestLongerTimeout(4);
|
|
|
|
add_task(async function() {
|
|
const ToolboxTask = await initBrowserToolboxTask();
|
|
await ToolboxTask.importFunctions({});
|
|
|
|
const hasCloseButton = await ToolboxTask.spawn(null, async () => {
|
|
/* global gToolbox */
|
|
return !!gToolbox.doc.getElementById("toolbox-close");
|
|
});
|
|
ok(!hasCloseButton, "Browser toolbox doesn't have a close button");
|
|
|
|
await ToolboxTask.destroy();
|
|
});
|