blob: 567fb86ec8f8c4f3038915fe4c52463619870cfe (
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
|
async function testPageInfo() {
await BrowserTestUtils.withNewTab("https://example.com", async function(
browser
) {
let pageInfo = BrowserPageInfo();
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();
}
});
|