diff options
author | Jesse Bounds <jesse@rebounds.net> | 2016-12-02 13:47:48 -0800 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2016-12-02 14:21:05 -0800 |
commit | 179e9c610fcc771f0c94db09cda720aabc28b752 (patch) | |
tree | cd2fa5c039c0402cc440d3d00072b588cda2d206 /platform/darwin/src/MGLStyle.mm | |
parent | 1db0a96927d53bc0216d48cf5add1254ae6cab89 (diff) | |
download | qtlocation-mapboxgl-179e9c610fcc771f0c94db09cda720aabc28b752.tar.gz |
[ios, macos] Consolidate tests of MGLStyle addSource in MGLStyleTests
This replaces the integration test of `addSource` when duplicate
identifiers are used in `MGLSourceTests` with a more direct unit test
in the style class's unit test file `MGLStyleTests`. Although tests of
the case where the same instance are actually integration tests where
the source instance itself throws, it is easier to test all of this
functionality in one place using the public facing MGLStyle API.
Diffstat (limited to 'platform/darwin/src/MGLStyle.mm')
-rw-r--r-- | platform/darwin/src/MGLStyle.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLStyle.mm b/platform/darwin/src/MGLStyle.mm index a722c993a7..56dc4ad8f7 100644 --- a/platform/darwin/src/MGLStyle.mm +++ b/platform/darwin/src/MGLStyle.mm @@ -187,7 +187,7 @@ static NSURL *MGLStyleURL_emerald; try { [source addToMapView:self.mapView]; } catch (std::runtime_error & err) { - [NSException raise:@"Could not add source" format:@"%s", err.what()]; + [NSException raise:@"MGLRedundantSourceIdentiferException" format:@"%s", err.what()]; } } |