B2G/gecko/toolkit/mozapps/extensions/test/xpcshell/test_checkcompatibility.js
/**
 * Checks that the add-ons are enabled as expected.
 * @param   overridden
 *          A boolean indicating that compatibility checking is overridden
 * @param   a1
 *          The Addon for addon1@tests.mozilla.org
 * @param   a2
 *          The Addon for addon2@tests.mozilla.org
 * @param   a3
 *          The Addon for addon3@tests.mozilla.org
 * @param   a4
 *          The Addon for addon4@tests.mozilla.org
 * @param   a5
 *          The Addon for addon5@tests.mozilla.org
 */
Checks that the add-ons are enabled as expected.
Checks that the add - ons are enabled as expected .
function check_state(overridden, a1, a2, a3, a4, a5) {
  do_check_neq(a1, null);
  do_check_false(a1.isActive);
  do_check_false(a1.isCompatible);
  do_check_neq(a2, null);
  if (overridden)
    do_check_true(a2.isActive);
  else
    do_check_false(a2.isActive);
  do_check_false(a2.isCompatible);
  do_check_neq(a3, null);
  if (overridden)
    do_check_true(a3.isActive);
  else
    do_check_false(a3.isActive);
  do_check_false(a3.isCompatible);
  do_check_neq(a4, null);
  do_check_true(a4.isActive);
  do_check_true(a4.isCompatible);
  do_check_neq(a5, null);
  do_check_true(a5.isActive);
  do_check_true(a5.isCompatible);
}
function check_state ( overridden , a1 , a2 , a3 , a4 , a5 ) { do_check_neq ( a1 , null ) ; do_check_false ( a1 . isActive ) ; do_check_false ( a1 . isCompatible ) ; do_check_neq ( a2 , null ) ; if ( overridden ) do_check_true ( a2 . isActive ) ; else do_check_false ( a2 . isActive ) ; do_check_false ( a2 . isCompatible ) ; do_check_neq ( a3 , null ) ; if ( overridden ) do_check_true ( a3 . isActive ) ; else do_check_false ( a3 . isActive ) ; do_check_false ( a3 . isCompatible ) ; do_check_neq ( a4 , null ) ; do_check_true ( a4 . isActive ) ; do_check_true ( a4 . isCompatible ) ; do_check_neq ( a5 , null ) ; do_check_true ( a5 . isActive ) ; do_check_true ( a5 . isCompatible ) ; }
Checks that the add-ons are enabled as expected.
Checks that the add - ons are enabled as expected .