aspnetcore/test/Microsoft.AspNet.Razor.Test/Generator
N. Taylor Mullen b25bf01158 Add TagHelper support for unbound data- attributes.
- Involved updating the HtmlMarkupParser to properly separate data- attributes. Prior to this change `data-foo="abc @DateTime.Now def"` would involve 1 Span for `data-foo="abc` 1 Span for `@DateTime.Now` and 1 Span for `def"`. This was very unique behavior from an attribute standpoint (as far as Razor is concerned) and made it difficult for the TagHelper rewriting system to rewrite attributes. With this change it gets broken out as follows: `|data-foo="|abc| @DateTime.Now| def|"|`.
- Added unit tests to validate the various ways you can write unbound data- attributes.
- Updated the BasicTagHelpers codegeneration test to intermix some unbound data- attributes.

#342
2015-05-18 22:43:03 -07:00
..
CodeTree
Compiler
AddImportCodeGeneratorTest.cs Remove unneeded NamespaceKeywordLength from AddImportCodeGenerator. 2015-05-18 17:21:50 -07:00
AttributeBlockCodeGeneratorTest.cs
CSharpRazorCodeGeneratorTest.cs [Fixes #50] Removed unnecessary whitespaces before text tag 2015-05-13 10:55:52 -07:00
CSharpTagHelperRenderingTest.cs Add TagHelper support for unbound data- attributes. 2015-05-18 22:43:03 -07:00
CSharpTagHelperRenderingUnitTest.cs
CodeGenTestCodeBuilder.cs
CodeGenTestHost.cs
DynamicAttributeBlockCodeGeneratorTest.cs
LineMappingTest.cs
RazorCodeGeneratorTest.cs [Fixes #50] Removed unnecessary whitespaces before text tag 2015-05-13 10:55:52 -07:00
RazorCommentCodeGeneratorTest.cs Remove unneeded NamespaceKeywordLength from AddImportCodeGenerator. 2015-05-18 17:21:50 -07:00
TabTest.cs
TagHelperAttributeValueCodeRendererTest.cs
TagHelperTestBase.cs
TestSpan.cs