function testFeatureIsEnabled(featureName, expectedIsEnabled) {
  chrome.accessibilityFeatures[featureName].get(
      {},
      function(result) {
        chrome.test.assertTrue(!!result);
        chrome.test.assertEq(expectedIsEnabled,
                             result.value,
                             "Unexpected value for feature " + featureName);
        chrome.test.succeed();
      });
}
/**
 * Tests that the extension is able to query feature status and that the feature
 * status is as expected.
 * @param {string} featureName The boolean feature to be queried.
 * @param {boolean} expectedValue The expected value of the feature.
 */
Tests that the extension is able to query feature status and that the feature
status is as expected.
@param {string} featureName The boolean feature to be queried.
@param {boolean} expectedValue The expected value of the feature.
Tests that the extension is able to query feature status and that the feature status is as expected . @param { string } featureName The boolean feature to be queried . @param { boolean } expectedValue The expected value of the feature .
function testFeatureIsEnabled(featureName, expectedIsEnabled) {
  chrome.accessibilityFeatures[featureName].get(
      {},
      function(result) {
        chrome.test.assertTrue(!!result);
        chrome.test.assertEq(expectedIsEnabled,
                             result.value,
                             "Unexpected value for feature " + featureName);
        chrome.test.succeed();
      });
}
function testFeatureIsEnabled ( featureName , expectedIsEnabled ) { chrome . accessibilityFeatures [ featureName ] . get ( { } , function ( result ) { chrome . test . assertTrue ( ! ! result ) ; chrome . test . assertEq ( expectedIsEnabled , result . value , "Unexpected value for feature " + featureName ) ; chrome . test . succeed ( ) ; } ) ; }
Tests that the extension is able to query feature status and that the feature
 status is as expected.
Tests that the extension is able to query feature status and that the feature status is as expected .