gecko/browser/base/content/test/general/browser_bug633691.js
Valentin Tsatskin ab0f261a96 Bug 968509 - Move about:certerror from components to content. r=Unfocused
--HG--
rename : browser/components/certerror/content/aboutCertError.css => browser/base/content/aboutcerterror/aboutCertError.css
rename : browser/components/certerror/content/aboutCertError.xhtml => browser/base/content/aboutcerterror/aboutCertError.xhtml
rename : browser/components/certerror/test/browser_bug431826.js => browser/base/content/test/general/browser_bug431826.js
rename : browser/components/certerror/test/browser_bug633691.js => browser/base/content/test/general/browser_bug633691.js
2014-04-03 00:39:02 -07:00

26 lines
888 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
function test() {
waitForExplicitFinish();
gBrowser.selectedTab = gBrowser.addTab();
// Open a html page with about:certerror in an iframe
window.content.addEventListener("load", testIframeCert, true);
content.location = "data:text/html,<iframe width='700' height='700' src='about:certerror'></iframe>";
}
function testIframeCert() {
window.content.removeEventListener("load", testIframeCert, true);
// Confirm that the expert section is hidden
var doc = gBrowser.contentDocument.getElementsByTagName('iframe')[0].contentDocument;
var eC = doc.getElementById("expertContent");
ok(eC, "Expert content should exist")
ok(eC.hasAttribute("hidden"), "Expert content should be hidded by default");
// Clean up
gBrowser.removeCurrentTab();
finish();
}