forked from MapComplete/MapComplete
		
	Butchering the UI framework
This commit is contained in:
		
							parent
							
								
									8d404b1ba9
								
							
						
					
					
						commit
						6415e195d1
					
				
					 90 changed files with 1012 additions and 3101 deletions
				
			
		|  | @ -145,7 +145,7 @@ export default class    TagSpec extends  T{ | |||
|                 equal("Has no name", tr.GetRenderValue({"noname": "yes"})?.txt); | ||||
|                 equal("Ook een {name}", tr.GetRenderValue({"name": "xyz"})?.txt); | ||||
|                 equal("Ook een xyz", SubstitutedTranslation.construct(tr.GetRenderValue({"name": "xyz"}), | ||||
|                     new UIEventSource<any>({"name": "xyz"})).InnerRender()); | ||||
|                     new UIEventSource<any>({"name": "xyz"})).InnerRenderAsString()); | ||||
|                 equal(undefined, tr.GetRenderValue({"foo": "bar"})); | ||||
| 
 | ||||
|             })], | ||||
|  | @ -196,7 +196,7 @@ export default class    TagSpec extends  T{ | |||
|                     const uiEl = new EditableTagRendering(new UIEventSource<any>( | ||||
|                         {leisure: "park", "access": "no"}), constr | ||||
|                     ); | ||||
|                     const rendered = uiEl.InnerRender(); | ||||
|                     const rendered = uiEl.InnerRenderAsString(); | ||||
|                     equal(true, rendered.indexOf("Niet toegankelijk") > 0) | ||||
| 
 | ||||
|                 } | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ export default class TagQuestionSpec extends T { | |||
|                         }, undefined, "Testing tag" | ||||
|                     ); | ||||
|                     const questionElement = new TagRenderingQuestion(tags, config); | ||||
|                     const html = questionElement.InnerRender(); | ||||
|                     const html = questionElement.InnerRenderAsString(); | ||||
|                     T.assertContains("What is the name of this bookcase?", html); | ||||
|                     T.assertContains("<input type='text'", html); | ||||
|                 }], | ||||
|  | @ -53,7 +53,7 @@ export default class TagQuestionSpec extends T { | |||
|                         }, undefined, "Testing tag" | ||||
|                     ); | ||||
|                     const questionElement = new TagRenderingQuestion(tags, config); | ||||
|                     const html = questionElement.InnerRender(); | ||||
|                     const html = questionElement.InnerRenderAsString(); | ||||
|                     T.assertContains("What is the name of this bookcase?", html); | ||||
|                     T.assertContains("This bookcase has no name", html); | ||||
|                     T.assertContains("<input type='text'", html); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue