Changeset 7170 in josm for trunk/test/unit/org
- Timestamp:
- 2014-05-22T20:55:57+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.groovy
r7167 r7170 353 353 "min_value: min(tag(x), tag(y), tag(z)); " + 354 354 "max_value: max(tag(x), tag(y), tag(z)); " + 355 "max_split: max(split(\";\", tag(widths))); " + 355 356 "}") 356 357 sheet.loadStyleSource() … … 361 362 assert mc.getCascade(Environment.DEFAULT_LAYER).get("max_value", Float.NaN, Float.class) == 8.0f 362 363 363 sheet.apply(mc, TestUtils.createPrimitive("way x=4 y=6"), 20, null, false) 364 assert mc.getCascade(Environment.DEFAULT_LAYER).get("min_value", -777f, Float.class) == -777f 365 assert mc.getCascade(Environment.DEFAULT_LAYER).get("max_value", -777f, Float.class) == -777f 364 sheet.apply(mc, TestUtils.createPrimitive("way x=4 y=6 widths=1;2;8;56;3;a"), 20, null, false) 365 assert mc.getCascade(Environment.DEFAULT_LAYER).get("min_value", -777f, Float.class) == 4 366 assert mc.getCascade(Environment.DEFAULT_LAYER).get("max_value", -777f, Float.class) == 6 367 assert mc.getCascade(Environment.DEFAULT_LAYER).get("max_split", -777f, Float.class) == 56 366 368 } 367 369 }
Note:
See TracChangeset
for help on using the changeset viewer.