Bug 957952 - Hopefully fix browser_net_timing-division.js by waiting for the first request to finish. r=vporof

This commit is contained in:
Victor Porof 2014-06-23 22:00:04 -04:00
parent 43f3dec08a
commit b1fd5a67cb

View File

@ -52,7 +52,13 @@ function test() {
teardown(aMonitor).then(finish); teardown(aMonitor).then(finish);
}); });
aDebuggee.performRequests(1); aDebuggee.get(Math.random(), () => {
window.setTimeout(() => aDebuggee.performRequests(1), 2000); // Timeout needed for having enough divisions on the time scale.
setTimeout(() => {
aDebuggee.get(Math.random(), () => {
// Done.
});
}, 3000);
});
}); });
} }