зеркало из https://github.com/mozilla/gecko-dev.git
Bug 957952 - Hopefully fix browser_net_timing-division.js by waiting for the first request to finish. r=vporof
This commit is contained in:
Родитель
a56630221c
Коммит
305e09b3ca
|
@ -52,7 +52,13 @@ function test() {
|
|||
teardown(aMonitor).then(finish);
|
||||
});
|
||||
|
||||
aDebuggee.performRequests(1);
|
||||
window.setTimeout(() => aDebuggee.performRequests(1), 2000);
|
||||
aDebuggee.get(Math.random(), () => {
|
||||
// Timeout needed for having enough divisions on the time scale.
|
||||
setTimeout(() => {
|
||||
aDebuggee.get(Math.random(), () => {
|
||||
// Done.
|
||||
});
|
||||
}, 3000);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче