summaryrefslogtreecommitdiff
path: root/platform/ios/test/MGLMapViewScaleBarTests.m
diff options
context:
space:
mode:
authorLloyd Sheng <i@lloydsheng.com>2019-03-13 13:44:51 +0800
committerLloyd Sheng <i@lloydsheng.com>2019-03-13 13:44:51 +0800
commite890af196c5c8a348c53fdf4158cba012d0f609e (patch)
tree0f6e3f96746e5765d39e8fc411262f85109971c5 /platform/ios/test/MGLMapViewScaleBarTests.m
parent0a0464639cdd72db8f0d483932a1f95516d096c5 (diff)
downloadqtlocation-mapboxgl-upstream/lloyd-ornament-position.tar.gz
Fix issues found in reviewupstream/lloyd-ornament-position
Diffstat (limited to 'platform/ios/test/MGLMapViewScaleBarTests.m')
-rw-r--r--platform/ios/test/MGLMapViewScaleBarTests.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/test/MGLMapViewScaleBarTests.m b/platform/ios/test/MGLMapViewScaleBarTests.m
index 11d1187263..50864beb4d 100644
--- a/platform/ios/test/MGLMapViewScaleBarTests.m
+++ b/platform/ios/test/MGLMapViewScaleBarTests.m
@@ -35,7 +35,7 @@
XCTAssertFalse(scaleBar.hidden);
// Scale bar should not be visible at default zoom (~z0), but it should be ready.
- XCTAssertFalse(CGRectIsEmpty(scaleBar.frame));
+ XCTAssertFalse(CGSizeEqualToSize(scaleBar.intrinsicContentSize, CGSizeZero));
XCTAssertEqual(scaleBar.alpha, 0);
self.mapView.zoomLevel = 15;
@@ -49,7 +49,7 @@
XCTAssertFalse(scaleBar.hidden);
// Directly setting `.hidden` after the map has finished initializing will not update the scale bar.
- XCTAssertTrue(CGRectIsEmpty(scaleBar.frame));
+ XCTAssertTrue(CGSizeEqualToSize(scaleBar.intrinsicContentSize, CGSizeZero));
// ... but triggering any camera event will update it.
self.mapView.zoomLevel = 1;