mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Bug 1372933 Relax time checks in browser_timeout_throttling_with_audio_playback.js back to previous levels. r=ehsan
This commit is contained in:
parent
43c18d7af3
commit
57c553c1a1
@ -24,11 +24,6 @@ const kMinTimeoutBackground = 100 * 1000 * 1000;
|
||||
|
||||
const kDelay = 10;
|
||||
|
||||
// Allow a very generous error range due to debug automation tests running
|
||||
// very slowly. This is still far below the configured background throttle
|
||||
// amount.
|
||||
const kAllowedError = 1000;
|
||||
|
||||
Services.scriptloader.loadSubScript(kPluginJS, this);
|
||||
|
||||
function* runTest(url) {
|
||||
@ -53,7 +48,7 @@ function* runTest(url) {
|
||||
}, delay);
|
||||
});
|
||||
});
|
||||
ok(timeout <= kDelay + kAllowedError, `Got the correct timeout (${timeout}`);
|
||||
ok(timeout <= kMinTimeoutBackground, `Got the correct timeout (${timeout})`);
|
||||
|
||||
// All done.
|
||||
yield BrowserTestUtils.removeTab(newTab);
|
||||
|
Loading…
Reference in New Issue
Block a user