* Inspects ValidationResult to discover if the document has only one * error which states DEV_MODE_ONLY. See #24176 for more context. * * @param {!Object<!ValidationResult>} validationResult * @return {boolean}
(validationResult)
| 91 | * @return {boolean} |
| 92 | */ |
| 93 | function onlyErrorIsDevMode(validationResult) { |
| 94 | return ((validationResult.errors.length == 1) && |
| 95 | (validationResult.errors[0].code == 'DEV_MODE_ONLY')); |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Handles actions to be taken for pages that are on an AMP Cache. |
no outgoing calls
no test coverage detected