21 lines
753 B
Objective-C
21 lines
753 B
Objective-C
#import <XCTest/XCTest.h>
|
|
#import <Mapbox/Mapbox.h>
|
|
|
|
#define TestFailWithSelf(myself, ...) \
|
|
_XCTPrimitiveFail(myself, __VA_ARGS__)
|
|
|
|
@interface MGLMapViewIntegrationTest : XCTestCase <MGLMapViewDelegate>
|
|
@property (nonatomic) MGLMapView *mapView;
|
|
@property (nonatomic) MGLStyle *style;
|
|
@property (nonatomic) XCTestExpectation *styleLoadingExpectation;
|
|
@property (nonatomic) XCTestExpectation *renderFinishedExpectation;
|
|
@property (nonatomic) void (^regionDidChange)(MGLMapView *mapView, BOOL animated);
|
|
@property (nonatomic) void (^regionIsChanging)(MGLMapView *mapView);
|
|
|
|
|
|
|
|
// Utility methods
|
|
- (void)waitForMapViewToFinishLoadingStyleWithTimeout:(NSTimeInterval)timeout;
|
|
- (void)waitForMapViewToBeRenderedWithTimeout:(NSTimeInterval)timeout;
|
|
@end
|