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

Update fill-outline-color test expectations #5099

Merged
merged 1 commit into from
Aug 7, 2017
Merged

Conversation

kkaefer
Copy link
Contributor

@kkaefer kkaefer commented Aug 4, 2017

mapbox/mapbox-gl-native#6927 mentions that these tests are different in JS vs. Native. Looking more at the code, I believe that the test expectations are wrong, and they should have the fuzzy antialiasing edges. JS headless doesn't have these due to #4601. However, when rendering these stylesheets in the browser, they do look like Native versions.

They're not quite identical due to JS headless WebGL missing support for lines wider than 1px.
#4601
Copy link
Contributor

@jfirebaugh jfirebaugh left a comment

Choose a reason for hiding this comment

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

So are these the results from gl-native? Will they cause the tests to start failing in gl-js?

@@ -9,7 +9,6 @@
"render-tests/fill-extrusion-pattern/literal": "https://github.com/mapbox/mapbox-gl-js/issues/3327",
"render-tests/fill-extrusion-pattern/missing": "https://github.com/mapbox/mapbox-gl-js/issues/3327",
"render-tests/fill-extrusion-pattern/opacity": "https://github.com/mapbox/mapbox-gl-js/issues/3327",
"render-tests/fill-outline-color/fill": "https://github.com/mapbox/mapbox-gl-js/issues/4601",
Copy link
Contributor

Choose a reason for hiding this comment

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

fill-outline-color/fill isn't included in the image updates. Was it passing everywhere already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

Copy link
Contributor

@jfirebaugh jfirebaugh left a comment

Choose a reason for hiding this comment

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

Looks like the gl-js output is still as described in #4601, but the differences are treated by pixelmatch as antialiasing differences and ignored. Seems ok.

@kkaefer kkaefer merged commit b93bc45 into master Aug 7, 2017
@kkaefer kkaefer deleted the fill-outline-rendering branch August 7, 2017 08:00
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