Validator mistakenly states amp-bind is an unused import in autosuggest.amp.html
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.
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 .
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.
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?
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.
Created https://github.com/ampproject/amphtml/pull/10159 as a fix, as I understand it.
Closing. I'll update the issue when it's released.