forked from MapComplete/MapComplete
		
	Add Fietsambassade logo to cyclofix; various svg- and css fixes
This commit is contained in:
		
							parent
							
								
									5e6f54f660
								
							
						
					
					
						commit
						cd548ab04b
					
				
					 21 changed files with 332 additions and 59 deletions
				
			
		|  | @ -1,6 +1,7 @@ | |||
| import {UIElement} from "../UI/UIElement"; | ||||
| UIElement.runningFromConsole = true; | ||||
| 
 | ||||
| import {Img} from "../UI/Img"; | ||||
| Img.runningFromConsole = true; | ||||
| import {equal} from "assert"; | ||||
| import T from "./TestHelper"; | ||||
| import {FromJSON} from "../Customizations/JSON/FromJSON"; | ||||
|  | @ -17,7 +18,6 @@ import {Utils} from "../Utils"; | |||
| import {Translation} from "../UI/i18n/Translation"; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| new T([ | ||||
|     ["Tag replacement works in translation", () => { | ||||
|         const tr = new Translation({ | ||||
|  | @ -35,6 +35,15 @@ new T([ | |||
|         equal((and.and[0] as Tag).key, "key"); | ||||
|         equal((and.and[1] as Tag).value, "y"); | ||||
| 
 | ||||
| 
 | ||||
|         const notReg = FromJSON.Tag("x!~y") as And; | ||||
|         equal(notReg.matches([{k:"x",v:"y"}]), false) | ||||
|         equal(notReg.matches([{k:"x",v:"z"}]), true) | ||||
|         equal(notReg.matches([{k:"x",v:""}]), true) | ||||
| 
 | ||||
|         equal(notReg.matches([]), true) | ||||
| 
 | ||||
| 
 | ||||
|     })], | ||||
|     ["Is equivalent test", (() => { | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue