summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-12-08 18:25:04 -0800
committerKonstantin Käfer <mail@kkaefer.com>2015-12-11 16:23:42 -0800
commit2f973d0a7e29bdaaa0fc8f2b13d040ef0c189544 (patch)
tree1e3409072b6fe95b7a9765e4efcc852a42628545 /test/fixtures
parent132b68e4fc277da10e2fbc457e54931e1c8ffd4e (diff)
downloadqtlocation-mapboxgl-2f973d0a7e29bdaaa0fc8f2b13d040ef0c189544.tar.gz
[core] parse GeoJSON source type
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/style_parser/geojson-data-inline.info.json6
-rw-r--r--test/fixtures/style_parser/geojson-data-inline.style.json9
-rw-r--r--test/fixtures/style_parser/geojson-data-url.info.json6
-rw-r--r--test/fixtures/style_parser/geojson-data-url.style.json9
-rw-r--r--test/fixtures/style_parser/geojson-invalid-data.info.json7
-rw-r--r--test/fixtures/style_parser/geojson-invalid-data.style.json9
-rw-r--r--test/fixtures/style_parser/geojson-missing-data.info.json7
-rw-r--r--test/fixtures/style_parser/geojson-missing-data.style.json8
8 files changed, 61 insertions, 0 deletions
diff --git a/test/fixtures/style_parser/geojson-data-inline.info.json b/test/fixtures/style_parser/geojson-data-inline.info.json
new file mode 100644
index 0000000000..9c25a2f488
--- /dev/null
+++ b/test/fixtures/style_parser/geojson-data-inline.info.json
@@ -0,0 +1,6 @@
+{
+ "default": {
+ "log": [
+ ]
+ }
+}
diff --git a/test/fixtures/style_parser/geojson-data-inline.style.json b/test/fixtures/style_parser/geojson-data-inline.style.json
new file mode 100644
index 0000000000..fc4fe97c78
--- /dev/null
+++ b/test/fixtures/style_parser/geojson-data-inline.style.json
@@ -0,0 +1,9 @@
+{
+ "version": 8,
+ "sources": {
+ "mapbox": {
+ "type": "geojson",
+ "data": { "type": "Feature", "geometry": { "type": "Point", "coordinates": [100.0, 0.0] } }
+ }
+ }
+}
diff --git a/test/fixtures/style_parser/geojson-data-url.info.json b/test/fixtures/style_parser/geojson-data-url.info.json
new file mode 100644
index 0000000000..9c25a2f488
--- /dev/null
+++ b/test/fixtures/style_parser/geojson-data-url.info.json
@@ -0,0 +1,6 @@
+{
+ "default": {
+ "log": [
+ ]
+ }
+}
diff --git a/test/fixtures/style_parser/geojson-data-url.style.json b/test/fixtures/style_parser/geojson-data-url.style.json
new file mode 100644
index 0000000000..a5e1c99628
--- /dev/null
+++ b/test/fixtures/style_parser/geojson-data-url.style.json
@@ -0,0 +1,9 @@
+{
+ "version": 8,
+ "sources": {
+ "mapbox": {
+ "type": "geojson",
+ "data": "asset://TEST_DATA/fixtures/geojson/point.json"
+ }
+ }
+}
diff --git a/test/fixtures/style_parser/geojson-invalid-data.info.json b/test/fixtures/style_parser/geojson-invalid-data.info.json
new file mode 100644
index 0000000000..ec4a7e2b75
--- /dev/null
+++ b/test/fixtures/style_parser/geojson-invalid-data.info.json
@@ -0,0 +1,7 @@
+{
+ "default": {
+ "log": [
+ [1, "ERROR", "ParseStyle", "GeoJSON data must be a URL or an object"]
+ ]
+ }
+}
diff --git a/test/fixtures/style_parser/geojson-invalid-data.style.json b/test/fixtures/style_parser/geojson-invalid-data.style.json
new file mode 100644
index 0000000000..ca1b275967
--- /dev/null
+++ b/test/fixtures/style_parser/geojson-invalid-data.style.json
@@ -0,0 +1,9 @@
+{
+ "version": 8,
+ "sources": {
+ "mapbox": {
+ "type": "geojson",
+ "data": 24
+ }
+ }
+}
diff --git a/test/fixtures/style_parser/geojson-missing-data.info.json b/test/fixtures/style_parser/geojson-missing-data.info.json
new file mode 100644
index 0000000000..594d01d19d
--- /dev/null
+++ b/test/fixtures/style_parser/geojson-missing-data.info.json
@@ -0,0 +1,7 @@
+{
+ "default": {
+ "log": [
+ [1, "WARNING", "ParseStyle", "GeoJSON source must have a data value"]
+ ]
+ }
+}
diff --git a/test/fixtures/style_parser/geojson-missing-data.style.json b/test/fixtures/style_parser/geojson-missing-data.style.json
new file mode 100644
index 0000000000..8af64b0176
--- /dev/null
+++ b/test/fixtures/style_parser/geojson-missing-data.style.json
@@ -0,0 +1,8 @@
+{
+ "version": 8,
+ "sources": {
+ "mapbox": {
+ "type": "geojson"
+ }
+ }
+}