2 waitForExplicitFinish();
4 var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/";
5 gBrowser.selectedTab = gBrowser.addTab(rootDir + "file_bug234628-8.html");
6 gBrowser.selectedBrowser.addEventListener("load", afterOpen, true);
9 function afterOpen(event) {
10 if (event.target != gBrowser.contentDocument) {
14 gBrowser.selectedBrowser.removeEventListener("load", afterOpen, true);
16 is(gBrowser.contentDocument.documentElement.textContent.indexOf('\u0402'), 156, "Parent doc should be windows-1251");
18 is(gBrowser.contentDocument.getElementsByTagName("iframe")[0].contentDocument.documentElement.textContent.indexOf('\u0402'), 99, "Child doc should be windows-1251");
20 gBrowser.removeCurrentTab();