blob: 2982a631412457d3209267e08d73729da8e5d954 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* Test that the charset menu is properly enabled when swapping browsers. */
add_task(async function test() {
function charsetMenuEnabled() {
return !document
.getElementById("repair-text-encoding")
.hasAttribute("disabled");
}
const PAGE = "data:text/html,<!DOCTYPE html><body>ASCII-only";
let tab = await BrowserTestUtils.openNewForegroundTab({
gBrowser,
url: PAGE,
waitForStateStop: true,
});
ok(!charsetMenuEnabled(), "should have a charset menu here");
BrowserTestUtils.removeTab(tab);
});
|