summaryrefslogtreecommitdiff
path: root/platform/darwin/test/MGLComputedShapeSourceTests.m
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-11-20 14:04:08 -0800
committerAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-11-22 13:56:38 -0800
commit246417ef2435934261c8d2ab080a78572c64cbec (patch)
treed84ec4b65514d102748cdffe373284e6f41f2017 /platform/darwin/test/MGLComputedShapeSourceTests.m
parentb2925e71acc272b4afe829149d4b87d59c1dad70 (diff)
downloadqtlocation-mapboxgl-246417ef2435934261c8d2ab080a78572c64cbec.tar.gz
[ios, macos] Implement MGLComputedShapeSource binding for CustomGeometrySource
Diffstat (limited to 'platform/darwin/test/MGLComputedShapeSourceTests.m')
-rw-r--r--platform/darwin/test/MGLComputedShapeSourceTests.m24
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/darwin/test/MGLComputedShapeSourceTests.m b/platform/darwin/test/MGLComputedShapeSourceTests.m
new file mode 100644
index 0000000000..6eb45913d6
--- /dev/null
+++ b/platform/darwin/test/MGLComputedShapeSourceTests.m
@@ -0,0 +1,24 @@
+#import <XCTest/XCTest.h>
+
+#import <Mapbox/Mapbox.h>
+
+
+@interface MGLComputedShapeSourceTests : XCTestCase
+@end
+
+@implementation MGLComputedShapeSourceTests
+
+- (void)testInitializer {
+ MGLComputedShapeSource *source = [[MGLComputedShapeSource alloc] initWithIdentifier:@"id" options:@{}];
+ XCTAssertNotNil(source);
+ XCTAssertNotNil(source.requestQueue);
+ XCTAssertNil(source.dataSource);
+}
+
+- (void)testNilOptions {
+ MGLComputedShapeSource *source = [[MGLComputedShapeSource alloc] initWithIdentifier:@"id" options:nil];
+ XCTAssertNotNil(source);
+}
+
+
+@end