summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLloyd Sheng <i@lloydsheng.com>2019-03-11 18:19:39 +0800
committerLloyd Sheng <i@lloydsheng.com>2019-03-11 18:19:39 +0800
commit38c901684c6f5358b53acd9b912df463b85f266a (patch)
tree5634119f8bd94a9b068bdb9780c897760c0f9759
parentfda7d18a04afa6edda76e6515477fcc2de09d3bd (diff)
downloadqtlocation-mapboxgl-upstream/lloyd-ui-position.tar.gz
-rw-r--r--platform/ios/test/MGLMapViewLayoutTests.m18
1 files changed, 0 insertions, 18 deletions
diff --git a/platform/ios/test/MGLMapViewLayoutTests.m b/platform/ios/test/MGLMapViewLayoutTests.m
index 6f67ae48ad..5d9c0339b5 100644
--- a/platform/ios/test/MGLMapViewLayoutTests.m
+++ b/platform/ios/test/MGLMapViewLayoutTests.m
@@ -128,24 +128,6 @@
XCTAssertEqualWithAccuracy(CGRectGetMinY(logoView.frame), expectedLogoOriginY, accuracy);
}
-- (void)testOrnamentPlacementInvalidArgument {
- XCTAssertThrows([self.mapView setCompassViewMargins:CGPointMake(-4, -4)]);
- XCTAssertThrows([self.mapView setCompassViewMargins:CGPointMake(-4, 0)]);
- XCTAssertThrows([self.mapView setCompassViewMargins:CGPointMake(0, -4)]);
-
- XCTAssertThrows([self.mapView setScaleBarMargins:CGPointMake(-4, -4)]);
- XCTAssertThrows([self.mapView setScaleBarMargins:CGPointMake(-4, 0)]);
- XCTAssertThrows([self.mapView setScaleBarMargins:CGPointMake(0, -4)]);
-
- XCTAssertThrows([self.mapView setAttributionButtonMargins:CGPointMake(-4, -4)]);
- XCTAssertThrows([self.mapView setAttributionButtonMargins:CGPointMake(-4, 0)]);
- XCTAssertThrows([self.mapView setAttributionButtonMargins:CGPointMake(0, -4)]);
-
- XCTAssertThrows([self.mapView setLogoViewMargins:CGPointMake(-4, -4)]);
- XCTAssertThrows([self.mapView setLogoViewMargins:CGPointMake(-4, 0)]);
- XCTAssertThrows([self.mapView setLogoViewMargins:CGPointMake(0, -4)]);
-}
-
- (NSArray *)makeTestDataListWithView:(UIView *)view margin:(CGFloat)margin {
CGFloat bottomSafeAreaInset = 0.0;
if (@available(iOS 11.0, *)) {