function runGetterTest(enabledFeatures, disabledFeatures) {
  var tests= [];

  enabledFeatures.forEach(function(feature) {
    var test = testFeatureIsEnabled.bind(null, feature, true);
    // This is the name that will show up in the apitest framework's logging
    // output for anonymous functions.
    test.generatedName = "testIsEnabled_" + feature;

    tests.push(test);
  });

  disabledFeatures.forEach(function(feature) {
    var test = testFeatureIsEnabled.bind(null, feature, false);
    // This is the name that will show up in the apitest framework's logging
    // output for anonymous functions.
    test.generatedName = "testIsDisabled_" + feature;

    tests.push(test);
  });

  chrome.test.runTests(tests);
}
/**
 * Initializes and runs tests that get feature statuses.
 * @param {Array<string>} enabledFeatures The list of features that are
 *     expected to be enabled.
 * @param {Array<string>} disabledFeatures The list of features that are
 *     expected to be disabled.
 */
Initializes and runs tests that get feature statuses.
@param {Array} enabledFeatures The list of features that are
expected to be enabled.
@param {Array} disabledFeatures The list of features that are
expected to be disabled.
Initializes and runs tests that get feature statuses . @param { Array } enabledFeatures The list of features that are expected to be enabled . @param { Array } disabledFeatures The list of features that are expected to be disabled .
function runGetterTest(enabledFeatures, disabledFeatures) {
  var tests= [];
  enabledFeatures.forEach(function(feature) {
    var test = testFeatureIsEnabled.bind(null, feature, true);
    test.generatedName = "testIsEnabled_" + feature;
    tests.push(test);
  });
  disabledFeatures.forEach(function(feature) {
    var test = testFeatureIsEnabled.bind(null, feature, false);
    test.generatedName = "testIsDisabled_" + feature;
    tests.push(test);
  });
  chrome.test.runTests(tests);
}
function runGetterTest ( enabledFeatures , disabledFeatures ) { var tests = [ ] ; enabledFeatures . forEach ( function ( feature ) { var test = testFeatureIsEnabled . bind ( null , feature , true ) ; test . generatedName = "testIsEnabled_" + feature ; tests . push ( test ) ; } ) ; disabledFeatures . forEach ( function ( feature ) { var test = testFeatureIsEnabled . bind ( null , feature , false ) ; test . generatedName = "testIsDisabled_" + feature ; tests . push ( test ) ; } ) ; chrome . test . runTests ( tests ) ; }
Initializes and runs tests that get feature statuses.
Initializes and runs tests that get feature statuses .
// This is the name that will show up in the apitest framework's logging // output for anonymous functions. // This is the name that will show up in the apitest framework's logging // output for anonymous functions.