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 poster-switching tests for IE8, and fix quote handling for other browsers #838

Closed
wants to merge 7 commits into from

Conversation

jrw95
Copy link
Contributor

@jrw95 jrw95 commented Nov 20, 2013

I fixed @dmlap's test for IE8. Along the way, I noticed that these tests were failing in Firefox, because Firefox was inserting quotes around the URL in the background-image CSS property. During testing of my fix for IE8, I discovered that IE10 does the same thing as Firefox in terms of inserting those quotes.

This behavior does not affect the player's ability to change the poster image in that or any browser (I manually regression-tested switching poster images in FF, Chrome and IE8).

Since this PR incorporates all of David's previous work for poster switching, I've spoken to him about it, and #833 can be closed.

dmlap and others added 7 commits November 11, 2013 17:01
When poster() is called with a URL, fire a `posterchange` event to update the PosterImage source and update the video element attribute.
Wait until the tech has updated its poster image before alerting components so they don't see the intermediate state in event handlers. Remove unused variable from PosterImage.createEl.
Create the img fallback for the poster during PosterImage initialization on ie8 so we can avoid having to check and possibly create it each time the src is set. Add a test to ensure that new elements are not appended to the poster component when the img fallback is in use and the src attribute is modified.
added a negative test for an undefined poster
…d properly in the test data)

testing:
ran the tests at the command line, and in Chrome, Firefox, IE8, IE10, Firefox and Safari
all passed
@heff heff closed this in ef0d63b Nov 27, 2013
@jrw95 jrw95 deleted the hotfix/posterchange-ie8 branch December 2, 2013 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants