Changeset 10435 in josm for trunk/test


Ignore:
Timestamp:
2016-06-20T01:01:41+02:00 (4 years ago)
Author:
Don-vip
Message:

better fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTestIT.java

    r10434 r10435  
    9191        boolean error = false;
    9292        for (String message : errorsAndWarnings) {
    93             if (message.contains(TaggingPreset.PRESET_ICON_ERROR_MSG_PREFIX) && !source.url.contains("yopaseopor/traffic_signs")) {
     93            if (message.contains(TaggingPreset.PRESET_ICON_ERROR_MSG_PREFIX)) {
     94                error = true;
    9495                // ignore https://github.com/yopaseopor/traffic_signs_preset_JOSM because of far too frequent missing icons errors
    95                 error = true;
    96                 allMessages.add(message);
     96                if (!source.url.contains("yopaseopor/traffic_signs")) {
     97                    allMessages.add(message);
     98                }
    9799            }
    98100        }
    99101        System.out.println(error ? " => KO" : " => OK");
    100         if (error || source.url.contains("yopaseopor/traffic_signs")) {
     102        if (error) {
    101103            Main.clearLastErrorAndWarnings();
    102104        }
Note: See TracChangeset for help on using the changeset viewer.