mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 831404 - More attempts to fix intermittent failure; r=orange
This commit is contained in:
parent
c3e85d5e94
commit
6c8721df14
@ -668,11 +668,11 @@ add_test(function test_polling_implicit_acceptance() {
|
|||||||
|
|
||||||
// Redefine intervals with shorter, test-friendly values.
|
// Redefine intervals with shorter, test-friendly values.
|
||||||
Object.defineProperty(policy, "POLL_INTERVAL_MSEC", {
|
Object.defineProperty(policy, "POLL_INTERVAL_MSEC", {
|
||||||
value: 1000,
|
value: 250,
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.defineProperty(policy, "IMPLICIT_ACCEPTANCE_INTERVAL_MSEC", {
|
Object.defineProperty(policy, "IMPLICIT_ACCEPTANCE_INTERVAL_MSEC", {
|
||||||
value: 3000,
|
value: 700,
|
||||||
});
|
});
|
||||||
|
|
||||||
let count = 0;
|
let count = 0;
|
||||||
@ -707,7 +707,7 @@ add_test(function test_polling_implicit_acceptance() {
|
|||||||
listener.lastNotifyRequest.onUserNotifyComplete();
|
listener.lastNotifyRequest.onUserNotifyComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (delta <= (4000)) {
|
if (delta <= (policy.IMPLICIT_ACCEPTANCE_INTERVAL_MSEC + policy.POLL_INTERVAL_MSEC)) {
|
||||||
do_check_false(policy.dataSubmissionPolicyAccepted);
|
do_check_false(policy.dataSubmissionPolicyAccepted);
|
||||||
do_check_eq(listener.requestDataUploadCount, 0);
|
do_check_eq(listener.requestDataUploadCount, 0);
|
||||||
} else if (count > 3) {
|
} else if (count > 3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user