Bug 702463 - Increasing the timeout of the tests due to the presence of multiple refresh drivers. r=ehsan

This commit is contained in:
Jared Wein 2012-04-30 13:44:55 -04:00
parent 968bd575ff
commit 1504e6e3d5
6 changed files with 18 additions and 18 deletions

View File

@ -182,7 +182,7 @@ function testDefaultHandling(aWin, andThen) {
exec();
else
andThen();
}, 0);
}, 20);
}
["horizontal", "vertical"].forEach(function(aAxis) {
@ -253,7 +253,7 @@ window.onload = function () {
win.close();
SimpleTest.finish();
});
}, 0);
}, 20);
}
}

View File

@ -93,8 +93,8 @@ function runTest() {
}
// Revert the effect.
sendTouchpadScrollMotion(scrollbox, -1, ctrlKey, isMomentum);
setTimeout(nextTest, 0);
}, 0);
setTimeout(nextTest, 20);
}, 20);
}
nextTest();
}, win);

View File

@ -18,7 +18,7 @@ function runTest() {
function execNext() {
try {
tests.next();
setTimeout(execNext, 0);
setTimeout(execNext, 20);
} catch (e) {}
}
execNext();

View File

@ -94,16 +94,16 @@ SimpleTest.waitForFocus(function() {
win.close();
SpecialPowers.clearUserPref(smoothScrollPref);
SimpleTest.finish();
}, 0);
}, 0);
}, 0);
}, 0);
}, 0);
}, 0);
}, 0);
}, 0);
}, 0);
}, 0);
}, 20);
}, 20);
}, 20);
}, 20);
}, 20);
}, 20);
}, 20);
}, 20);
}, 20);
}, 20);
}, win);
</script>

View File

@ -36,7 +36,7 @@ function runTests() {
// send up arrow key event
sendKey("UP");
setTimeout("finish();", 0);
setTimeout("finish();", 20);
}
function finish() {

View File

@ -161,8 +161,8 @@ function testRichListbox(id, andThen)
helper();
else
andThen();
}, 0);
}, 0);
}, 20);
}, 20);
}
// richlistbox currently uses native XUL scrolling, so the "line"