2 var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/";
4 rootDir + "file_bug234628-5.html",
10 function afterOpen() {
12 content.document.documentElement.textContent.indexOf("\u20AC"),
14 "Parent doc should be windows-1252 initially"
18 content.frames[0].document.documentElement.textContent.indexOf("\u20AC"),
20 "Child doc should be utf-16 initially"
24 function afterChangeCharset() {
26 content.document.documentElement.textContent.indexOf("\u20AC"),
28 "Parent doc should be windows-1252 subsequently"
31 content.frames[0].document.documentElement.textContent.indexOf("\u20AC"),
33 "Child doc should decode as utf-16 subsequently"
37 content.document.characterSet,
39 "Parent doc should report windows-1252 subsequently"
42 content.frames[0].document.characterSet,
44 "Child doc should report UTF-16LE subsequently"