fix up tests

This commit is contained in:
Dão Gottwald
2010-03-13 17:55:44 +01:00
parent 91af974279
commit 0ae2a73e51
3 changed files with 13 additions and 13 deletions

View File

@@ -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() {