summaryrefslogtreecommitdiff
path: root/test/fixtures/styles
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-07-10 17:19:53 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-07-10 17:19:53 -0700
commit8fc4d61025397180374ccc99e6798659470afb69 (patch)
tree3847d6ac7e20ea48559ae3e303a92cd626cfc0ed /test/fixtures/styles
parent0719ca73bef13d65a579f8b02b73c2e157f54cc1 (diff)
downloadqtlocation-mapboxgl-8fc4d61025397180374ccc99e6798659470afb69.tar.gz
allow setting classes in the test case
Diffstat (limited to 'test/fixtures/styles')
-rw-r--r--test/fixtures/styles/line-color.info.json13
-rw-r--r--test/fixtures/styles/line-color.style.json33
-rw-r--r--test/fixtures/styles/line-color/colored.expected.pngbin0 -> 64163 bytes
-rw-r--r--test/fixtures/styles/line-color/default.expected.pngbin0 -> 80000 bytes
4 files changed, 46 insertions, 0 deletions
diff --git a/test/fixtures/styles/line-color.info.json b/test/fixtures/styles/line-color.info.json
new file mode 100644
index 0000000000..03e33581dc
--- /dev/null
+++ b/test/fixtures/styles/line-color.info.json
@@ -0,0 +1,13 @@
+{
+ "default": {
+ "zoom": 14,
+ "center": [52.499167, 13.418056],
+ "height": 256
+ },
+ "colored": {
+ "zoom": 14,
+ "center": [52.499167, 13.418056],
+ "height": 256,
+ "classes": ["colored"]
+ }
+}
diff --git a/test/fixtures/styles/line-color.style.json b/test/fixtures/styles/line-color.style.json
new file mode 100644
index 0000000000..10f5fb9cb7
--- /dev/null
+++ b/test/fixtures/styles/line-color.style.json
@@ -0,0 +1,33 @@
+{
+ "version": 3,
+ "sources": {
+ "mapbox": {
+ "type": "vector",
+ "url": "tiles/{z}-{x}-{y}.vector.pbf",
+ "tileSize": 512,
+ "maxZoom": 14
+ }
+ },
+ "layers": [
+ {
+ "id": "background",
+ "type": "background",
+ "style": {
+ "background-color": "white"
+ }
+ },
+ {
+ "id": "road",
+ "source": "mapbox",
+ "source-layer": "road",
+ "type": "line",
+ "style": {
+ "line-width": 2,
+ "line-color": "#3590db"
+ },
+ "style.colored": {
+ "line-color": "#222222"
+ }
+ }
+ ]
+}
diff --git a/test/fixtures/styles/line-color/colored.expected.png b/test/fixtures/styles/line-color/colored.expected.png
new file mode 100644
index 0000000000..ffd1ac3fb5
--- /dev/null
+++ b/test/fixtures/styles/line-color/colored.expected.png
Binary files differ
diff --git a/test/fixtures/styles/line-color/default.expected.png b/test/fixtures/styles/line-color/default.expected.png
new file mode 100644
index 0000000000..6369f5620b
--- /dev/null
+++ b/test/fixtures/styles/line-color/default.expected.png
Binary files differ