Reset map view frame on every test
To counteract the call to `-insetMapView` in `-testInsetMapView`.
This commit is contained in:
@@ -3,5 +3,6 @@
|
||||
@interface MGLTViewController : UIViewController
|
||||
|
||||
- (void)insetMapView;
|
||||
- (void)resetMapView;
|
||||
|
||||
@end
|
||||
|
||||
@@ -23,4 +23,9 @@
|
||||
_mapView.frame = CGRectInset(_mapView.frame, 50, 50);
|
||||
}
|
||||
|
||||
- (void)resetMapView
|
||||
{
|
||||
_mapView.frame = self.view.bounds;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
- (void)beforeEach {
|
||||
[system simulateDeviceRotationToOrientation:UIDeviceOrientationPortrait];
|
||||
[tester.viewController resetMapView];
|
||||
|
||||
tester.mapView.centerCoordinate = CLLocationCoordinate2DMake(38.913175, -77.032458);
|
||||
tester.mapView.zoomLevel = 14;
|
||||
|
||||
Reference in New Issue
Block a user