Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

function test() {
runCharsetTest(
rootDir + "file_bug234628-1.html",
afterOpen,
afterChangeCharset
);
}
function afterOpen() {
is(
content.document.documentElement.textContent.indexOf("\u20AC"),
129,
"Parent doc should be windows-1252 initially"
);
is(
content.frames[0].document.documentElement.textContent.indexOf("\u20AC"),
85,
"Child doc should be windows-1252 initially"
);
}
function afterChangeCharset() {
is(
content.document.documentElement.textContent.indexOf("\u20AC"),
129,
"Parent doc should be windows-1252 subsequently"
);
is(
content.frames[0].document.documentElement.textContent.indexOf("\u20AC"),
85,
"Child doc should be windows-1252 subsequently"
);
is(
content.document.characterSet,
"windows-1252",
"Parent doc should report windows-1252 subsequently"
);
is(
content.frames[0].document.characterSet,
"windows-1252",
"Child doc should report windows-1252 subsequently"
);
}