diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-04-10 14:56:25 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-04-10 22:06:36 -0700 |
commit | 6a0c4e0142ef44d7c9f3f05e9a7ddfed985809ad (patch) | |
tree | fd1754cf3585890d8647cca9e3eadf7c9cb0c3bf /platform/darwin/test/MGLAttributionInfoTests.m | |
parent | d7f9378bca4bb6b4a6b3871b0e42961cae6a847b (diff) | |
download | qtlocation-mapboxgl-6a0c4e0142ef44d7c9f3f05e9a7ddfed985809ad.tar.gz |
[macos] Remove link attribute from attribution text
Fixed an issue causing the attribution button text to appear blue instead of black. On macOS 10.12 and above, hyperlinks in attributed strings are blue regardless of any color attributes applied to the same run of text.
Diffstat (limited to 'platform/darwin/test/MGLAttributionInfoTests.m')
-rw-r--r-- | platform/darwin/test/MGLAttributionInfoTests.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/test/MGLAttributionInfoTests.m b/platform/darwin/test/MGLAttributionInfoTests.m index 74859bda82..e258671c09 100644 --- a/platform/darwin/test/MGLAttributionInfoTests.m +++ b/platform/darwin/test/MGLAttributionInfoTests.m @@ -68,7 +68,7 @@ XCTAssertEqual(infos.count, 1); XCTAssertEqualObjects(infos[0].title.string, @"Mapbox"); - XCTAssertEqualObjects([infos[0].title attribute:NSLinkAttributeName atIndex:0 effectiveRange:nil], [NSURL URLWithString:@"https://www.mapbox.com/"]); + XCTAssertNil([infos[0].title attribute:NSLinkAttributeName atIndex:0 effectiveRange:nil]); XCTAssertEqualObjects([infos[0].title attribute:NSUnderlineStyleAttributeName atIndex:0 effectiveRange:nil], @(NSUnderlineStyleSingle)); #if TARGET_OS_IPHONE |