Decrease load check intervals for this test, and increase the general browser-chrome test timeout (bug 428330) to try and avoid 'random' failures

This commit is contained in:
gavin@gavinsharp.com 2008-04-11 22:28:04 -07:00
parent f5086a376e
commit 9b9450defb
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ function test1Setup() {
// We'd like to use another load listener here, but error pages don't fire load events
contextMenu.showOnlyThisFrame();
intervalID = window.setInterval(testShowOnlyThisFrame, 3000);
intervalID = window.setInterval(testShowOnlyThisFrame, 1000);
}
function testShowOnlyThisFrame() {
@ -87,7 +87,7 @@ function test2Setup() {
gBrowser.selectedTab = test2tab;
intervalID = window.setInterval(testOpenFrameInTab, 3000);
intervalID = window.setInterval(testOpenFrameInTab, 1000);
}
function testOpenFrameInTab() {
@ -119,7 +119,7 @@ function test3Setup() {
test3window = contextMenu.openFrame();
ok(test3window instanceof Window, "openFrame() should return a window (non-null) ");
intervalID = window.setInterval(testOpenFrame, 3000);
intervalID = window.setInterval(testOpenFrame, 1000);
}
function testOpenFrame() {

View File

@ -149,7 +149,7 @@ testScope.prototype = {
// Check whether the test has completed every 3 seconds
const CHECK_INTERVAL = 3000;
// Test timeout (seconds)
const TIMEOUT_SECONDS = 15;
const TIMEOUT_SECONDS = 30;
const MAX_LOOP_COUNT = (TIMEOUT_SECONDS * 1000) / CHECK_INTERVAL;