summaryrefslogtreecommitdiff
path: root/test/fixtures/resources
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2015-12-17 16:48:50 -0800
committerBruno de Oliveira Abinader <bruno@mapbox.com>2015-12-17 16:53:37 -0800
commit9d3fe01991ce881a89847b9ed44cb68cbef25efd (patch)
tree9bf67ec20dea80cf21bcdf60fbb320cd4a8f1ae2 /test/fixtures/resources
parent93725e062a3f506fc829c9da4649c9ce032b4067 (diff)
downloadqtlocation-mapboxgl-9d3fe01991ce881a89847b9ed44cb68cbef25efd.tar.gz
[core] Tests for style with unused sources
Diffstat (limited to 'test/fixtures/resources')
-rw-r--r--test/fixtures/resources/style-unused-sources.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/fixtures/resources/style-unused-sources.json b/test/fixtures/resources/style-unused-sources.json
new file mode 100644
index 0000000000..f87166a678
--- /dev/null
+++ b/test/fixtures/resources/style-unused-sources.json
@@ -0,0 +1,36 @@
+{
+ "version": 8,
+ "name": "Test",
+ "sources": {
+ "usedsource": {
+ "url": "test/fixtures/resources/source_vector.json",
+ "type": "vector"
+ },
+ "unusedsource": {
+ "url": "test/fixtures/resources/source_vector.json",
+ "type": "vector"
+ }
+ },
+ "sprite": "test/fixtures/resources/sprite",
+ "glyphs": "test/fixtures/resources/glyphs.pbf",
+ "layers": [{
+ "id": "usedlayer",
+ "type": "symbol",
+ "source": "usedsource"
+ }, {
+ "id": "unusedlayeropacity",
+ "type": "symbol",
+ "source": "unusedsource",
+ "paint" : {
+ "icon-opacity" : 0,
+ "text-opacity" : 0
+ }
+ }, {
+ "id": "unusedlayervisibility",
+ "type": "symbol",
+ "source": "unusedsource",
+ "layout" : {
+ "visibility" : "none"
+ }
+ }]
+}