This repository was archived by the owner on Dec 14, 2018. It is now read-only.
File tree 9 files changed +18
-18
lines changed
Microsoft.AspNet.Mvc.FunctionalTests
Microsoft.AspNet.Mvc.Razor.Host.Test
RequestServicesWebSite/Views/Other
TagHelpersWebSite/Views/Home
9 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public async Task RequestServices_TagHelper()
65
65
66
66
var body = ( await response . Content . ReadAsStringAsync ( ) ) . Trim ( ) ;
67
67
68
- var expected = "<requestscoped >" + requestId + "</requestscoped >" ;
68
+ var expected = "<request-scoped >" + requestId + "</request-scoped >" ;
69
69
Assert . Equal ( expected , body ) ;
70
70
}
71
71
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ <h4>Employee</h4>
36
36
< span class ="field-validation-valid " data-valmsg-for ="Email " data-valmsg-replace ="true "> </ span >
37
37
</ div >
38
38
</ div >
39
- < input type ="hidden " Value ="0 " id ="EmployeeId " name ="EmployeeId " />
39
+ < input type ="hidden " value ="0 " id ="EmployeeId " name ="EmployeeId " />
40
40
< div class ="form-group ">
41
41
< label class ="control-label col-md-2 " for ="FullName "> Full Name</ label >
42
42
< div class ="col-md-10 ">
@@ -47,8 +47,8 @@ <h4>Employee</h4>
47
47
< div class ="form-group ">
48
48
< label class ="control-label col-md-2 " for ="Gender "> Gender</ label >
49
49
< div class ="col-md-10 ">
50
- < input type ="radio " Value ="M " checked ="checked " id ="Gender " name ="Gender " /> Male
51
- < input type ="radio " Value ="F " id ="Gender " name ="Gender " /> Female
50
+ < input type ="radio " value ="M " checked ="checked " id ="Gender " name ="Gender " /> Male
51
+ < input type ="radio " value ="F " id ="Gender " name ="Gender " /> Female
52
52
< span class ="field-validation-valid " data-valmsg-for ="Gender " data-valmsg-replace ="true "> </ span >
53
53
</ div >
54
54
</ div >
@@ -69,7 +69,7 @@ <h4>Employee</h4>
69
69
70
70
< div class ="form-group ">
71
71
< div class ="col-md-offset-2 col-md-10 ">
72
- < input class ="btn btn-default " type ="submit " Value ="Create "> </ input >
72
+ < input class ="btn btn-default " type ="submit " value ="Create "> </ input >
73
73
</ div >
74
74
</ div >
75
75
</ div >
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ <h4>Employee</h4>
34
34
< span class ="field-validation-valid " data-valmsg-for ="Email " data-valmsg-replace ="true "> </ span >
35
35
</ div >
36
36
</ div >
37
- < input type ="hidden " Value ="0 " id ="EmployeeId " name ="EmployeeId " />
37
+ < input type ="hidden " value ="0 " id ="EmployeeId " name ="EmployeeId " />
38
38
< div class ="form-group ">
39
39
< label class ="control-label col-md-2 " for ="FullName "> Full Name</ label >
40
40
< div class ="col-md-10 ">
@@ -45,8 +45,8 @@ <h4>Employee</h4>
45
45
< div class ="form-group ">
46
46
< label class ="control-label col-md-2 " for ="Gender "> Gender</ label >
47
47
< div class ="col-md-10 ">
48
- < input type ="radio " Value ="M " id ="Gender " name ="Gender " /> Male
49
- < input type ="radio " Value ="F " id ="Gender " name ="Gender " /> Female
48
+ < input type ="radio " value ="M " id ="Gender " name ="Gender " /> Male
49
+ < input type ="radio " value ="F " id ="Gender " name ="Gender " /> Female
50
50
< span class ="field-validation-valid " data-valmsg-for ="Gender " data-valmsg-replace ="true "> </ span >
51
51
</ div >
52
52
</ div >
@@ -67,7 +67,7 @@ <h4>Employee</h4>
67
67
68
68
< div class ="form-group ">
69
69
< div class ="col-md-offset-2 col-md-10 ">
70
- < input class ="btn btn-default " type ="submit " Value ="Create "> </ input >
70
+ < input class ="btn btn-default " type ="submit " value ="Create "> </ input >
71
71
</ div >
72
72
</ div >
73
73
</ div >
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ public void MvcRazorHost_GeneratesTagHelperModelExpressionCode_DesignTime()
52
52
generatedLineIndex : 25 ,
53
53
generatedCharacterIndex : 14 ,
54
54
contentLength : 85 ) ,
55
- BuildLineMapping ( documentAbsoluteIndex : 138 ,
55
+ BuildLineMapping ( documentAbsoluteIndex : 139 ,
56
56
documentLineIndex : 4 ,
57
- documentCharacterIndex : 16 ,
57
+ documentCharacterIndex : 17 ,
58
58
generatedAbsoluteIndex : 2058 ,
59
59
generatedLineIndex : 52 ,
60
60
generatedCharacterIndex : 107 ,
Original file line number Diff line number Diff line change 2
2
3
3
@addtaghelper "Microsoft.AspNet.Mvc.Razor.InputTestTagHelper, Microsoft.AspNet.Mvc.Razor.Host.Test"
4
4
5
- <inputTest for =" Now" />
5
+ <input-test for =" Now" />
Original file line number Diff line number Diff line change 1
- #pragma checksum "TestFiles/Input/ModelExpressionTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "11088b573392b1db9fe4cac4fff3a9ce68a72c40 "
1
+ #pragma checksum "TestFiles/Input/ModelExpressionTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5de24be79bca2d0ce7e180eab7b197442352f137 "
2
2
namespace Asp
3
3
{
4
4
using Microsoft . AspNet . Razor . Runtime . TagHelpers ;
@@ -43,11 +43,11 @@ public override async Task ExecuteAsync()
43
43
BeginContext ( 120 , 2 , true ) ;
44
44
WriteLiteral ( "\r \n " ) ;
45
45
EndContext ( ) ;
46
- __tagHelperExecutionContext = __tagHelperScopeManager . Begin ( "inputTest " , "test" ) ;
46
+ __tagHelperExecutionContext = __tagHelperScopeManager . Begin ( "input-test " , "test" ) ;
47
47
__Microsoft_AspNet_Mvc_Razor_InputTestTagHelper = CreateTagHelper < Microsoft . AspNet . Mvc . Razor . InputTestTagHelper > ( ) ;
48
48
__tagHelperExecutionContext . Add ( __Microsoft_AspNet_Mvc_Razor_InputTestTagHelper ) ;
49
49
__Microsoft_AspNet_Mvc_Razor_InputTestTagHelper . For = CreateModelExpression ( __model => __model . Now ) ;
50
- __tagHelperExecutionContext . AddTagHelperAttribute ( "For " , __Microsoft_AspNet_Mvc_Razor_InputTestTagHelper . For ) ;
50
+ __tagHelperExecutionContext . AddTagHelperAttribute ( "for " , __Microsoft_AspNet_Mvc_Razor_InputTestTagHelper . For ) ;
51
51
__tagHelperExecutionContext . Output = __tagHelperRunner . RunAsync ( __tagHelperExecutionContext ) . Result ;
52
52
WriteLiteral ( __tagHelperExecutionContext . Output . GenerateStartTag ( ) ) ;
53
53
WriteLiteral ( __tagHelperExecutionContext . Output . GenerateEndTag ( ) ) ;
Original file line number Diff line number Diff line change 1
1
@using RequestServicesWebSite
2
2
@addtaghelper "RequestServicesWebSite.RequestScopedTagHelper, RequestServicesWebSite"
3
- <requestscoped ></requestscoped >
3
+ <request-scoped ></request-scoped >
Original file line number Diff line number Diff line change 11
11
<p >Hello, you've reached the about page.</p >
12
12
13
13
<h3 >Information about our website (outdated):</h3 >
14
- <websiteinformation info =" new WebsiteContext {
14
+ <website-information info =" new WebsiteContext {
15
15
Version = new Version(1, 1),
16
16
CopyrightYear = 1990,
17
17
Approved = true,
Original file line number Diff line number Diff line change 17
17
}
18
18
19
19
<div condition =" !Model.Approved" >
20
- <p >This website has <strong >not</strong > been approved yet. Visit www.contoso.com for <strong makePretty =" false" >more</strong > information.</p >
20
+ <p >This website has <strong >not</strong > been approved yet. Visit www.contoso.com for <strong make-pretty =" false" >more</strong > information.</p >
21
21
</div >
22
22
23
23
<div >
You can’t perform that action at this time.
0 commit comments