forked from MapComplete/MapComplete
More work on the theme generator
This commit is contained in:
parent
0f433d026a
commit
1625b21138
7 changed files with 74 additions and 31 deletions
|
@ -6,6 +6,7 @@ import {CustomLayoutFromJSON} from "../Customizations/JSON/CustomLayoutFromJSON"
|
|||
import {And} from "../Logic/TagsFilter";
|
||||
import Translation from "../UI/i18n/Translation";
|
||||
import T from "./TestHelper";
|
||||
import {Artwork} from "../Customizations/Layers/Artwork";
|
||||
|
||||
|
||||
new T([
|
||||
|
@ -21,7 +22,7 @@ new T([
|
|||
const tags = CustomLayoutFromJSON.TagsFromJson("highway~=residential|tertiary");
|
||||
equal(""+tags[0].value, ""+/residential|tertiary/);
|
||||
console.log(tags[0].asOverpass());
|
||||
|
||||
|
||||
}
|
||||
],
|
||||
["Tag replacement works in translation", () => {
|
||||
|
@ -30,5 +31,9 @@ new T([
|
|||
}).replace("{key}", "value");
|
||||
equal(tr.txt, "Test value abc");
|
||||
|
||||
}],
|
||||
["JSONify artwork layer", () => {
|
||||
const a = new Artwork();
|
||||
console.log(a.ToJson())
|
||||
}]
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue