summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2020-02-15 12:33:31 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2020-02-17 10:14:05 +0200
commitd0dfd40b0abe32615d33f867f5b07f8d490e146e (patch)
treef899b398ec6da5bb11c0ba2991cd26f24ecc0117 /test/fixtures
parentb97f40469b6f3d386ae93bc9a23722ff017162f0 (diff)
downloadqtlocation-mapboxgl-d0dfd40b0abe32615d33f867f5b07f8d490e146e.tar.gz
[core] Add unit test for Style::Impl::onSpriteLoaded
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/map/online/0-0-0.vector.pbfbin0 -> 482553 bytes
-rw-r--r--test/fixtures/map/online/sprite.json26
-rw-r--r--test/fixtures/map/online/sprite.pngbin0 -> 3351 bytes
-rw-r--r--test/fixtures/map/online/streets.json14
-rw-r--r--test/fixtures/map/online/style.json27
5 files changed, 67 insertions, 0 deletions
diff --git a/test/fixtures/map/online/0-0-0.vector.pbf b/test/fixtures/map/online/0-0-0.vector.pbf
new file mode 100644
index 0000000000..a0f049ad43
--- /dev/null
+++ b/test/fixtures/map/online/0-0-0.vector.pbf
Binary files differ
diff --git a/test/fixtures/map/online/sprite.json b/test/fixtures/map/online/sprite.json
new file mode 100644
index 0000000000..7ec1526292
--- /dev/null
+++ b/test/fixtures/map/online/sprite.json
@@ -0,0 +1,26 @@
+{
+ "c": {
+ "x": 0,
+ "y": 0,
+ "width": 32,
+ "height": 32,
+ "pixelRatio": 1,
+ "sdf": false
+ },
+ "a": {
+ "x": 0,
+ "y": 0,
+ "width": 32,
+ "height": 32,
+ "pixelRatio": 1,
+ "sdf": false
+ },
+ "b": {
+ "x": 0,
+ "y": 0,
+ "width": 32,
+ "height": 32,
+ "pixelRatio": 1,
+ "sdf": false
+ }
+}
diff --git a/test/fixtures/map/online/sprite.png b/test/fixtures/map/online/sprite.png
new file mode 100644
index 0000000000..a02d8eb542
--- /dev/null
+++ b/test/fixtures/map/online/sprite.png
Binary files differ
diff --git a/test/fixtures/map/online/streets.json b/test/fixtures/map/online/streets.json
new file mode 100644
index 0000000000..adeb10aa78
--- /dev/null
+++ b/test/fixtures/map/online/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/online/{z}-{x}-{y}.vector.pbf" ]
+}
diff --git a/test/fixtures/map/online/style.json b/test/fixtures/map/online/style.json
new file mode 100644
index 0000000000..9543c477aa
--- /dev/null
+++ b/test/fixtures/map/online/style.json
@@ -0,0 +1,27 @@
+{
+ "version": 8,
+ "name": "Water",
+ "sources": {
+ "mapbox": {
+ "type": "vector",
+ "url": "http://127.0.0.1:3000/online/streets.json"
+ }
+ },
+ "sprite": "http://127.0.0.1:3000/online/sprite",
+ "layers": [{
+ "id": "background",
+ "type": "background",
+ "paint": {
+ "background-color": "red"
+ }
+ }, {
+ "id": "water",
+ "type": "fill",
+ "source": "mapbox",
+ "source-layer": "water",
+ "paint": {
+ "fill-pattern": "noise",
+ "fill-antialias": false
+ }
+ }]
+}