2 var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/";
4 rootDir + "file_bug234628-7.html",
11 function afterOpen() {
13 content.document.documentElement.textContent.indexOf("\u20AC"),
15 "Parent doc should be windows-1252 initially"
19 content.frames[0].document.documentElement.textContent.indexOf("\u20AC"),
21 "Child doc should be utf-8 initially"
25 function afterChangeCharset() {
27 content.document.documentElement.textContent.indexOf("\u0402"),
29 "Parent doc should decode as windows-1251 subsequently"
32 content.frames[0].document.documentElement.textContent.indexOf(
36 "Child doc should decode as windows-1251 subsequently"
40 content.document.characterSet,
42 "Parent doc should report windows-1251 subsequently"
45 content.frames[0].document.characterSet,
47 "Child doc should report windows-1251 subsequently"