gEM.addDownloads(addonsArray, addonsArray.length, true); 
gEM.addDownloads(addonsArray, addonsArray.length, null); 
function run_test_pt3() {  // Install the new items.  var addonsArray = [];  for (var i = 0; i < ADDONS.length; i++) {    addonsArray.push(ADDONS[i].newItem);  }  dump("\n\n*** UPDATING " + addonsArray.length + " ITEMS\n\n");  // updateListener will call run_test_pt4().  next_test = run_test_pt4;  // Here, we have some bad items that try to update.  Pepto-Bismol time.  try {    gEM.addDownloads(addonsArray, addonsArray.length, true);    do_throw("Shouldn't reach here!");  } catch (e if (e instanceof Components.interfaces.nsIException &&                 e.result == Components.results.NS_ERROR_ILLEGAL_VALUE)) {    // do nothing, this is good  }  for (i = addonsArray.length - 1; i >= 0; i--) {    if (!addonsArray[i]) {      addonsArray.splice(i, 1);    }  }  do_check_true(addonsArray.length > 0);  gEM.addDownloads(addonsArray, addonsArray.length, true);}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/dda8b3a65f2f56f7f0aed5a3b3adbf99a2ffb743/test_bug299716.js/clean/toolkit/mozapps/extensions/test/unit/test_bug299716.js