blob: 677a58516e09f5ff859d039b0baaa579a94eaa65 (
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
|
async function testPageInfo() {
await BrowserTestUtils.withNewTab("https://example.com", async function () {
let pageInfo = BrowserCommands.pageInfo();
await BrowserTestUtils.waitForEvent(pageInfo, "page-info-init");
is(
getComputedStyle(pageInfo.document.documentElement).direction,
"rtl",
"Should be RTL"
);
ok(true, "Didn't assert or crash");
pageInfo.close();
});
}
add_task(async function test_page_info_rtl() {
await SpecialPowers.pushPrefEnv({ set: [["intl.l10n.pseudo", "bidi"]] });
for (let useOverlayScrollbars of [0, 1]) {
info("Testing with overlay scrollbars: " + useOverlayScrollbars);
await SpecialPowers.pushPrefEnv({
set: [["ui.useOverlayScrollbars", useOverlayScrollbars]],
});
await testPageInfo();
}
});
|