Bug 1058797 - Intermittent test_303567.xul | Result logged after SimpleTest.finish(). r=mak

This commit is contained in:
Martijn Wargers 2014-09-04 16:21:24 +02:00
parent 59668e3e0f
commit edd71f51f2

View File

@ -68,6 +68,7 @@ function runTest()
}
waitForLivemarkLoad(aLivemark, function (aLivemark) {
aLivemarkData.loaded = true;
let nodes = aLivemark.getNodesForContainer({});
is(nodes.length, aLivemarkData.urls.length,
"Ensure all the livemark items were created.");
@ -78,9 +79,8 @@ function runTest()
PlacesUtils.bookmarks.removeItem(aLivemark.id);
if (aLivemark.feedURI.equals(LIVEMARKS[LIVEMARKS.length - 1].feedURI)) {
if (LIVEMARKS.every(lm => lm.loaded))
SimpleTest.finish();
}
});
}, function () {
is(true, false, "Should not fail adding a livemark");