function runSetterTest(initiallyEnabledFeatures, initiallyDisabledFeatures) {
  var tests = [];

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

    tests.push(test);
  });

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

    tests.push(test);
  });

  chrome.test.runTests(tests);
}
/**
 * Initializes and runs tests that verify that the extension is able to use
 * features' set method. The tests try to flip feature states and verify that
 * the setter methods do not cause API errors. The tests don't verify that the
 * feature state actually changes as a result of setter calls. That should be
 * done in Chrome part of test, after the test extension is done.
 * @param {Array<string>} initiallyEnabledFeatures The list of features that
 *     are enabled when the test starts.
 * @param {Array<string>} initiallyDisabledFeatures The list of features that
 *     are disabled when the test starts.
 */
Initializes and runs tests that verify that the extension is able to use
features' set method. The tests try to flip feature states and verify that
the setter methods do not cause API errors. The tests don't verify that the
feature state actually changes as a result of setter calls. That should be
done in Chrome part of test, after the test extension is done.
@param {Array} initiallyEnabledFeatures The list of features that
are enabled when the test starts.
@param {Array} initiallyDisabledFeatures The list of features that
are disabled when the test starts.
Initializes and runs tests that verify that the extension is able to use features ' set method . The tests try to flip feature states and verify that the setter methods do not cause API errors . The tests don ' t verify that the feature state actually changes as a result of setter calls . That should be done in Chrome part of test after the test extension is done . @param { Array } initiallyEnabledFeatures The list of features that are enabled when the test starts . @param { Array } initiallyDisabledFeatures The list of features that are disabled when the test starts .
function runSetterTest(initiallyEnabledFeatures, initiallyDisabledFeatures) {
  var tests = [];
  initiallyEnabledFeatures.forEach(function(feature) {
    var test = testEnableFeature.bind(null, feature, false);
    test.generatedName = "testDisable_" + feature;
    tests.push(test);
  });
  initiallyDisabledFeatures.forEach(function(feature) {
    var test = testEnableFeature.bind(null, feature, true);
    test.generatedName = "testEnable_" + feature;
    tests.push(test);
  });
  chrome.test.runTests(tests);
}
function runSetterTest ( initiallyEnabledFeatures , initiallyDisabledFeatures ) { var tests = [ ] ; initiallyEnabledFeatures . forEach ( function ( feature ) { var test = testEnableFeature . bind ( null , feature , false ) ; test . generatedName = "testDisable_" + feature ; tests . push ( test ) ; } ) ; initiallyDisabledFeatures . forEach ( function ( feature ) { var test = testEnableFeature . bind ( null , feature , true ) ; test . generatedName = "testEnable_" + feature ; tests . push ( test ) ; } ) ; chrome . test . runTests ( tests ) ; }
Initializes and runs tests that verify that the extension is able to use
 features' set method.
Initializes and runs tests that verify that the extension is able to use features ' set method .
// 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.