Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛Fix broken test for postmessage origin in amp-brightcove #16361

Merged
merged 2 commits into from Aug 9, 2018

Conversation

mister-ben
Copy link
Contributor

The refactor in #15527 breaks the test for the postmessage source in amp-brightcove. Instead of matching if the message source is the player iframe and the origin is as expected, [it now erroneously matches only if the origin is anything other than what is expected].(5c6f199#diff-4d51c1b168f56d58518c97a3115effddL159).

This changes the test to checking whether the source is the component's frame. The origin check is superfluous.

Also adds amp-brightcove to the documentation for video analytics support, as this will work with this fix.

@mister-ben mister-ben changed the title 🐛 Fix broken test for postmessage origin in amp-brightcove 🐛Fix broken test for postmessage origin in amp-brightcove Jun 26, 2018
@cathyxz cathyxz requested a review from alanorozco July 24, 2018 17:53
@nainar
Copy link
Contributor

nainar commented Aug 9, 2018

Merging this since it was approved.

@nainar nainar merged commit c571cca into ampproject:master Aug 9, 2018
Enriqe pushed a commit to Enriqe/amphtml that referenced this pull request Nov 28, 2018
…#16361)

* Fix broken test for postmessage origin

* add amp-brightcove to amp-analytics video support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants