B2G/gecko/toolkit/mozapps/extensions/test/xpcshell/head_addons.js
/**
 * Check that an array of actual add-ons is the same as an array of
 * expected add-ons.
 *
 * @param  aActualAddons
 *         The array of actual add-ons to check.
 * @param  aExpectedAddons
 *         The array of expected add-ons to check against.
 * @param  aProperties
 *         An array of properties to check.
 */
Check that an array of actual add-ons is the same as an array of
expected add-ons.

@param  aActualAddons
The array of actual add-ons to check.
@param  aExpectedAddons
The array of expected add-ons to check against.
@param  aProperties
An array of properties to check.
Check that an array of actual add - ons is the same as an array of expected add - ons . @param aActualAddons The array of actual add - ons to check . @param aExpectedAddons The array of expected add - ons to check against . @param aProperties An array of properties to check .
function do_check_addons(aActualAddons, aExpectedAddons, aProperties) {
  do_check_neq(aActualAddons, null);
  do_check_eq(aActualAddons.length, aExpectedAddons.length);
  for (let i = 0; i < aActualAddons.length; i++)
    do_check_addon(aActualAddons[i], aExpectedAddons[i], aProperties);
}
function do_check_addons ( aActualAddons , aExpectedAddons , aProperties ) { do_check_neq ( aActualAddons , null ) ; do_check_eq ( aActualAddons . length , aExpectedAddons . length ) ; for ( let i = 0 ; i < aActualAddons . length ; i ++ ) do_check_addon ( aActualAddons [ i ] , aExpectedAddons [ i ] , aProperties ) ; }
Check that an array of actual add-ons is the same as an array of
 expected add-ons.
Check that an array of actual add - ons is the same as an array of expected add - ons .