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

DomUtil function tests #7547

Merged
merged 11 commits into from
Apr 15, 2022
Merged

DomUtil function tests #7547

merged 11 commits into from
Apr 15, 2022

Conversation

LGNorris
Copy link
Contributor

@LGNorris LGNorris commented Apr 9, 2021

Fixes #7435

Implemented tests for the full range of DomUtil functions

Closes #7435

Copy link
Member

@Falke-Design Falke-Design left a comment

Choose a reason for hiding this comment

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

I added some tests from #7443.

Btw. no test should start with should / shouldn't so please update the describtions of the tests

spec/suites/dom/DomUtilSpec.js Show resolved Hide resolved
spec/suites/dom/DomUtilSpec.js Outdated Show resolved Hide resolved
spec/suites/dom/DomUtilSpec.js Outdated Show resolved Hide resolved
spec/suites/dom/DomUtilSpec.js Outdated Show resolved Hide resolved
spec/suites/dom/DomUtilSpec.js Outdated Show resolved Hide resolved
spec/suites/dom/DomUtilSpec.js Outdated Show resolved Hide resolved
spec/suites/dom/DomUtilSpec.js Outdated Show resolved Hide resolved
spec/suites/dom/DomUtilSpec.js Show resolved Hide resolved
expect(L.DomUtil.getScale(childEl).boundingClientRect.top).to.be.equal(scale.boundingClientRect.top);
expect(L.DomUtil.getScale(childEl).boundingClientRect.right).to.be.equal(scale.boundingClientRect.right);
expect(L.DomUtil.getScale(childEl).boundingClientRect.bottom).to.be.equal(scale.boundingClientRect.bottom);
expect(L.DomUtil.getScale(childEl).boundingClientRect.left).to.be.equal(scale.boundingClientRect.left);
Copy link
Member

Choose a reason for hiding this comment

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

Should be the height and width checked too?

spec/suites/dom/DomUtilSpec.js Show resolved Hide resolved
@Falke-Design Falke-Design requested a review from mourner March 18, 2022 18:34
@Falke-Design Falke-Design added this to the 1.8.1 milestone Mar 27, 2022
@mourner mourner merged commit c7aadab into Leaflet:main Apr 15, 2022
@Malvoz Malvoz removed this from the 1.8.1 milestone Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DomUtil functions not covered by tests
4 participants