validator/engine/validator-light_test.js
/**
 * Essentially a copy of amp.validator.validateString, which the
 * validator-light does not include. Testing domwalker.js will be done
 * in a different manner.
 * @param {string} inputDocContents
 * @return {!amp.validator.ValidationResult} Validation Result
 */
Essentially a copy of amp.validator.validateString, which the
validator-light does not include. Testing domwalker.js will be done
in a different manner.
@param {string} inputDocContents
@return {!amp.validator.ValidationResult} Validation Result
Essentially a copy of amp . validator . validateString which the validator - light does not include . Testing domwalker . js will be done in a different manner . @param { string } inputDocContents @return { !amp . validator . ValidationResult } Validation Result
function validateString(inputDocContents) {
  goog.asserts.assertString(inputDocContents, 'Input doc is not a string');
  const handler = new amp.validator.ValidationHandler('AMP');
  const parser = new amp.htmlparser.HtmlParser();
  parser.parse(handler, inputDocContents);
  return handler.Result();
}
function validateString ( inputDocContents ) { goog . asserts . assertString ( inputDocContents , 'Input doc is not a string' ) ; const handler = new amp . validator . ValidationHandler ( 'AMP' ) ; const parser = new amp . htmlparser . HtmlParser ( ) ; parser . parse ( handler , inputDocContents ) ; return handler . Result ( ) ; }
Essentially a copy of amp.validator.validateString, which the
 validator-light does not include.
Essentially a copy of amp . validator . validateString which the validator - light does not include .