validator/chromeextension/background.js
/**
 * Handles actions to be taken for AMP pages that fail validation.
 *
 * @param {integer} tabId ID of a tab.
 * @param {!Object<!ValidationResult>} validationResult
 */
Handles actions to be taken for AMP pages that fail validation.
@param {integer} tabId ID of a tab.
@param {!Object} validationResult
Handles actions to be taken for AMP pages that fail validation . @param { integer } tabId ID of a tab . @param { !Object } validationResult
function handleAmpFail(tabId, validationResult) {
  var numErrors = getNumberOfErrors(validationResult.errors);
  updateTabStatus(
      tabId, globals.invalidAmpIconPrefix, globals.invalidAmpTitle,
      numErrors.toString(), globals.invalidAmpBgcolor);
  updateTabPopup(tabId);
}
function handleAmpFail ( tabId , validationResult ) { var numErrors = getNumberOfErrors ( validationResult . errors ) ; updateTabStatus ( tabId , globals . invalidAmpIconPrefix , globals . invalidAmpTitle , numErrors . toString ( ) , globals . invalidAmpBgcolor ) ; updateTabPopup ( tabId ) ; }
Handles actions to be taken for AMP pages that fail validation.
Handles actions to be taken for AMP pages that fail validation .