Adding Issue #60 tests
This commit is contained in:
parent
73ab87dcce
commit
dec481c76c
14
test/specificity/issue60.mml
Normal file
14
test/specificity/issue60.mml
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
|
||||
"Stylesheet": [
|
||||
"issue60.mss"
|
||||
],
|
||||
"Layer": [{
|
||||
"name": "world",
|
||||
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_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"
|
||||
}
|
||||
}]
|
||||
}
|
6
test/specificity/issue60.mss
Normal file
6
test/specificity/issue60.mss
Normal file
@ -0,0 +1,6 @@
|
||||
#world {
|
||||
[NET_INFLOW > -30000] { polygon-fill: #f00; }
|
||||
[NET_INFLOW > -10000] { polygon-fill: #0f0; }
|
||||
}
|
||||
|
||||
#world [OBJECTID=12] { polygon-pattern-file:url(../resources/textures/stripe.png); }
|
6
test/specificity/issue60.result
Normal file
6
test/specificity/issue60.result
Normal file
@ -0,0 +1,6 @@
|
||||
[
|
||||
{"elements":["#world"],"filters":["OBJECTID=12"],"specificity":[1,0,1,131]},
|
||||
{"elements":["#world"],"filters":["NET_INFLOW>-10000"],"specificity":[1,0,1,83]},
|
||||
{"elements":["#world"],"filters":["NET_INFLOW>-30000"],"specificity":[1,0,1,35]},
|
||||
{"elements":["#world"],"specificity":[1,0,0,0]}
|
||||
]
|
Loading…
Reference in New Issue
Block a user