summaryrefslogtreecommitdiff
path: root/test/style/source.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-04-25 13:15:44 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-02 14:51:39 -0700
commita43940afb2208c61b487bfd8729bbde1bd674794 (patch)
tree53d192ea899be1d88f99aeef3d1b3255f9cb5104 /test/style/source.cpp
parent27baa34d44f0006c05ba7c417bf11e184b0bd22b (diff)
downloadqtlocation-mapboxgl-a43940afb2208c61b487bfd8729bbde1bd674794.tar.gz
[core] Runtime style layer API
Diffstat (limited to 'test/style/source.cpp')
-rw-r--r--test/style/source.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/style/source.cpp b/test/style/source.cpp
index 5023a9efea..b9eb1bc434 100644
--- a/test/style/source.cpp
+++ b/test/style/source.cpp
@@ -274,9 +274,8 @@ TEST(Source, VectorTileCorrupt) {
};
// Need to have at least one layer that uses the source.
- auto layer = std::make_unique<LineLayer>();
- layer->source = "source";
- layer->sourceLayer = "water";
+ auto layer = std::make_unique<LineLayer>("id");
+ layer->setSource("source", "water");
test.style.addLayer(std::move(layer));
auto info = std::make_unique<SourceInfo>();