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 hooks unit test in ie8 #3745

Merged
merged 1 commit into from
Nov 4, 2016
Merged

fix hooks unit test in ie8 #3745

merged 1 commit into from
Nov 4, 2016

Conversation

brandonocasey
Copy link
Contributor

Description

Fix a unit test in ie8 that is currently broken

Requirements Checklist

  • Feature implemented / Bug fixed
  • Reviewed by Two Core Contributors

@@ -107,14 +107,14 @@ function videojs(id, options, ready) {
}

videojs.hooks('beforesetup').forEach(function(hookFunction) {
const opts = hookFunction(tag, videojs.mergeOptions({}, options));
const opts = hookFunction(tag, mergeOptions(options));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was silly to use videojs. here but not really a necessary change.

@@ -336,7 +336,7 @@ QUnit.test('beforesetup options override videojs options', function(assert) {

const vid = document.getElementById('test_vid_id');

videojs.hook('beforesetup', function(options) {
videojs.hook('beforesetup', function(tag, options) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess video tags in ie8, don't have an autoplay property... whoops

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yeah, you have to do getAttribute on IE8. Heh, that's pretty funny.

@gkatsev gkatsev merged commit e9e5b5f into master Nov 4, 2016
@gkatsev gkatsev deleted the bug/fix-ie8-unit-test branch November 4, 2016 20: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