Changeset 17006 in josm for trunk/test


Ignore:
Timestamp:
2020-09-03T21:50:29+02:00 (5 years ago)
Author:
simon04
Message:

fix #19754 - Tag2Link: support multi-values for wikimedia_commons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/Tag2LinkTest.java

    r16839 r17006  
    8888        Tag2Link.getLinksForTag("image", "File:Witten Brücke Gasstraße.jpg", this::addLink);
    8989        checkLinks("View image on Wikimedia Commons // https://commons.wikimedia.org/wiki/File:Witten Brücke Gasstraße.jpg");
     90        links.clear();
     91        // non-regression test for #19754
     92        Tag2Link.getLinksForTag("image", "File:Foo.jpg;File:Bar.jpg", this::addLink);
     93        checkLinks("View image on Wikimedia Commons // https://commons.wikimedia.org/wiki/File:Foo.jpg",
     94                "View image on Wikimedia Commons // https://commons.wikimedia.org/wiki/File:Bar.jpg");
    9095    }
    9196
Note: See TracChangeset for help on using the changeset viewer.