diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-01-26 18:52:44 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-01-27 11:44:16 +0100 |
commit | 62ea1f21858c69f6921c775ba7a3de201f0514d8 (patch) | |
tree | 7a4da88706e8a5513e1e13e993b2acc212cae3b1 /platform/darwin/test/MGLRasterStyleLayerTests.mm | |
parent | a662508ddde4043ece36d8ea9b424368891d892c (diff) | |
download | qtlocation-mapboxgl-62ea1f21858c69f6921c775ba7a3de201f0514d8.tar.gz |
[core] remove trailing whitespace, add trailing newlines, add space after //
Diffstat (limited to 'platform/darwin/test/MGLRasterStyleLayerTests.mm')
-rw-r--r-- | platform/darwin/test/MGLRasterStyleLayerTests.mm | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/platform/darwin/test/MGLRasterStyleLayerTests.mm b/platform/darwin/test/MGLRasterStyleLayerTests.mm index 28a201961c..debccd1ef6 100644 --- a/platform/darwin/test/MGLRasterStyleLayerTests.mm +++ b/platform/darwin/test/MGLRasterStyleLayerTests.mm @@ -1,4 +1,4 @@ -// This file is generated. +// This file is generated. // Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`. #import "MGLStyleLayerTests.h" @@ -19,18 +19,18 @@ - (void)testProperties { MGLPointFeature *feature = [[MGLPointFeature alloc] init]; MGLShapeSource *source = [[MGLShapeSource alloc] initWithIdentifier:@"sourceID" shape:feature options:nil]; - + MGLRasterStyleLayer *layer = [[MGLRasterStyleLayer alloc] initWithIdentifier:@"layerID" source:source]; XCTAssertNotEqual(layer.rawLayer, nullptr); XCTAssertTrue(layer.rawLayer->is<mbgl::style::RasterLayer>()); auto rawLayer = layer.rawLayer->as<mbgl::style::RasterLayer>(); - + // raster-brightness-max { XCTAssertTrue(rawLayer->getRasterBrightnessMax().isUndefined(), @"raster-brightness-max should be unset initially."); MGLStyleValue<NSNumber *> *defaultStyleValue = layer.maximumRasterBrightness; - + MGLStyleValue<NSNumber *> *styleValue = [MGLStyleValue<NSNumber *> valueWithRawValue:@0xff]; layer.maximumRasterBrightness = styleValue; mbgl::style::PropertyValue<float> propertyValue = { 0xff }; @@ -38,7 +38,7 @@ @"Setting maximumRasterBrightness to a constant value should update raster-brightness-max."); XCTAssertEqualObjects(layer.maximumRasterBrightness, styleValue, @"maximumRasterBrightness should round-trip constant values."); - + styleValue = [MGLStyleValue<NSNumber *> valueWithStops:@{ @18: styleValue, }]; @@ -51,20 +51,20 @@ @"Setting maximumRasterBrightness to a function should update raster-brightness-max."); XCTAssertEqualObjects(layer.maximumRasterBrightness, styleValue, @"maximumRasterBrightness should round-trip functions."); - + layer.maximumRasterBrightness = nil; XCTAssertTrue(rawLayer->getRasterBrightnessMax().isUndefined(), @"Unsetting maximumRasterBrightness should return raster-brightness-max to the default value."); XCTAssertEqualObjects(layer.maximumRasterBrightness, defaultStyleValue, @"maximumRasterBrightness should return the default value after being unset."); } - + // raster-brightness-min { XCTAssertTrue(rawLayer->getRasterBrightnessMin().isUndefined(), @"raster-brightness-min should be unset initially."); MGLStyleValue<NSNumber *> *defaultStyleValue = layer.minimumRasterBrightness; - + MGLStyleValue<NSNumber *> *styleValue = [MGLStyleValue<NSNumber *> valueWithRawValue:@0xff]; layer.minimumRasterBrightness = styleValue; mbgl::style::PropertyValue<float> propertyValue = { 0xff }; @@ -72,7 +72,7 @@ @"Setting minimumRasterBrightness to a constant value should update raster-brightness-min."); XCTAssertEqualObjects(layer.minimumRasterBrightness, styleValue, @"minimumRasterBrightness should round-trip constant values."); - + styleValue = [MGLStyleValue<NSNumber *> valueWithStops:@{ @18: styleValue, }]; @@ -85,20 +85,20 @@ @"Setting minimumRasterBrightness to a function should update raster-brightness-min."); XCTAssertEqualObjects(layer.minimumRasterBrightness, styleValue, @"minimumRasterBrightness should round-trip functions."); - + layer.minimumRasterBrightness = nil; XCTAssertTrue(rawLayer->getRasterBrightnessMin().isUndefined(), @"Unsetting minimumRasterBrightness should return raster-brightness-min to the default value."); XCTAssertEqualObjects(layer.minimumRasterBrightness, defaultStyleValue, @"minimumRasterBrightness should return the default value after being unset."); } - + // raster-contrast { XCTAssertTrue(rawLayer->getRasterContrast().isUndefined(), @"raster-contrast should be unset initially."); MGLStyleValue<NSNumber *> *defaultStyleValue = layer.rasterContrast; - + MGLStyleValue<NSNumber *> *styleValue = [MGLStyleValue<NSNumber *> valueWithRawValue:@0xff]; layer.rasterContrast = styleValue; mbgl::style::PropertyValue<float> propertyValue = { 0xff }; @@ -106,7 +106,7 @@ @"Setting rasterContrast to a constant value should update raster-contrast."); XCTAssertEqualObjects(layer.rasterContrast, styleValue, @"rasterContrast should round-trip constant values."); - + styleValue = [MGLStyleValue<NSNumber *> valueWithStops:@{ @18: styleValue, }]; @@ -119,20 +119,20 @@ @"Setting rasterContrast to a function should update raster-contrast."); XCTAssertEqualObjects(layer.rasterContrast, styleValue, @"rasterContrast should round-trip functions."); - + layer.rasterContrast = nil; XCTAssertTrue(rawLayer->getRasterContrast().isUndefined(), @"Unsetting rasterContrast should return raster-contrast to the default value."); XCTAssertEqualObjects(layer.rasterContrast, defaultStyleValue, @"rasterContrast should return the default value after being unset."); } - + // raster-fade-duration { XCTAssertTrue(rawLayer->getRasterFadeDuration().isUndefined(), @"raster-fade-duration should be unset initially."); MGLStyleValue<NSNumber *> *defaultStyleValue = layer.rasterFadeDuration; - + MGLStyleValue<NSNumber *> *styleValue = [MGLStyleValue<NSNumber *> valueWithRawValue:@0xff]; layer.rasterFadeDuration = styleValue; mbgl::style::PropertyValue<float> propertyValue = { 0xff }; @@ -140,7 +140,7 @@ @"Setting rasterFadeDuration to a constant value should update raster-fade-duration."); XCTAssertEqualObjects(layer.rasterFadeDuration, styleValue, @"rasterFadeDuration should round-trip constant values."); - + styleValue = [MGLStyleValue<NSNumber *> valueWithStops:@{ @18: styleValue, }]; @@ -153,20 +153,20 @@ @"Setting rasterFadeDuration to a function should update raster-fade-duration."); XCTAssertEqualObjects(layer.rasterFadeDuration, styleValue, @"rasterFadeDuration should round-trip functions."); - + layer.rasterFadeDuration = nil; XCTAssertTrue(rawLayer->getRasterFadeDuration().isUndefined(), @"Unsetting rasterFadeDuration should return raster-fade-duration to the default value."); XCTAssertEqualObjects(layer.rasterFadeDuration, defaultStyleValue, @"rasterFadeDuration should return the default value after being unset."); } - + // raster-hue-rotate { XCTAssertTrue(rawLayer->getRasterHueRotate().isUndefined(), @"raster-hue-rotate should be unset initially."); MGLStyleValue<NSNumber *> *defaultStyleValue = layer.rasterHueRotation; - + MGLStyleValue<NSNumber *> *styleValue = [MGLStyleValue<NSNumber *> valueWithRawValue:@0xff]; layer.rasterHueRotation = styleValue; mbgl::style::PropertyValue<float> propertyValue = { 0xff }; @@ -174,7 +174,7 @@ @"Setting rasterHueRotation to a constant value should update raster-hue-rotate."); XCTAssertEqualObjects(layer.rasterHueRotation, styleValue, @"rasterHueRotation should round-trip constant values."); - + styleValue = [MGLStyleValue<NSNumber *> valueWithStops:@{ @18: styleValue, }]; @@ -187,20 +187,20 @@ @"Setting rasterHueRotation to a function should update raster-hue-rotate."); XCTAssertEqualObjects(layer.rasterHueRotation, styleValue, @"rasterHueRotation should round-trip functions."); - + layer.rasterHueRotation = nil; XCTAssertTrue(rawLayer->getRasterHueRotate().isUndefined(), @"Unsetting rasterHueRotation should return raster-hue-rotate to the default value."); XCTAssertEqualObjects(layer.rasterHueRotation, defaultStyleValue, @"rasterHueRotation should return the default value after being unset."); } - + // raster-opacity { XCTAssertTrue(rawLayer->getRasterOpacity().isUndefined(), @"raster-opacity should be unset initially."); MGLStyleValue<NSNumber *> *defaultStyleValue = layer.rasterOpacity; - + MGLStyleValue<NSNumber *> *styleValue = [MGLStyleValue<NSNumber *> valueWithRawValue:@0xff]; layer.rasterOpacity = styleValue; mbgl::style::PropertyValue<float> propertyValue = { 0xff }; @@ -208,7 +208,7 @@ @"Setting rasterOpacity to a constant value should update raster-opacity."); XCTAssertEqualObjects(layer.rasterOpacity, styleValue, @"rasterOpacity should round-trip constant values."); - + styleValue = [MGLStyleValue<NSNumber *> valueWithStops:@{ @18: styleValue, }]; @@ -221,20 +221,20 @@ @"Setting rasterOpacity to a function should update raster-opacity."); XCTAssertEqualObjects(layer.rasterOpacity, styleValue, @"rasterOpacity should round-trip functions."); - + layer.rasterOpacity = nil; XCTAssertTrue(rawLayer->getRasterOpacity().isUndefined(), @"Unsetting rasterOpacity should return raster-opacity to the default value."); XCTAssertEqualObjects(layer.rasterOpacity, defaultStyleValue, @"rasterOpacity should return the default value after being unset."); } - + // raster-saturation { XCTAssertTrue(rawLayer->getRasterSaturation().isUndefined(), @"raster-saturation should be unset initially."); MGLStyleValue<NSNumber *> *defaultStyleValue = layer.rasterSaturation; - + MGLStyleValue<NSNumber *> *styleValue = [MGLStyleValue<NSNumber *> valueWithRawValue:@0xff]; layer.rasterSaturation = styleValue; mbgl::style::PropertyValue<float> propertyValue = { 0xff }; @@ -242,7 +242,7 @@ @"Setting rasterSaturation to a constant value should update raster-saturation."); XCTAssertEqualObjects(layer.rasterSaturation, styleValue, @"rasterSaturation should round-trip constant values."); - + styleValue = [MGLStyleValue<NSNumber *> valueWithStops:@{ @18: styleValue, }]; @@ -255,7 +255,7 @@ @"Setting rasterSaturation to a function should update raster-saturation."); XCTAssertEqualObjects(layer.rasterSaturation, styleValue, @"rasterSaturation should round-trip functions."); - + layer.rasterSaturation = nil; XCTAssertTrue(rawLayer->getRasterSaturation().isUndefined(), @"Unsetting rasterSaturation should return raster-saturation to the default value."); |