aspnetcore/test/Microsoft.AspNetCore.Blazor.../TestFiles/DesignTimeCodeGenerationTest
Ryan Nowak d4cbb86f46 Add Support for Templated Components (#1404)
* Test namespace cleanup

* Add recognication for RenderFragment in tag helpers

* Remove dead code from node writers

* refactor type check

* Continue to treat child content as a delegate in codegen

* Add extension to enumerate child content

* Reorganize code generation tests

These were growing a bit disorganized, and weren't really result in good
code reuse.

* fix test base class

* Add some child-content tests

* Add an explicit node for ChildContent

Adds a strongly typed node to represent a 'ChildContent' and what it
contains. This allows us to simplify the code generation path,
detect/processes more issues in IR passes, and will be essential for
supporting multiple child content.

* Ignore ChildContent in components when it's just whitespace

* Add diagnostic for duplicate child content

* Add support for explicit child content elements

Precursor to support for multiple child content items

* Add support for multiple child-content elements

* Change delegate signature for RenderFragment<T>

* Clean up Tag Helper constants

* Allow RenderFragment<T> as a child content

* Allow renaming the template parameter

* Improve error message for invalid child content

* Add diagnostic for repeated child content parameter names
2018-09-10 18:59:51 -07:00
..
AsyncEventHandler_OnElement_ActionEventArgs_Lambda In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
AsyncEventHandler_OnElement_Action_Lambda In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
AsyncEventHandler_OnElement_Action_MethodGroup In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties Add type checking for component parameters 2018-06-05 19:58:50 -07:00
BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BindToComponent_SpecifiesValue_WithMatchingProperties Add type checking for component parameters 2018-06-05 19:58:50 -07:00
BindToComponent_SpecifiesValue_WithoutMatchingProperties In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BindToComponent_TypeChecked_WithMatchingProperties Add type checking for component parameters 2018-06-05 19:58:50 -07:00
BindToElementFallback_WithFormat_WritesAttributes In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BindToElementFallback_WritesAttributes In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BindToElementWithSuffix_WritesAttributes In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BindToElement_WritesAttributes In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BodyAndAttributeChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
BodyAndExplicitChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
BuiltIn_BindToInputCheckbox_WritesAttributes In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BuiltIn_BindToInputText_WithFormat_WritesAttributes In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BuiltIn_BindToInputText_WritesAttributes In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
BuiltIn_BindToInputWithoutType_WritesAttributes In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
ChildComponent_Simple Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithElementOnlyChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithExplicitChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithExplicitEventHandler In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
ChildComponent_WithExplicitGenericChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithExplicitStringParameter Add type checking for component parameters 2018-06-05 19:58:50 -07:00
ChildComponent_WithGenericChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithGenericChildContent_SetsParameterName Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithLambdaEventHandler Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithNonPropertyAttributes In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
ChildComponent_WithPageDirective Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithParameters Add type checking for component parameters 2018-06-05 19:58:50 -07:00
ChildComponent_WithWeaklyTypeEventHandler Fix #954 - use weak typing for 'event handlers' 2018-07-05 09:15:01 -07:00
ComponentParameter_TypeMismatch_ReportsDiagnostic Add type checking for component parameters 2018-06-05 19:58:50 -07:00
Component_WithDocType Fix #1169 ignore DOCTYPE 2018-07-23 17:42:47 -07:00
Component_WithRef Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
Component_WithRef_WithChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
Element_WithRef Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithDelegate In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
EventHandler_OnElement_WithEventArgsLambdaDelegate Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithEventArgsMethodGroup Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithLambdaDelegate In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
EventHandler_OnElement_WithNoArgMethodGroup Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithNoArgsLambdaDelegate Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithString In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
LeadingWhiteSpace_WithCSharpExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
LeadingWhiteSpace_WithComponent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
LeadingWhiteSpace_WithDirective Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
MultipleExplictChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_AsComponentParameter Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_AsComponentParameter_MixedContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_ContainsComponent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_FollowedByComponent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_Generic_AsComponentParameter Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_Generic_InImplicitExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_InAttribute Add support for Razor templates 2018-08-31 19:10:42 -07:00
RazorTemplate_InCodeBlock Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_InCodeBlock_Dynamic Add support for Razor templates 2018-08-31 19:10:42 -07:00
RazorTemplate_InExplicitExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_InImplicitExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_MultipleRoots Add support for Razor templates 2018-08-31 19:10:42 -07:00
RazorTemplate_NonGeneric_AsComponentParameter Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_NonGeneric_InImplicitExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
Regression_597 In Blazor cshtml, auto-reference Microsoft.AspNetCore.Blazor and .Components (#751) 2018-05-05 17:55:08 +01:00
Regression_609 Add regression test for 609 2018-05-22 13:58:04 -07:00
Regression_772 Fix #773 (for real this time) 2018-05-14 10:47:36 -07:00
Regression_773 Fix #773 (for real this time) 2018-05-14 10:47:36 -07:00
Regression_784 Fix #784 - allow complex content for HTML 2018-05-22 11:58:46 -07:00
ScriptTag_WithErrorSuppressed Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
TrailingWhiteSpace_WithCSharpExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
TrailingWhiteSpace_WithComponent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
TrailingWhiteSpace_WithDirective Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00