Bug 926553 - Reduce the number of items in test_arrays.html to avoid timeouts indebug B2G emulators. r=ehsan

This commit is contained in:
Andrea Marchesini 2013-10-16 08:12:16 -04:00
parent 7bce2f0001
commit ec493bc5e5

View File

@ -45,15 +45,17 @@
}, cbError);
}
var itemNumber = 60;
function testStoreAdd() {
var objects = [];
for (var i = 0; i < 300; ++i) {
for (var i = 0; i < itemNumber; ++i) {
objects.push(i);
}
function testStoreAddInternal() {
if (!objects.length) {
ok(true, "We inserted 300 items");
ok(true, "We inserted " + itemNumber + " items");
runTest();
return;
}
@ -70,7 +72,7 @@
function testStoreGet() {
var objects = [];
for (var i = 1; i <= 300; ++i) {
for (var i = 1; i <= itemNumber; ++i) {
objects.push(i);
}