summaryrefslogtreecommitdiff
path: root/platform/darwin/test/MGLSymbolStyleLayerTests.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/test/MGLSymbolStyleLayerTests.mm')
-rw-r--r--platform/darwin/test/MGLSymbolStyleLayerTests.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/darwin/test/MGLSymbolStyleLayerTests.mm b/platform/darwin/test/MGLSymbolStyleLayerTests.mm
index 1d599f5aca..bb5be776b0 100644
--- a/platform/darwin/test/MGLSymbolStyleLayerTests.mm
+++ b/platform/darwin/test/MGLSymbolStyleLayerTests.mm
@@ -43,6 +43,16 @@
XCTAssertTrue(layer.rawLayer->is<mbgl::style::SymbolLayer>());
auto rawLayer = layer.rawLayer->as<mbgl::style::SymbolLayer>();
+ NSArray *transitionKeys = [MGLSymbolStyleLayer transitionKeys];
+ MGLTransition transitionTest = {.delay = 4, .duration = 5};
+
+ for (NSString *property in transitionKeys) {
+ [layer setTransition:transitionTest forKey:property];
+ MGLTransition transition = [layer transitionForKey:property];
+ XCTAssertEqual(transition.delay, transitionTest.delay);
+ XCTAssertEqual(transition.duration, transitionTest.duration);
+ }
+
// icon-allow-overlap
{
XCTAssertTrue(rawLayer->getIconAllowOverlap().isUndefined(),