-
Notifications
You must be signed in to change notification settings - Fork 1.3k
-[MGLTileSetTests testTileSetFromTileURLTemplates] fails on High Sierra and above #13386
Comments
Actually, this issue does affect production code, specifically the use of
CircleCI builds run on macOS 10.14 High Sierra these days, which accounts for the failures I’m seeing in #13387. So the difference between running locally and on CI must be related to the system color profile or something. |
This is still an issue locally, running macOS 10.14.5b1 and Xcode 10.2. |
Now seeing a similar failure on CircleCI (and here) for iOS jobs with Xcode 11b5:
... it seems the font size has changed from points to pixels. 🤔 |
cc: @julianrex for prioritization. |
@friedbunny can we close this due to #15432? Or has this now mutated into a change-the-test issue? |
#15432 merely silenced the failure by adding a case for the new result, but we don’t know if there’s more to do to address the issue yet. The original issue in this PR is related but not the same — it’s the same test, but colors (and not text sizes) changing, and it evidently only happens on macOS. |
#11391 didn’t completely fix #11289: on macOS 10.14 High Sierra and above,
-[MGLTileSetTests testTileSetFromTileURLTemplates]
still fails on the following assertion:The problem is that
-[NSAttributedString dataFromRange:documentAttributes:error:]
exports HTML that expresses colors in the generic RGB (aka calibrated RGB) color space instead of sRGB, which is a violation of the CSS specification. I’ve opened rdar://problem/46115233 (lionheart/openradar-mirror#20722) to track the issue upstream in the (Apple) macOS SDK. In the meantime, we can work around the issue by expressing the test’s initial color in calibrated RGB:mapbox-gl-native/platform/darwin/test/MGLTileSetTests.mm
Line 75 in 8961768
This test is the only place in the codebase where we generate HTML from an attributed string, so the issue and workaround don’t impact production code. It also doesn’t affect builds on CircleCI, which still runs macOS 10.13 Sierra.
/cc @mapbox/maps-ios
The text was updated successfully, but these errors were encountered: