Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 49f49d9

Browse files
author
N. Taylor Mullen
committed
- Updated test to validate `RestrictChildren` applies.
1 parent c0acbf0 commit 49f49d9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/Microsoft.AspNet.Tooling.Razor.Test/RazorPluginTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class RazorPluginTest
3131
CustomTagHelperAssembly,
3232
attributes: new TagHelperAttributeDescriptor[0],
3333
requiredAttributes: new string[0],
34+
allowedChildren: null,
3435
tagStructure: TagStructure.Unspecified,
3536
designTimeDescriptor: null);
3637

@@ -218,6 +219,7 @@ public void ProcessMessage_ResolveTagHelperDescriptors_ResolvesDesignTimeTagHelp
218219
typeof(DesignTimeTagHelper).Assembly.GetName().Name,
219220
attributes: new TagHelperAttributeDescriptor[0],
220221
requiredAttributes: new string[0],
222+
allowedChildren: new[] { "br" },
221223
tagStructure: TagStructure.NormalOrSelfClosing,
222224
designTimeDescriptor: new TagHelperDesignTimeDescriptor
223225
{
@@ -306,6 +308,7 @@ public class CustomTagHelper : TagHelper
306308
{
307309
}
308310

311+
[RestrictChildren("br")]
309312
[OutputElementHint("strong")]
310313
[TargetElement("design-time", TagStructure = TagStructure.NormalOrSelfClosing)]
311314
public class DesignTimeTagHelper : TagHelper

0 commit comments

Comments
 (0)