Bug 763894 - Increase the fuzzy comparison of how much the idle time increased to 1.5 seconds instead of 1 second to account for the fuzziness of WinXP PGO

This commit is contained in:
Phil Ringnalda 2012-08-18 23:08:49 -07:00
parent a08361ddc1
commit 04ffb8c2c0

View File

@ -166,8 +166,8 @@ function testIdleTime()
var timePassed = Date.now() - startTimeStamp; var timePassed = Date.now() - startTimeStamp;
var idleTimeDiff = newIdleTime - idleTime; var idleTimeDiff = newIdleTime - idleTime;
// 1 second leniency. // 1.5 second leniency.
ok(timeDiff < 1000, "The idle time should have increased by roughly the " + ok(timeDiff < 1500, "The idle time should have increased by roughly the " +
"amount of time it took for the timeout to fire. " + "amount of time it took for the timeout to fire. " +
"You didn't touch the mouse or keyboard during the " + "You didn't touch the mouse or keyboard during the " +
"test did you?"); "test did you?");