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

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

    tests.push(test);
  });

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

    tests.push(test);
  });

  chrome.test.runTests(tests);
}
/**
 * Initializes and runs tests that verify the extension cannot query feature
 * states.
 * @param {Array<string>} enabledFeatures The list of enabled features.
 * @param {Array<string>} disabledFeatures The list of disabled features.
 */
Initializes and runs tests that verify the extension cannot query feature
states.
@param {Array} enabledFeatures The list of enabled features.
@param {Array} disabledFeatures The list of disabled features.
Initializes and runs tests that verify the extension cannot query feature states . @param { Array } enabledFeatures The list of enabled features . @param { Array } disabledFeatures The list of disabled features .
function runGetterTest(enabledFeatures, disabledFeatures) {
  var tests = [];
  enabledFeatures.forEach(function(feature) {
    var test = testGetFeatureNotAllowed.bind(null, feature);
    test.generatedName = "testIsEnabledNotAllowed_" + feature;
    tests.push(test);
  });
  disabledFeatures.forEach(function(feature) {
    var test = testGetFeatureNotAllowed.bind(null, feature);
    test.generatedName = "testIsDisabledNotAllowed_" + feature;
    tests.push(test);
  });
  chrome.test.runTests(tests);
}
function runGetterTest ( enabledFeatures , disabledFeatures ) { var tests = [ ] ; enabledFeatures . forEach ( function ( feature ) { var test = testGetFeatureNotAllowed . bind ( null , feature ) ; test . generatedName = "testIsEnabledNotAllowed_" + feature ; tests . push ( test ) ; } ) ; disabledFeatures . forEach ( function ( feature ) { var test = testGetFeatureNotAllowed . bind ( null , feature ) ; test . generatedName = "testIsDisabledNotAllowed_" + feature ; tests . push ( test ) ; } ) ; chrome . test . runTests ( tests ) ; }
Initializes and runs tests that verify the extension cannot query feature
 states.
Initializes and runs tests that verify the extension cannot query feature states .
// 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.