Bug 817302 - Intermittent test_contacts_basics.html | Test timed out. r=bent

This commit is contained in:
Gregor Wagner 2012-12-05 12:00:09 -08:00
parent 366d00605f
commit 432329b83a

View File

@ -844,8 +844,8 @@ var steps = [
req.onerror = onFailure;
},
function () {
ok(true, "Adding 100 contacts");
for (var i=0; i<99; i++) {
ok(true, "Adding 20 contacts");
for (var i=0; i<19; i++) {
createResult1 = new mozContact();
createResult1.init(properties1);
req = mozContacts.save(createResult1);
@ -868,7 +868,7 @@ var steps = [
ok(true, "Retrieving all contacts");
req = mozContacts.find({});
req.onsuccess = function () {
ok(req.result.length == 100, "100 Entries.");
ok(req.result.length == 20, "20 Entries.");
next();
}
req.onerror = onFailure;
@ -902,8 +902,8 @@ var steps = [
filterValue: properties1.name[0].substring(0, 4)};
req = mozContacts.find(options);
req.onsuccess = function () {
ok(req.result.length == 100, "100 Entries.");
checkContacts(createResult1, req.result[99]);
ok(req.result.length == 20, "20 Entries.");
checkContacts(createResult1, req.result[19]);
next();
}
req.onerror = onFailure;