diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-04-27 13:41:00 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-04-27 13:41:29 -0700 |
commit | c6420b1549d9d9d65fa39ed2f456ff15c1093cc8 (patch) | |
tree | 46ef67f4c691b9f8b529321dca8fdafbca383de7 /platform/darwin/test | |
parent | b4b693e09f7d765b0aa84df208cf8d70ce381b45 (diff) | |
download | qtlocation-mapboxgl-c6420b1549d9d9d65fa39ed2f456ff15c1093cc8.tar.gz |
[ios] Updated offline pack tests
Updated the MGLOfflinePackProgress boxing test to test the two new fields. Wordsmithed the documentation a bit. Updated the changelog.
Diffstat (limited to 'platform/darwin/test')
-rw-r--r-- | platform/darwin/test/MGLOfflinePackTests.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/darwin/test/MGLOfflinePackTests.m b/platform/darwin/test/MGLOfflinePackTests.m index 7fb450198e..fa231ba005 100644 --- a/platform/darwin/test/MGLOfflinePackTests.m +++ b/platform/darwin/test/MGLOfflinePackTests.m @@ -20,9 +20,11 @@ - (void)testProgressBoxing { MGLOfflinePackProgress progress = { - .countOfResourcesCompleted = 1, + .countOfResourcesCompleted = 3, .countOfResourcesExpected = 2, .countOfBytesCompleted = 7, + .countOfTilesCompleted = 1, + .countOfTileBytesCompleted = 6, .maximumResourcesExpected = UINT64_MAX, }; MGLOfflinePackProgress roundTrippedProgress = [NSValue valueWithMGLOfflinePackProgress:progress].MGLOfflinePackProgressValue; @@ -30,6 +32,8 @@ XCTAssertEqual(progress.countOfResourcesCompleted, roundTrippedProgress.countOfResourcesCompleted, @"Completed resources should round-trip."); XCTAssertEqual(progress.countOfResourcesExpected, roundTrippedProgress.countOfResourcesExpected, @"Expected resources should round-trip."); XCTAssertEqual(progress.countOfBytesCompleted, roundTrippedProgress.countOfBytesCompleted, @"Completed bytes should round-trip."); + XCTAssertEqual(progress.countOfTilesCompleted, roundTrippedProgress.countOfTilesCompleted, @"Completed tiles should round-trip."); + XCTAssertEqual(progress.countOfTileBytesCompleted, roundTrippedProgress.countOfTileBytesCompleted, @"Completed tile bytes should round-trip."); XCTAssertEqual(progress.maximumResourcesExpected, roundTrippedProgress.maximumResourcesExpected, @"Maximum expected resources should round-trip."); } |