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

Tested some uncovered parts of the src/style and scr/style-spec module #4431

Merged
merged 6 commits into from
Mar 15, 2017

Conversation

joswinter
Copy link
Contributor

This pull request does not change any functionality of the system. It only contains improvements for the testing suite. The src/style and scr/style-spec module contain untested functionality. I added tests for the following methods in the src/style module:

  • The setPaintProperty, getPaintValueStopZoomLevels and the isPaintValueZoomConstant method of the StyleLayer class

I added tests for the following methods in the src/style-spec module:

  • The migrate function
  • The hcl related color_spaces functions
  • Some untested behavior in the composite function
  • Some untested behavior in the diff#diffStyles function

These added tests improve the line coverage in the src/style and src/style-spec module with 20 additional covered lines which is about +0,2% line coverage.

@mourner mourner merged commit 0302a7c into mapbox:master Mar 15, 2017
andrewharvey pushed a commit to andrewharvey/mapbox-gl-js that referenced this pull request Mar 17, 2017
mapbox#4431)

* Tested setTransition behaviour in diff#diffStyles

* Tested incorrect url match behaviour in composite

* Tested color_spaces#hcl.{forward,reverse}

* Tested migrate function on different input

* Tested uncovered behaviour in StyleLayer

* Fixed incorrect identation in migrate test
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