mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Bug 760905 - Change bounds of test_storage_queue.js to address orange; r=rnewman
This commit is contained in:
parent
bb189eab03
commit
7dec6ca6b3
@ -53,8 +53,11 @@ add_test(function test_queue_multiaddremove() {
|
||||
let items = [{test:"object"}, "teststring", 42];
|
||||
|
||||
// Two random numbers: how many items to queue and how many to remove.
|
||||
let num = Math.floor(Math.random() * 100 + 1);
|
||||
let rem = Math.floor(Math.random() * num + 1);
|
||||
// The next test relies on rem > 0.
|
||||
let num = Math.floor(Math.random() * 100 + 20);
|
||||
let rem = Math.floor(Math.random() * 15 + 5);
|
||||
do_check_true(rem < num);
|
||||
do_check_true(rem > 0);
|
||||
|
||||
// First insert all the items we will remove later.
|
||||
for (let i = 0; i < rem; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user