Change checkComplete in test_referer.html to check whether all tests are complete, rather than just the last. (Bug 600458) r=doublec a=test-fix

This commit is contained in:
L. David Baron 2010-10-07 12:35:59 +13:00
parent 4fb016a01e
commit 1f3fa6c875

View File

@ -21,14 +21,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=584480
var media = [];
function checkComplete() {
complete = true;
for (var i=0; i<media.length; ++i) {
complete = media[i]._complete;
if (!media[i]._complete) {
return;
}
}
if (complete) {
SimpleTest.finish();
}
SimpleTest.finish();
}
function loadError(evt) {