Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/"; |
michael@0 | 2 | |
michael@0 | 3 | function test() { |
michael@0 | 4 | waitForExplicitFinish(); |
michael@0 | 5 | |
michael@0 | 6 | gBrowser.selectedTab = gBrowser.addTab(rootDir + "file_bug852909.png"); |
michael@0 | 7 | gBrowser.selectedBrowser.addEventListener("load", image, true); |
michael@0 | 8 | } |
michael@0 | 9 | |
michael@0 | 10 | function image(event) { |
michael@0 | 11 | if (event.target != gBrowser.contentDocument) { |
michael@0 | 12 | return; |
michael@0 | 13 | } |
michael@0 | 14 | gBrowser.selectedBrowser.removeEventListener("load", image, true); |
michael@0 | 15 | |
michael@0 | 16 | ok(!gBrowser.docShell.mayEnableCharacterEncodingMenu, "Docshell should say the menu should be disabled for images."); |
michael@0 | 17 | |
michael@0 | 18 | gBrowser.removeCurrentTab(); |
michael@0 | 19 | gBrowser.selectedTab = gBrowser.addTab(rootDir + "file_bug852909.pdf"); |
michael@0 | 20 | gBrowser.selectedBrowser.addEventListener("load", pdf, true); |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | function pdf(event) { |
michael@0 | 24 | if (event.target != gBrowser.contentDocument) { |
michael@0 | 25 | return; |
michael@0 | 26 | } |
michael@0 | 27 | gBrowser.selectedBrowser.removeEventListener("load", pdf, true); |
michael@0 | 28 | |
michael@0 | 29 | ok(!gBrowser.docShell.mayEnableCharacterEncodingMenu, "Docshell should say the menu should be disabled for PDF.js."); |
michael@0 | 30 | |
michael@0 | 31 | gBrowser.removeCurrentTab(); |
michael@0 | 32 | finish(); |
michael@0 | 33 | } |