parent
842549bba9
commit
2b6220205d
|
|
@ -33,7 +33,8 @@ namespace Microsoft.AspNet.Razor.Test.Generator
|
||||||
assemblyName: "SomeAssembly",
|
assemblyName: "SomeAssembly",
|
||||||
attributes: new TagHelperAttributeDescriptor[]
|
attributes: new TagHelperAttributeDescriptor[]
|
||||||
{
|
{
|
||||||
new TagHelperAttributeDescriptor("type", inputTypePropertyInfo)
|
new TagHelperAttributeDescriptor("type", inputTypePropertyInfo),
|
||||||
|
new TagHelperAttributeDescriptor("checked", inputCheckedPropertyInfo)
|
||||||
},
|
},
|
||||||
requiredAttributes: new[] { "type" }),
|
requiredAttributes: new[] { "type" }),
|
||||||
new TagHelperDescriptor(
|
new TagHelperDescriptor(
|
||||||
|
|
@ -45,14 +46,15 @@ namespace Microsoft.AspNet.Razor.Test.Generator
|
||||||
new TagHelperAttributeDescriptor("type", inputTypePropertyInfo),
|
new TagHelperAttributeDescriptor("type", inputTypePropertyInfo),
|
||||||
new TagHelperAttributeDescriptor("checked", inputCheckedPropertyInfo)
|
new TagHelperAttributeDescriptor("checked", inputCheckedPropertyInfo)
|
||||||
},
|
},
|
||||||
requiredAttributes: new[] { "type", "checked" }),
|
requiredAttributes: new[] { "checked" }),
|
||||||
new TagHelperDescriptor(
|
new TagHelperDescriptor(
|
||||||
tagName: "input",
|
tagName: "input",
|
||||||
typeName: "InputTagHelper",
|
typeName: "InputTagHelper",
|
||||||
assemblyName: "SomeAssembly",
|
assemblyName: "SomeAssembly",
|
||||||
attributes: new TagHelperAttributeDescriptor[]
|
attributes: new TagHelperAttributeDescriptor[]
|
||||||
{
|
{
|
||||||
new TagHelperAttributeDescriptor("type", inputTypePropertyInfo)
|
new TagHelperAttributeDescriptor("type", inputTypePropertyInfo),
|
||||||
|
new TagHelperAttributeDescriptor("checked", inputCheckedPropertyInfo)
|
||||||
},
|
},
|
||||||
requiredAttributes: new[] { "type" }),
|
requiredAttributes: new[] { "type" }),
|
||||||
new TagHelperDescriptor(
|
new TagHelperDescriptor(
|
||||||
|
|
@ -64,7 +66,7 @@ namespace Microsoft.AspNet.Razor.Test.Generator
|
||||||
new TagHelperAttributeDescriptor("type", inputTypePropertyInfo),
|
new TagHelperAttributeDescriptor("type", inputTypePropertyInfo),
|
||||||
new TagHelperAttributeDescriptor("checked", inputCheckedPropertyInfo)
|
new TagHelperAttributeDescriptor("checked", inputCheckedPropertyInfo)
|
||||||
},
|
},
|
||||||
requiredAttributes: new[] { "type", "checked" })
|
requiredAttributes: new[] { "checked" })
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,10 +35,16 @@ namespace TestOutput
|
||||||
__tagHelperExecutionContext.Add(__InputTagHelper);
|
__tagHelperExecutionContext.Add(__InputTagHelper);
|
||||||
__InputTagHelper.Type = "checkbox";
|
__InputTagHelper.Type = "checkbox";
|
||||||
__tagHelperExecutionContext.AddTagHelperAttribute("type", __InputTagHelper.Type);
|
__tagHelperExecutionContext.AddTagHelperAttribute("type", __InputTagHelper.Type);
|
||||||
|
#line 3 "DuplicateTargetTagHelper.cshtml"
|
||||||
|
__InputTagHelper.Checked = true;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __InputTagHelper.Checked);
|
||||||
__CatchAllTagHelper = CreateTagHelper<CatchAllTagHelper>();
|
__CatchAllTagHelper = CreateTagHelper<CatchAllTagHelper>();
|
||||||
__tagHelperExecutionContext.Add(__CatchAllTagHelper);
|
__tagHelperExecutionContext.Add(__CatchAllTagHelper);
|
||||||
__CatchAllTagHelper.Type = __InputTagHelper.Type;
|
__CatchAllTagHelper.Type = __InputTagHelper.Type;
|
||||||
__tagHelperExecutionContext.AddHtmlAttribute("checked", "true");
|
__CatchAllTagHelper.Checked = __InputTagHelper.Checked;
|
||||||
__tagHelperExecutionContext.Output = await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
__tagHelperExecutionContext.Output = await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||||
await WriteTagHelperAsync(__tagHelperExecutionContext);
|
await WriteTagHelperAsync(__tagHelperExecutionContext);
|
||||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue