diff options
author | Julian Rex <julian.rex@gmail.com> | 2018-05-24 00:43:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 00:43:29 -0400 |
commit | 5e65cb7812727b6c0625e4fbde538ddb5ff4ba13 (patch) | |
tree | 1a182eea520b172d13e1c5b87d65e447902b0088 /platform/ios/test | |
parent | 3ea1a7062ffcfd05c6e5e6fe2a9a96537ba8630a (diff) | |
download | qtlocation-mapboxgl-5e65cb7812727b6c0625e4fbde538ddb5ff4ba13.tar.gz |
[ios, macos] Added macro to handle pending iOS tests (rather than disabling via scheme) (#11806)
Diffstat (limited to 'platform/ios/test')
-rw-r--r-- | platform/ios/test/MGLAnnotationViewTests.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/platform/ios/test/MGLAnnotationViewTests.m b/platform/ios/test/MGLAnnotationViewTests.m index a2cc4227ed..7bf7c90a33 100644 --- a/platform/ios/test/MGLAnnotationViewTests.m +++ b/platform/ios/test/MGLAnnotationViewTests.m @@ -1,5 +1,6 @@ #import <Mapbox/Mapbox.h> #import <XCTest/XCTest.h> +#import "MGLTestUtility.h" static NSString * const MGLTestAnnotationReuseIdentifer = @"MGLTestAnnotationReuseIdentifer"; @@ -209,7 +210,8 @@ static NSString * const MGLTestAnnotationReuseIdentifer = @"MGLTestAnnotationReu XCTAssertEqual(view.dragState, MGLAnnotationViewDragStateNone); } -- (void)testAnnotationViewInitWithFrame { +- (void)testAnnotationViewInitWithFramePENDING { + MGL_CHECK_IF_PENDING_TEST_SHOULD_RUN(); CGRect frame = CGRectMake(10.0, 10.0, 100.0, 100.0); MGLAnnotationView *view = [[MGLAnnotationView alloc] initWithFrame:frame]; [self checkDefaultPropertiesForAnnotationView:view]; @@ -220,11 +222,12 @@ static NSString * const MGLTestAnnotationReuseIdentifer = @"MGLTestAnnotationReu [self checkDefaultPropertiesForAnnotationView:view]; } -- (void)testSelectingADisabledAnnotationView { +- (void)testSelectingADisabledAnnotationViewPENDING { + MGL_CHECK_IF_PENDING_TEST_SHOULD_RUN(); self.prepareAnnotationView = ^(MGLAnnotationView *view) { view.enabled = NO; }; - + // Create annotation MGLPointFeature *point = [[MGLPointFeature alloc] init]; point.title = NSStringFromSelector(_cmd); |