amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Validator mistakenly states amp-bind is an unused import in autosuggest.amp.html

Open cvializ opened this issue 9 years ago • 6 comments

In the test/integration/test-example-validation.js test, the test fails with the following error

Chrome 58.0.3029 (Mac OS X 10.12.5) example autosuggest.amp.html should validate FAILED
    AssertionError: expected 'EXTENSION_UNUSED amp-bind' to equal ''

but that page does use bind. It appears that this is an issue with the validator.

cvializ avatar Jun 27 '17 15:06 cvializ

This is preventing merging. Could we temporarily disabled the test?

On Tue, Jun 27, 2017, 11:06 AM Carlos Vializ [email protected] wrote:

In the test/integration/test-example-validation.js test, the test fails with the following error

Chrome 58.0.3029 (Mac OS X 10.12.5) example autosuggest.amp.html should validate FAILED AssertionError: expected 'EXTENSION_UNUSED amp-bind' to equal ''

but that page does use bind. It appears that this is an issue with the validator.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ampproject/amphtml/issues/10152, or mute the thread https://github.com/notifications/unsubscribe-auth/ABr0LxxJuQRZIoUEZzxxac3rIIzq6kIjks5sIRpzgaJpZM4OGxLg .

keithwrightbos avatar Jun 27 '17 15:06 keithwrightbos

Including an <amp-state> element fixes the error, though this shouldn't be necessary.

Also filed #10154 to make this test fetch the local validator build instead of from the CDN.

dreamofabear avatar Jun 27 '17 15:06 dreamofabear

My understanding is that all amp-bind uses require an <amp-state> as the initial state. This document has no <amp-state>, so it's considered unused. Is that incorrect?

Gregable avatar Jun 27 '17 17:06 Gregable

Regarding the test, we can't do much about it if it's using the deployed validator, so I would disable until #10154 is fixed.

Gregable avatar Jun 27 '17 17:06 Gregable

Created https://github.com/ampproject/amphtml/pull/10159 as a fix, as I understand it.

Gregable avatar Jun 27 '17 17:06 Gregable

Closing. I'll update the issue when it's released.

Gregable avatar Jun 30 '17 16:06 Gregable