Reset map view frame on every test

To counteract the call to `-insetMapView` in `-testInsetMapView`.
This commit is contained in:
Minh Nguyễn
2015-04-24 14:27:25 -07:00
parent 1dc2cbc280
commit f9c544a9ea
3 changed files with 7 additions and 0 deletions

View File

@@ -3,5 +3,6 @@
@interface MGLTViewController : UIViewController
- (void)insetMapView;
- (void)resetMapView;
@end

View File

@@ -23,4 +23,9 @@
_mapView.frame = CGRectInset(_mapView.frame, 50, 50);
}
- (void)resetMapView
{
_mapView.frame = self.view.bounds;
}
@end

View File

@@ -14,6 +14,7 @@
- (void)beforeEach {
[system simulateDeviceRotationToOrientation:UIDeviceOrientationPortrait];
[tester.viewController resetMapView];
tester.mapView.centerCoordinate = CLLocationCoordinate2DMake(38.913175, -77.032458);
tester.mapView.zoomLevel = 14;