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

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

    tests.push(test);
  });

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

    tests.push(test);
  });

  chrome.test.runTests(tests);
}
/**
 * Initializes and runs tests that verify the extension cannot modify features.
 * In the test the extension tries to flip the feature values.
 * Note that the tests only verify that set method fails. They don't verify the
 * feature values remain unchanged. That is done by the Chrome side of the test.
 * @param {Array<string>} enabledFeatures The list of features that are
 *     enabled at the start of the test.
 * @param {Array<string>} disabledFeatures The list of features that are
 *     disabled at the start of the test.
 */
Initializes and runs tests that verify the extension cannot modify features.
In the test the extension tries to flip the feature values.
Note that the tests only verify that set method fails. They don't verify the
feature values remain unchanged. That is done by the Chrome side of the test.
@param {Array} enabledFeatures The list of features that are
enabled at the start of the test.
@param {Array} disabledFeatures The list of features that are
disabled at the start of the test.
Initializes and runs tests that verify the extension cannot modify features . In the test the extension tries to flip the feature values . Note that the tests only verify that set method fails . They don ' t verify the feature values remain unchanged . That is done by the Chrome side of the test . @param { Array } enabledFeatures The list of features that are enabled at the start of the test . @param { Array } disabledFeatures The list of features that are disabled at the start of the test .
function runSetterTest(enabledFeatures, disabledFeatures) {
  var tests = [];
  enabledFeatures.forEach(function(feature) {
    var test = testSetFeatureNotAllowed.bind(null, feature, false);
    test.generatedName = "testDisableNotAllowed_" + feature;
    tests.push(test);
  });
  disabledFeatures.forEach(function(feature) {
    var test = testSetFeatureNotAllowed.bind(null, feature, true);
    test.generatedName = "testEnableNotAllowed_" + feature;
    tests.push(test);
  });
  chrome.test.runTests(tests);
}
function runSetterTest ( enabledFeatures , disabledFeatures ) { var tests = [ ] ; enabledFeatures . forEach ( function ( feature ) { var test = testSetFeatureNotAllowed . bind ( null , feature , false ) ; test . generatedName = "testDisableNotAllowed_" + feature ; tests . push ( test ) ; } ) ; disabledFeatures . forEach ( function ( feature ) { var test = testSetFeatureNotAllowed . bind ( null , feature , true ) ; test . generatedName = "testEnableNotAllowed_" + feature ; tests . push ( test ) ; } ) ; chrome . test . runTests ( tests ) ; }
Initializes and runs tests that verify the extension cannot modify features.
Initializes and runs tests that verify the extension cannot modify features .
// 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.