validator/chromeextension/background.js
/**
 * Handles actions to be taken for AMP pages that pass validation.
 *
 * @param {integer} tabId ID of a tab.
 * @param {!Object<!ValidationResult>} validationResult
 */
Handles actions to be taken for AMP pages that pass validation.
@param {integer} tabId ID of a tab.
@param {!Object} validationResult
Handles actions to be taken for AMP pages that pass validation . @param { integer } tabId ID of a tab . @param { !Object } validationResult
function handleAmpPass(tabId, validationResult) {
  var badgeTitle = '';
  var numWarnings = getNumberOfWarnings(validationResult.errors);
  if (numWarnings > 0) badgeTitle = numWarnings.toString();
  updateTabStatus(
      tabId, globals.validAmpIconPrefix, globals.validAmpTitle,
      badgeTitle, globals.validAmpBgcolor);
  if (numWarnings > 0) updateTabPopup(tabId);
}
function handleAmpPass ( tabId , validationResult ) { var badgeTitle = '' ; var numWarnings = getNumberOfWarnings ( validationResult . errors ) ; if ( numWarnings > 0 ) badgeTitle = numWarnings . toString ( ) ; updateTabStatus ( tabId , globals . validAmpIconPrefix , globals . validAmpTitle , badgeTitle , globals . validAmpBgcolor ) ; if ( numWarnings > 0 ) updateTabPopup ( tabId ) ; }
Handles actions to be taken for AMP pages that pass validation.
Handles actions to be taken for AMP pages that pass validation .