rem: gEM.addDownloads(addonsArray, addonsArray.length, true); 
add: gEM.addDownloads(addonsArray, addonsArray.length, null); 
context: 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);}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/8fbb3c4529be06f9a8ccc6dda8d7cc063fd2d97a/test_bug299716.js/buggy/toolkit/mozapps/extensions/test/unit/test_bug299716.js