diff options
author | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2018-04-23 09:05:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-23 09:05:36 -0400 |
commit | a45670cfb5752866b9c8130024a313944684c2db (patch) | |
tree | 9964a1ec295d5033204062f221615c0bcc54344a /platform/darwin/test | |
parent | 991264ae657303e172ba1cdd1aa56eb27b951c92 (diff) | |
download | qtlocation-mapboxgl-a45670cfb5752866b9c8130024a313944684c2db.tar.gz |
[ios, macos] Rename featureProperties to featureAttributes. (#11748)
* [ios, macos] Rename featureProperties to featureAttributes.
* [ios, macos] Update style documentation.
* [ios, macos] Remove featureProperties variable tests.
* [ios, macos] Update the changelogs.
Diffstat (limited to 'platform/darwin/test')
-rw-r--r-- | platform/darwin/test/MGLExpressionTests.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/test/MGLExpressionTests.mm b/platform/darwin/test/MGLExpressionTests.mm index d7c86ed07c..d54e961b00 100644 --- a/platform/darwin/test/MGLExpressionTests.mm +++ b/platform/darwin/test/MGLExpressionTests.mm @@ -183,9 +183,9 @@ using namespace std::string_literals; XCTAssertEqualObjects([NSExpression expressionWithMGLJSONObject:@[@"id"]], expression); } { - NSExpression *expression = [NSExpression expressionForVariable:@"featureProperties"]; + NSExpression *expression = [NSExpression expressionForVariable:@"featureAttributes"]; XCTAssertEqualObjects(expression.mgl_jsonExpressionObject, @[@"properties"]); - XCTAssertEqualObjects([NSExpression expressionWithFormat:@"$featureProperties"].mgl_jsonExpressionObject, @[@"properties"]); + XCTAssertEqualObjects([NSExpression expressionWithFormat:@"$featureAttributes"].mgl_jsonExpressionObject, @[@"properties"]); XCTAssertEqualObjects([NSExpression expressionWithMGLJSONObject:@[@"properties"]], expression); } { @@ -867,7 +867,7 @@ using namespace std::string_literals; } { NSExpression *expression = [NSExpression expressionForFunction:@"mgl_does:have:" - arguments:@[[NSExpression expressionForVariable:@"featureProperties"], + arguments:@[[NSExpression expressionForVariable:@"featureAttributes"], [NSExpression expressionForConstantValue:@"x"]]]; NSArray *jsonExpression = @[@"has", @"x", @[@"properties"]]; XCTAssertEqualObjects(expression.mgl_jsonExpressionObject, jsonExpression); |