blob: 13a7a2a82cc61a1ae235f1053662df6475abb158 (
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
30
31
32
33
34
35
36
|
function test() {
var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/";
runCharsetTest(
rootDir + "file_bug673087-2.html",
afterOpen,
afterChangeCharset
);
}
function afterOpen() {
is(
content.document.documentElement.textContent.indexOf("\uFFFD"),
0,
"Doc should decode as replacement initially"
);
is(
content.document.characterSet,
"replacement",
"Doc should report replacement initially"
);
}
function afterChangeCharset() {
is(
content.document.documentElement.textContent.indexOf("\uFFFD"),
0,
"Doc should decode as replacement subsequently"
);
is(
content.document.characterSet,
"replacement",
"Doc should report replacement subsequently"
);
}
|