Changeset 15984 in josm for trunk/test/unit
- Timestamp:
- 2020-03-01T23:35:58+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.java
r15935 r15984 452 452 assertEquals(1, source.rules.size()); 453 453 Environment e = new Environment(n, new MultiCascade(), Environment.DEFAULT_LAYER, null); 454 assertTrue(source.rules.get(0). selector.matches(e));454 assertTrue(source.rules.get(0).matches(e)); 455 455 source.rules.get(0).declaration.execute(e); 456 456 assertEquals("x2;x10", e.getCascade(Environment.DEFAULT_LAYER).get("refs", null, String.class)); … … 467 467 assertEquals(1, source.rules.size()); 468 468 Environment e = new Environment(way1, new MultiCascade(), Environment.DEFAULT_LAYER, null); 469 assertTrue(source.rules.get(0). selector.matches(e));469 assertTrue(source.rules.get(0).matches(e)); 470 470 source.rules.get(0).declaration.execute(e); 471 471 assertEquals(Functions.join(",", "Alpha", "Beta"), e.getCascade(Environment.DEFAULT_LAYER).get("sorted", null, String.class)); … … 474 474 source.loadStyleSource(); 475 475 e = new Environment(way1, new MultiCascade(), Environment.DEFAULT_LAYER, null); 476 assertTrue(source.rules.get(0). selector.matches(e));476 assertTrue(source.rules.get(0).matches(e)); 477 477 source.rules.get(0).declaration.execute(e); 478 478 assertEquals(Functions.join(",", "A8", "A9"), e.getCascade(Environment.DEFAULT_LAYER).get("sorted", null, String.class)); … … 532 532 assertEquals(1, source.rules.size()); 533 533 e = new Environment(rel1, new MultiCascade(), Environment.DEFAULT_LAYER, null); 534 assertTrue(source.rules.get(0). selector.matches(e));534 assertTrue(source.rules.get(0).matches(e)); 535 535 source.rules.get(0).declaration.execute(e); 536 536 assertEquals((Integer) 1, e.getCascade(Environment.DEFAULT_LAYER).get("roles", null, Integer.class));
Note:
See TracChangeset
for help on using the changeset viewer.