Changeset 8054 in josm for trunk


Ignore:
Timestamp:
2015-02-12T20:11:45+01:00 (10 years ago)
Author:
Klumbumbus
Message:

fix #11104 - add validator tests for incomplete objects (modified patch by naoliv)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/combinations.mapcss

    r8049 r8054  
    153153}
    154154
     155/* only {0.key}, see #11104 */
     156*[area][eval(number_of_tags()) = 1],
     157*[name][eval(number_of_tags()) = 1],
     158*[ref][eval(number_of_tags()) = 1] {
     159  throwWarning: tr("incomplete object: only {0}", "{0.key}");
     160}
     161/* only {0.key} and {1.key}, see #11104 */
     162*[name][area][eval(number_of_tags()) = 2],
     163*[name][ref][eval(number_of_tags()) = 2] {
     164  throwWarning: tr("incomplete object: only {0} and {1}", "{0.key}", "{1.key}");
     165}
     166
    155167/* see #9811 */
    156168*[place][place!=farm][/^addr:/],
Note: See TracChangeset for help on using the changeset viewer.