summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <brunoabinader@gmail.com>2015-06-22 22:45:42 +0300
committerBruno de Oliveira Abinader <brunoabinader@gmail.com>2015-06-22 22:46:37 +0300
commit7bfae2a1a557d10e532304822da77c3f13566749 (patch)
tree4f6b613f824f38dd9c9b691f0034dc08fc0c7777 /test
parent43d69b6a65a3ee05f41ed13ac5bf2ca943075e65 (diff)
downloadqtlocation-mapboxgl-7bfae2a1a557d10e532304822da77c3f13566749.tar.gz
Fix result value from parseProperty when T = std::array<float, 2>
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/style_parser/line-translate.info.json7
-rw-r--r--test/fixtures/style_parser/line-translate.style.json18
2 files changed, 25 insertions, 0 deletions
diff --git a/test/fixtures/style_parser/line-translate.info.json b/test/fixtures/style_parser/line-translate.info.json
new file mode 100644
index 0000000000..3d9a908eb4
--- /dev/null
+++ b/test/fixtures/style_parser/line-translate.info.json
@@ -0,0 +1,7 @@
+{
+ "default": {
+ "log": [
+ [1, "WARNING", "ParseStyle", "value must be array of two numbers"]
+ ]
+ }
+}
diff --git a/test/fixtures/style_parser/line-translate.style.json b/test/fixtures/style_parser/line-translate.style.json
new file mode 100644
index 0000000000..3c079f3520
--- /dev/null
+++ b/test/fixtures/style_parser/line-translate.style.json
@@ -0,0 +1,18 @@
+{
+ "version": 6,
+ "sources": {
+ "mapbox": {
+ "type": "vector",
+ "url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
+ "maxzoom": 14
+ }
+ },
+ "layers": [{
+ "id": "line_translate_example",
+ "type": "line",
+ "source": "mapbox",
+ "paint": {
+ "line-translate": null
+ }
+ }]
+}