Opened 12 years ago

Last modified 12 years ago

#9517 closed defect

Some issues with the MapCSS validator — at Version 1

Reported by: naoliv Owned by: team
Priority: normal Milestone: 14.01
Component: Core validator Version:
Keywords: Cc:

Description (last modified by naoliv)

Include this example mapcss file:

*[name = *ref][highway] {
        throwWarning: tr("{0} and {1} are the same", "{0.key}", "{0.value}");
}

and validate one highway where the name = ref. You correctly get the validation result (saying that both are the same).

With JOSM still open (and after running the validation), edit the mapcss file and change to something like this (only the message was changed):

*[name = *ref][highway] {
        throwWarning: tr("please, fix {0} and {1}", "{0.key}", "{0.value}");
}

Go to edit, preferences, data validator, click on the local mapcss file, edit and OK (just to reload the mapcss file).
Then validate it one more time.
Note how now we have both messages: one with the old text and another with the current one.

Second problem: still with this test session, do the step above to reload the mapcss one more time (without changing anything) and then validate the data again. Now we have a duplicated message saying to fix the name and the ref.
Everytime that the mapcss file is reload the tests result get duplicated.

Change History (1)

comment:1 by naoliv, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.