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

chore(tests): make tests not print out errors #4141

Merged
merged 7 commits into from
Mar 2, 2017
Merged

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Feb 28, 2017

No description provided.

@gkatsev
Copy link
Member Author

gkatsev commented Mar 1, 2017

There is still one more error being logged in IE8 but I don't have any more time to track it down right now.

@gkatsev gkatsev changed the title remove src from test for ie8 and 9 chore(tests): make tests not print out errors Mar 1, 2017
Copy link
Contributor

@brandonocasey brandonocasey left a comment

Choose a reason for hiding this comment

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

LGTM other than my one comment

@@ -27,23 +27,19 @@ QUnit.test('can create a html track element with various properties', function(a
const kind = 'chapters';
const label = 'English';
const language = 'en';
const src = 'http://www.example.com';
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not want to test the src property here?

Copy link
Member Author

Choose a reason for hiding this comment

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

It would be nice but it ends up causing an XHR which logs an error in IE8 and there isn't a good way to cancelling the track.
Text Tracks have a source is already tested elsewhere. I think not having an extra error logged for a failed XHR is better than testing something that is partially tested elsewhere anyway.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok acceptable

@@ -365,6 +366,12 @@ QUnit.test('removes cuechange event when text track is hidden for emulated track
mode: 'showing'
});

const oldVttjs = window.vttjs;
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@gkatsev
Copy link
Member Author

gkatsev commented Mar 2, 2017

I'll wait for the master version of #4148 to be merged before merging this one so this can be updated with changes.

@gkatsev gkatsev merged commit f95815b into master Mar 2, 2017
@gkatsev gkatsev deleted the fix-tests-again branch March 2, 2017 20:23
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