Merge pull request #365 from mapbox/variable-transforms-test-coverage
Add support for variable transforms - refs #163, and improve test covera...browserify
commit
b7819be42d
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
|
||||||
|
"Stylesheet": [
|
||||||
|
"bad_op.mss"
|
||||||
|
],
|
||||||
|
"Layer": [{
|
||||||
|
"id": "world",
|
||||||
|
"name": "world",
|
||||||
|
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
|
||||||
|
"Datasource": {
|
||||||
|
"file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip",
|
||||||
|
"type": "shape"
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
#world {
|
||||||
|
line-width: 20% + 2px;
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
bad_op.mss:2:4 If two operands differ, the first must not be %
|
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
|
||||||
|
"Stylesheet": [
|
||||||
|
"bad_op_2.mss"
|
||||||
|
],
|
||||||
|
"Layer": [{
|
||||||
|
"id": "world",
|
||||||
|
"name": "world",
|
||||||
|
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
|
||||||
|
"Datasource": {
|
||||||
|
"file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip",
|
||||||
|
"type": "shape"
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
#world {
|
||||||
|
line-width: 20px * 2%;
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
bad_op_2.mss:2:4 Percent values can only be added or subtracted from other values
|
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
|
||||||
|
"Stylesheet": [
|
||||||
|
"invaliddimension.mss"
|
||||||
|
],
|
||||||
|
"Layer": [{
|
||||||
|
"id": "world",
|
||||||
|
"name": "world",
|
||||||
|
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
|
||||||
|
"Datasource": {
|
||||||
|
"file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip",
|
||||||
|
"type": "shape"
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
#world {
|
||||||
|
line-width: 10wifflewaffles;
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
invaliddimension.mss:2:4 Invalid unit: 'wifflewaffles'
|
Loading…
Reference in new issue