Skip to content

Update fill-outline-color test expectations - #5099

Merged
kkaefer merged 1 commit into
masterfrom
fill-outline-rendering
Aug 7, 2017
Merged

kkaefer merged 1 commit into
masterfrom
fill-outline-rendering

Conversation

@kkaefer

@kkaefer kkaefer commented Aug 4, 2017

Copy link
Copy Markdown
Member

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
@kkaefer
kkaefer force-pushed the fill-outline-rendering branch from 7523068 to 79e8574 Compare August 4, 2017 16:37

@jfirebaugh jfirebaugh left a comment

Copy link
Copy Markdown
Contributor

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?

Comment thread test/ignores.json
"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
Copy Markdown
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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes

@jfirebaugh jfirebaugh left a comment

Copy link
Copy Markdown
Contributor

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