diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-01-23 13:03:57 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-01-23 13:56:42 -0800 |
commit | 3f7c30f9d3716bcf1ebea617a38aebe1401e20a1 (patch) | |
tree | 07ec32304d560074904873561eaf8d02812251dc /test | |
parent | 14f3f86f6347c5d4ec2d9fe9d0ca8b05e6b06932 (diff) | |
download | qtlocation-mapboxgl-3f7c30f9d3716bcf1ebea617a38aebe1401e20a1.tar.gz |
[core] fix style parsing crash when a layer's paint property is not an object
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/style_parser/paint-nonobject.info.json | 7 | ||||
-rw-r--r-- | test/fixtures/style_parser/paint-nonobject.style.json | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/fixtures/style_parser/paint-nonobject.info.json b/test/fixtures/style_parser/paint-nonobject.info.json new file mode 100644 index 0000000000..c9ae97efd8 --- /dev/null +++ b/test/fixtures/style_parser/paint-nonobject.info.json @@ -0,0 +1,7 @@ +{ + "default": { + "log": [ + [1, "WARNING", "ParseStyle", "paint must be an object"] + ] + } +} diff --git a/test/fixtures/style_parser/paint-nonobject.style.json b/test/fixtures/style_parser/paint-nonobject.style.json new file mode 100644 index 0000000000..24ec89eda5 --- /dev/null +++ b/test/fixtures/style_parser/paint-nonobject.style.json @@ -0,0 +1,8 @@ +{ + "version": 8, + "layers": [{ + "id": "background", + "type": "background", + "paint": true + }] +} |