Changeset 7166 in josm for trunk/test/unit/org/openstreetmap


Ignore:
Timestamp:
2014-05-22T13:08:33+02:00 (10 years ago)
Author:
simon04
Message:

fix #10059 - MapCSS, child selector: make greater-than-sign optional

The following selectors are equivalent:
relation[type=route] way[highway]
relation[type=route] > way[highway]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.groovy

    r7165 r7166  
    257257
    258258    @Test
     259    public void testChildSelectorGreaterThanSignIsOptional() throws Exception {
     260        assert getParser("relation[type=route] way[highway]").child_selector().toString() ==
     261                getParser("relation[type=route] > way[highway]").child_selector().toString()
     262    }
     263
     264    @Test
    259265    public void testSiblingSelector() throws Exception {
    260266        def s1 = (Selector.ChildOrParentSelector) getParser("*[a?][parent_tag(\"highway\")=\"unclassified\"] + *[b?]").child_selector()
Note: See TracChangeset for help on using the changeset viewer.