-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Qunit 2 Style #3509
Qunit 2 Style #3509
Conversation
9a6c22b
to
10b4491
Compare
some of these commits are from your other PR #3508. Also we should probably update qunitjs to version 2 (maybe even karma-qunit too?) |
@@ -24,23 +24,23 @@ const cleanup = (item) => { | |||
}; | |||
|
|||
if (Html5.supportsNativeTextTracks()) { | |||
QUnit.test('trackToJson_ produces correct representation for native track object', function(a) { | |||
QUnit.test('trackToJson_ produces correct representation for native track object', function(assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice it actually changed these from a to assert 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No... I did. 😆
@brandonocasey Good call on updating QUnit maybe. Also, the extra commits are due to rebasing. Once that PR is merged, I'll rebase this one again. |
LGTM |
Oops, I forgot that karma-qunitjs is being updates here as well. |
Could you rebase against master? |
The tool was imperfect and I had to do a lot of search/replace to fix it. And it broke a few tests.
527801c
to
6aa4ae1
Compare
Description
This updates tests to use QUnit 2.0-style assertions and test module lifecycle methods.
Specific Changes proposed
QUnit.ok()
orok()
style toassert.ok()
style.setup()
withbeforeEach()
andteardown()
withafterEach()
.Requirements Checklist