diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-25 14:51:27 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-25 14:51:27 -0700 |
commit | e916cc811c781404d305af946ae127d4da338a38 (patch) | |
tree | 71b6147b4fb2828de8d418972e631a17e3598be0 /test/fixtures/map | |
parent | 8ce0fb4739f68cd3d5b65b0ded0346053855fa3f (diff) | |
download | qtlocation-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/map')
-rw-r--r-- | test/fixtures/map/offline/0-0-0.vector.pbf | bin | 0 -> 482553 bytes | |||
-rw-r--r-- | test/fixtures/map/offline/expected.png | bin | 0 -> 47842 bytes | |||
-rw-r--r-- | test/fixtures/map/offline/glyph.pbf | bin | 0 -> 74722 bytes | |||
-rw-r--r-- | test/fixtures/map/offline/sprite.json | 10 | ||||
-rw-r--r-- | test/fixtures/map/offline/sprite.png | bin | 0 -> 3351 bytes | |||
-rw-r--r-- | test/fixtures/map/offline/streets.json | 14 | ||||
-rw-r--r-- | test/fixtures/map/offline/style.json | 41 |
7 files changed, 65 insertions, 0 deletions
diff --git a/test/fixtures/map/offline/0-0-0.vector.pbf b/test/fixtures/map/offline/0-0-0.vector.pbf Binary files differnew file mode 100644 index 0000000000..a0f049ad43 --- /dev/null +++ b/test/fixtures/map/offline/0-0-0.vector.pbf diff --git a/test/fixtures/map/offline/expected.png b/test/fixtures/map/offline/expected.png Binary files differnew file mode 100644 index 0000000000..1b1c2be4c6 --- /dev/null +++ b/test/fixtures/map/offline/expected.png diff --git a/test/fixtures/map/offline/glyph.pbf b/test/fixtures/map/offline/glyph.pbf Binary files differnew file mode 100644 index 0000000000..0d160f7898 --- /dev/null +++ b/test/fixtures/map/offline/glyph.pbf diff --git a/test/fixtures/map/offline/sprite.json b/test/fixtures/map/offline/sprite.json new file mode 100644 index 0000000000..e640365519 --- /dev/null +++ b/test/fixtures/map/offline/sprite.json @@ -0,0 +1,10 @@ +{ + "noise": { + "x": 0, + "y": 0, + "width": 32, + "height": 32, + "pixelRatio": 1, + "sdf": false + } +} diff --git a/test/fixtures/map/offline/sprite.png b/test/fixtures/map/offline/sprite.png Binary files differnew file mode 100644 index 0000000000..a02d8eb542 --- /dev/null +++ b/test/fixtures/map/offline/sprite.png diff --git a/test/fixtures/map/offline/streets.json b/test/fixtures/map/offline/streets.json new file mode 100644 index 0000000000..62bf704c1a --- /dev/null +++ b/test/fixtures/map/offline/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/map/offline/style.json b/test/fixtures/map/offline/style.json new file mode 100644 index 0000000000..978df3aae3 --- /dev/null +++ b/test/fixtures/map/offline/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 + } + }] +} |