Skip to content
New issue

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

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

Already on GitHub? # to your account

updated text track unit tests to use full es6 syntax #3148

Closed
wants to merge 3 commits into from
Closed

updated text track unit tests to use full es6 syntax #3148

wants to merge 3 commits into from

Conversation

brandonocasey
Copy link
Contributor

Description

Currently a few of the unit tests are using partial es6 or no es6 at all. This Pull Request seeks to rectify that.

Specific Changes proposed

  • converted all text-track test files to full es6 syntax
  • fixed most issues with vjsstandard (where it would not break jshint)

Requirements Checklist

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

ran vjsstandard and fixed most linting issues
@@ -2,33 +2,33 @@ import TextTrackList from '../../../src/js/tracks/text-track-list.js';
import TextTrack from '../../../src/js/tracks/text-track.js';
import EventTarget from '../../../src/js/event-target.js';

var noop = Function.prototype;
var genericTracks = [
const noop = () => {};
Copy link
Member

Choose a reason for hiding this comment

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

Looks like you actually made this unused now.

@dmlap
Copy link
Member

dmlap commented Mar 3, 2016

LGTM

let fixture = document.getElementById('qunit-fixture');
let html = '';
Copy link
Member

Choose a reason for hiding this comment

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

can we change this to a template string?

@gkatsev gkatsev added patch This PR can be added to a patch release. needs: LGTM Needs one or more additional approvals labels Mar 3, 2016
@gkatsev
Copy link
Member

gkatsev commented Mar 7, 2016

LGTM.

@gkatsev gkatsev added confirmed and removed needs: LGTM Needs one or more additional approvals labels Mar 7, 2016
@gkatsev gkatsev closed this in c1112b7 Mar 7, 2016
@brandonocasey brandonocasey deleted the es6-text-track-unit-tests branch April 12, 2016 15:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
confirmed patch This PR can be added to a patch release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants