fix up tests
This commit is contained in:
@@ -7,17 +7,17 @@ var menu;
|
||||
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
|
||||
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
|
||||
// Navigate to a normal site
|
||||
gBrowser.addEventListener("load", testNormal, false);
|
||||
gBrowser.addEventListener("DOMContentLoaded", testNormal, false);
|
||||
content.location = "http://example.com/";
|
||||
}
|
||||
|
||||
function testNormal() {
|
||||
gBrowser.removeEventListener("load", testNormal, false);
|
||||
|
||||
gBrowser.removeEventListener("DOMContentLoaded", testNormal, false);
|
||||
|
||||
// open the menu, to force it to update
|
||||
menu = document.getElementById("menu_HelpPopup");
|
||||
ok(menu, "Help menu should exist!");
|
||||
@@ -38,7 +38,7 @@ function testNormal_PopupListener() {
|
||||
// Now launch the phishing test. Can't use onload here because error pages don't
|
||||
// fire normal load events.
|
||||
content.location = "http://www.mozilla.com/firefox/its-a-trap.html";
|
||||
window.setTimeout(testPhishing, 2000);
|
||||
setTimeout(testPhishing, 2000);
|
||||
}
|
||||
|
||||
function testPhishing() {
|
||||
|
||||
Reference in New Issue
Block a user