function clearRemainingListeners() {
    observerTestState.toBeEnabled.forEach(function(feature) {
      chrome.accessibilityFeatures[feature.name].onChange.removeListener(
          feature.listener);
      feature.listener = null;
    });
    observerTestState.toBeDisabled.forEach(function(feature) {
      chrome.accessibilityFeatures[feature.name].onChange.removeListener(
          feature.listener);
      feature.listener = null;
    });
  }
/**
   * If any features are still being disabled, removes their listeners.
   * This situation may happen when test fails.
   */
If any features are still being disabled, removes their listeners.
This situation may happen when test fails.
If any features are still being disabled removes their listeners . This situation may happen when test fails .
function clearRemainingListeners() {
    observerTestState.toBeEnabled.forEach(function(feature) {
      chrome.accessibilityFeatures[feature.name].onChange.removeListener(
          feature.listener);
      feature.listener = null;
    });
    observerTestState.toBeDisabled.forEach(function(feature) {
      chrome.accessibilityFeatures[feature.name].onChange.removeListener(
          feature.listener);
      feature.listener = null;
    });
  }
function clearRemainingListeners ( ) { observerTestState . toBeEnabled . forEach ( function ( feature ) { chrome . accessibilityFeatures [ feature . name ] . onChange . removeListener ( feature . listener ) ; feature . listener = null ; } ) ; observerTestState . toBeDisabled . forEach ( function ( feature ) { chrome . accessibilityFeatures [ feature . name ] . onChange . removeListener ( feature . listener ) ; feature . listener = null ; } ) ; }
If any features are still being disabled, removes their listeners.
If any features are still being disabled removes their listeners .