summaryrefslogtreecommitdiff
path: root/platform/darwin/test
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-01-24 15:05:28 -0800
committerKonstantin Käfer <mail@kkaefer.com>2018-01-24 15:41:22 -0800
commit2502a3ab2bf793dcb3a41deb5c93290b3c6ce5fd (patch)
tree5c52e96803ae64279a02eb4a00857b75490a9279 /platform/darwin/test
parent7159a14b35ee380450589d69b1e844282030c19f (diff)
downloadqtlocation-mapboxgl-2502a3ab2bf793dcb3a41deb5c93290b3c6ce5fd.tar.gz
[core] update mapbox-gl-js submodule pin
* disables transition render test (transitions are not supported with Still image rendering in Node.js) * removes support for hillshade-illumniation-direction-transition
Diffstat (limited to 'platform/darwin/test')
-rw-r--r--platform/darwin/test/MGLHillshadeStyleLayerTests.mm9
1 files changed, 0 insertions, 9 deletions
diff --git a/platform/darwin/test/MGLHillshadeStyleLayerTests.mm b/platform/darwin/test/MGLHillshadeStyleLayerTests.mm
index 87950e4f24..8f37b52790 100644
--- a/platform/darwin/test/MGLHillshadeStyleLayerTests.mm
+++ b/platform/darwin/test/MGLHillshadeStyleLayerTests.mm
@@ -293,15 +293,6 @@
functionExpression = [NSExpression expressionWithFormat:@"FUNCTION(bogus, 'mgl_stepWithMinimum:stops:', %@, %@)", constantExpression, @{@18: constantExpression}];
functionExpression = [NSExpression expressionWithFormat:@"FUNCTION($zoomLevel, 'mgl_interpolateWithCurveType:parameters:stops:', 'linear', nil, %@)", @{@10: functionExpression}];
XCTAssertThrowsSpecificNamed(layer.hillshadeIlluminationDirection = functionExpression, NSException, NSInvalidArgumentException, @"MGLHillshadeLayer should raise an exception if a camera-data expression is applied to a property that does not support key paths to feature attributes.");
- // Transition property test
- layer.hillshadeIlluminationDirectionTransition = transitionTest;
- auto toptions = rawLayer->getHillshadeIlluminationDirectionTransition();
- XCTAssert(toptions.delay && MGLTimeIntervalFromDuration(*toptions.delay) == transitionTest.delay);
- XCTAssert(toptions.duration && MGLTimeIntervalFromDuration(*toptions.duration) == transitionTest.duration);
-
- MGLTransition hillshadeIlluminationDirectionTransition = layer.hillshadeIlluminationDirectionTransition;
- XCTAssertEqual(hillshadeIlluminationDirectionTransition.delay, transitionTest.delay);
- XCTAssertEqual(hillshadeIlluminationDirectionTransition.duration, transitionTest.duration);
}
// hillshade-shadow-color