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

Move Manipulator test cases from QUnit to Jasmine #28543

Merged
merged 1 commit into from
Mar 24, 2019
Merged

Move Manipulator test cases from QUnit to Jasmine #28543

merged 1 commit into from
Mar 24, 2019

Conversation

bershanskiy
Copy link
Contributor

@bershanskiy bershanskiy commented Mar 22, 2019

@Johann-S Here is a small commit that rewrites Manipulator test cases for Jasmine. This is not for merging but instead for getting feedback on my commit.

A random question: toggleClass uses classList.remove, classList.add, classList.contains, which according to MDN have worse support than classList.toggle. Is MDN wrong or does compatibility table not tell the whole story?

Edit: I resolved merge conflicts for simplicity of review.

@bershanskiy bershanskiy requested a review from a team as a code owner March 22, 2019 07:27
@bershanskiy bershanskiy changed the title WIP Rewriting test cases for Jasmine [WIP] Rewriting test cases for Jasmine Mar 22, 2019
Copy link
Member

@Johann-S Johann-S left a comment

Choose a reason for hiding this comment

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

Thanks for your PR 👍

It's pretty good, there is some little things to fix and it'll be fine

js/src/dom/manipulator.spec.js Outdated Show resolved Hide resolved
js/src/dom/manipulator.spec.js Outdated Show resolved Hide resolved
js/src/dom/manipulator.spec.js Show resolved Hide resolved
js/src/dom/manipulator.spec.js Show resolved Hide resolved
js/src/dom/manipulator.spec.js Outdated Show resolved Hide resolved
js/src/dom/manipulator.spec.js Outdated Show resolved Hide resolved
js/src/dom/manipulator.spec.js Outdated Show resolved Hide resolved
js/src/dom/manipulator.spec.js Outdated Show resolved Hide resolved
js/src/dom/manipulator.spec.js Outdated Show resolved Hide resolved
js/src/dom/manipulator.spec.js Outdated Show resolved Hide resolved
@Johann-S
Copy link
Member

About the support of classList.add, classList.contains and classList.remove it's in the basic support to it's supported everywhere

@Johann-S Johann-S force-pushed the jo-jasmine branch 2 times, most recently from c68cec4 to f54aaa1 Compare March 24, 2019 16:01
@Johann-S Johann-S merged this pull request into twbs:jo-jasmine Mar 24, 2019
@Johann-S
Copy link
Member

Thank you very much @bershanskiy for your work 👍 much appreciate

@Johann-S Johann-S mentioned this pull request Mar 24, 2019
21 tasks
@bershanskiy bershanskiy changed the title [WIP] Rewriting test cases for Jasmine Move Manipulator test cases from QUnit to Jasmine Mar 24, 2019
@bershanskiy bershanskiy deleted the new branch March 24, 2019 19:59
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