Changeset 6949 in josm


Ignore:
Timestamp:
2014-03-30T01:11:39+01:00 (6 years ago)
Author:
Don-vip
Message:

see #9667 - fix unit test

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r6927 r6949  
    260260            } else if (ChildOrParentSelectorType.SIBLING.equals(type)) {
    261261                if (e.osm instanceof Node) {
    262                     for (Way w : Utils.filteredCollection(e.osm.getReferrers(), Way.class)) {
     262                    for (Way w : Utils.filteredCollection(e.osm.getReferrers(true), Way.class)) {
    263263                        final int i = w.getNodes().indexOf(e.osm);
    264264                        if (i - 1 >= 0) {
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java

    r6881 r6949  
    7575        LinkedHashSet<String> assertionErrors = new LinkedHashSet<String>();
    7676        for (final MapCSSTagChecker.TagCheck check : c.checks) {
     77            System.out.println("Check: "+check);
    7778            for (final Map.Entry<String, Boolean> i : check.assertions.entrySet()) {
     79                System.out.println("- Assertion: "+i);
    7880                final OsmPrimitive p = TestUtils.createPrimitive(i.getKey());
    7981                final boolean isError = Utils.exists(c.getErrorsForPrimitive(p, true), new Predicate<TestError>() {
     
    9395        }
    9496        assertTrue("not all assertions included in the tests are met", assertionErrors.isEmpty());
    95 
    9697    }
    9798}
Note: See TracChangeset for help on using the changeset viewer.