blob: 558be1a16c49b9854646cf324552df6207c31f9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* 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.importESModule(
"resource://testing-common/PromiseTestUtils.sys.mjs"
);
PromiseTestUtils.allowMatchingRejectionsGlobally(/File closed/);
// On debug test machine, it takes about 50s to run the test.
requestLongerTimeout(4);
// Test that DevTools panels are rendered in "rtl" (right-to-left) in the Browser Toolbox.
add_task(async function () {
await pushPref("intl.l10n.pseudo", "bidi");
const ToolboxTask = await initBrowserToolboxTask();
await ToolboxTask.importFunctions({});
const dir = await ToolboxTask.spawn(null, async () => {
/* global gToolbox */
const inspector = await gToolbox.selectTool("inspector");
return inspector.panelDoc.dir;
});
is(dir, "rtl", "Inspector panel has the expected direction");
await ToolboxTask.destroy();
});
|