summaryrefslogtreecommitdiff
path: root/test/fixtures/offline_download
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-04-25 14:51:27 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-25 14:51:27 -0700
commite916cc811c781404d305af946ae127d4da338a38 (patch)
tree71b6147b4fb2828de8d418972e631a17e3598be0 /test/fixtures/offline_download
parent8ce0fb4739f68cd3d5b65b0ded0346053855fa3f (diff)
downloadqtlocation-mapboxgl-e916cc811c781404d305af946ae127d4da338a38.tar.gz
[tests] Rationalize test fixtures (#4834)
Place them in a directory corresponding to the test .cpp file name.
Diffstat (limited to 'test/fixtures/offline_download')
-rw-r--r--test/fixtures/offline_download/0-0-0.vector.pbfbin0 -> 482553 bytes
-rw-r--r--test/fixtures/offline_download/empty.style.json5
-rw-r--r--test/fixtures/offline_download/geojson.json4
-rw-r--r--test/fixtures/offline_download/geojson_source.style.json10
-rw-r--r--test/fixtures/offline_download/glyph.pbfbin0 -> 74722 bytes
-rw-r--r--test/fixtures/offline_download/inline_source.style.json17
-rw-r--r--test/fixtures/offline_download/mapbox_source.style.json17
-rw-r--r--test/fixtures/offline_download/sprite.json10
-rw-r--r--test/fixtures/offline_download/sprite.pngbin0 -> 3351 bytes
-rw-r--r--test/fixtures/offline_download/streets.json14
-rw-r--r--test/fixtures/offline_download/style.json41
11 files changed, 118 insertions, 0 deletions
diff --git a/test/fixtures/offline_download/0-0-0.vector.pbf b/test/fixtures/offline_download/0-0-0.vector.pbf
new file mode 100644
index 0000000000..a0f049ad43
--- /dev/null
+++ b/test/fixtures/offline_download/0-0-0.vector.pbf
Binary files differ
diff --git a/test/fixtures/offline_download/empty.style.json b/test/fixtures/offline_download/empty.style.json
new file mode 100644
index 0000000000..61a8fadcdb
--- /dev/null
+++ b/test/fixtures/offline_download/empty.style.json
@@ -0,0 +1,5 @@
+{
+ "version": 8,
+ "sources": {},
+ "layers": []
+}
diff --git a/test/fixtures/offline_download/geojson.json b/test/fixtures/offline_download/geojson.json
new file mode 100644
index 0000000000..8b3698faf7
--- /dev/null
+++ b/test/fixtures/offline_download/geojson.json
@@ -0,0 +1,4 @@
+{
+ "type": "FeatureCollection",
+ "features": []
+}
diff --git a/test/fixtures/offline_download/geojson_source.style.json b/test/fixtures/offline_download/geojson_source.style.json
new file mode 100644
index 0000000000..ae313e319e
--- /dev/null
+++ b/test/fixtures/offline_download/geojson_source.style.json
@@ -0,0 +1,10 @@
+{
+ "version": 8,
+ "sources": {
+ "geojson": {
+ "type": "geojson",
+ "data": "http://127.0.0.1:3000/geojson.json"
+ }
+ },
+ "layers": []
+}
diff --git a/test/fixtures/offline_download/glyph.pbf b/test/fixtures/offline_download/glyph.pbf
new file mode 100644
index 0000000000..0d160f7898
--- /dev/null
+++ b/test/fixtures/offline_download/glyph.pbf
Binary files differ
diff --git a/test/fixtures/offline_download/inline_source.style.json b/test/fixtures/offline_download/inline_source.style.json
new file mode 100644
index 0000000000..ec928c6234
--- /dev/null
+++ b/test/fixtures/offline_download/inline_source.style.json
@@ -0,0 +1,17 @@
+{
+ "version": 8,
+ "sources": {
+ "inline": {
+ "type": "vector",
+ "maxzoom": 15,
+ "minzoom": 0,
+ "tiles": [ "http://127.0.0.1:3000/{z}-{x}-{y}.vector.pbf" ]
+ }
+ },
+ "layers": [{
+ "id": "fill",
+ "type": "fill",
+ "source": "inline",
+ "source-layer": "water"
+ }]
+}
diff --git a/test/fixtures/offline_download/mapbox_source.style.json b/test/fixtures/offline_download/mapbox_source.style.json
new file mode 100644
index 0000000000..75bfd6667d
--- /dev/null
+++ b/test/fixtures/offline_download/mapbox_source.style.json
@@ -0,0 +1,17 @@
+{
+ "version": 8,
+ "sources": {
+ "inline": {
+ "type": "vector",
+ "maxzoom": 15,
+ "minzoom": 0,
+ "tiles": [ "mapbox://{z}-{x}-{y}.vector.pbf" ]
+ }
+ },
+ "layers": [{
+ "id": "fill",
+ "type": "fill",
+ "source": "inline",
+ "source-layer": "water"
+ }]
+}
diff --git a/test/fixtures/offline_download/sprite.json b/test/fixtures/offline_download/sprite.json
new file mode 100644
index 0000000000..e640365519
--- /dev/null
+++ b/test/fixtures/offline_download/sprite.json
@@ -0,0 +1,10 @@
+{
+ "noise": {
+ "x": 0,
+ "y": 0,
+ "width": 32,
+ "height": 32,
+ "pixelRatio": 1,
+ "sdf": false
+ }
+}
diff --git a/test/fixtures/offline_download/sprite.png b/test/fixtures/offline_download/sprite.png
new file mode 100644
index 0000000000..a02d8eb542
--- /dev/null
+++ b/test/fixtures/offline_download/sprite.png
Binary files differ
diff --git a/test/fixtures/offline_download/streets.json b/test/fixtures/offline_download/streets.json
new file mode 100644
index 0000000000..62bf704c1a
--- /dev/null
+++ b/test/fixtures/offline_download/streets.json
@@ -0,0 +1,14 @@
+{
+ "bounds": [ -180, -85.0511, 180, 85.0511 ],
+ "center": [ 0, 0, 0 ],
+ "description": "",
+ "format": "pbf",
+ "id": "streets",
+ "maskLevel": 8,
+ "maxzoom": 15,
+ "minzoom": 0,
+ "name": "Streets",
+ "scheme": "xyz",
+ "tilejson": "2.0.0",
+ "tiles": [ "http://127.0.0.1:3000/{z}-{x}-{y}.vector.pbf" ]
+}
diff --git a/test/fixtures/offline_download/style.json b/test/fixtures/offline_download/style.json
new file mode 100644
index 0000000000..978df3aae3
--- /dev/null
+++ b/test/fixtures/offline_download/style.json
@@ -0,0 +1,41 @@
+{
+ "version": 8,
+ "name": "Water",
+ "sources": {
+ "mapbox": {
+ "type": "vector",
+ "url": "http://127.0.0.1:3000/streets.json"
+ }
+ },
+ "glyphs": "http://127.0.0.1:3000/{fontstack}/{range}.pbf",
+ "sprite": "http://127.0.0.1:3000/sprite",
+ "layers": [{
+ "id": "background",
+ "type": "background",
+ "paint": {
+ "background-color": "red"
+ }
+ }, {
+ "id": "water",
+ "type": "fill",
+ "source": "mapbox",
+ "source-layer": "water",
+ "paint": {
+ "fill-pattern": "noise"
+ }
+ }, {
+ "id": "admin",
+ "type": "symbol",
+ "source": "mapbox",
+ "source-layer": "admin",
+ "layout": {
+ "text-font": ["Helvetica"],
+ "text-field": "Text"
+ },
+ "paint": {
+ "text-color": "black",
+ "text-halo-color": "white",
+ "text-halo-width": 2
+ }
+ }]
+}