- Updated tests to account for new casing.
This commit is contained in:
N. Taylor Mullen 2014-12-29 15:19:30 -08:00 committed by NTaylorMullen
parent 4c20352e2a
commit 8529ea2f0d
14 changed files with 29 additions and 28 deletions

View File

@ -11,6 +11,7 @@ namespace Microsoft.AspNet.Mvc.TagHelpers
/// <see cref="ITagHelper"/> implementation targeting &lt;textarea&gt; elements with an <c>asp-for</c> attribute.
/// </summary>
[ContentBehavior(ContentBehavior.Replace)]
[HtmlElementName("textarea")]
public class TextAreaTagHelper : TagHelper
{
private const string ForAttributeName = "asp-for";

View File

@ -29,8 +29,8 @@
</div>
<div>
<label class="order" for="Gender">Gender</label>
<input type="radio" Value="Male" id="Gender" name="Gender" /> Male
<input type="radio" Value="Female" id="Gender" name="Gender" /> Female
<input type="radio" value="Male" id="Gender" name="Gender" /> Male
<input type="radio" value="Female" id="Gender" name="Gender" /> Female
<span class="field-validation-valid" data-valmsg-for="Gender" data-valmsg-replace="true"></span>
</div>
<div class="order validation-summary-errors" data-valmsg-summary="true"><ul><li>A value is required.</li>

View File

@ -29,8 +29,8 @@
</div>
<div>
<label class="order" for="Gender">Gender</label>
<input type="radio" Value="Male" id="Gender" name="Gender" /> Male
<input type="radio" Value="Female" id="Gender" name="Gender" /> Female
<input type="radio" value="Male" id="Gender" name="Gender" /> Male
<input type="radio" value="Female" id="Gender" name="Gender" /> Female
<span class="field-validation-valid" data-valmsg-for="Gender" data-valmsg-replace="true"></span>
</div>
<div class="order validation-summary-valid" data-valmsg-summary="true"><ul><li style="display:none"></li>

View File

@ -18,7 +18,7 @@
</div>
<div>
<label class="order" for="Products">Products</label>
<select Multiple="multiple" id="Products" name="Products"><option value="0">Product_0</option>
<select multiple="multiple" id="Products" name="Products"><option value="0">Product_0</option>
<option value="1">Product_1</option>
<option selected="selected" value="2">Product_2</option>
</select>
@ -34,8 +34,8 @@
<div>
<label class="order" for="PaymentMethod">PaymentMethod</label>
<select id="PaymentMethod" multiple="multiple" name="PaymentMethod">
<option Value="Credit">Credit</option>
<option Value="Check" selected="selected">Check</option>
<option value="Credit">Credit</option>
<option value="Check" selected="selected">Check</option>
</select>
</div>
<div>
@ -63,8 +63,8 @@
</div>
<div>
<label class="order" for="Customer_Gender">Gender</label>
<input type="radio" Value="Male" id="Customer_Gender" name="Customer.Gender" /> Male
<input type="radio" Value="Female" checked="checked" id="Customer_Gender" name="Customer.Gender" /> Female
<input type="radio" value="Male" id="Customer_Gender" name="Customer.Gender" /> Male
<input type="radio" value="Female" checked="checked" id="Customer_Gender" name="Customer.Gender" /> Female
<span class="field-validation-valid" data-valmsg-for="Customer.Gender" data-valmsg-replace="true"></span>
</div>
<div class="order validation-summary-valid" data-valmsg-summary="true"><ul><li style="display:none"></li>

View File

@ -36,7 +36,7 @@
<span class="field-validation-valid" data-valmsg-for="Email" data-valmsg-replace="true"></span>
</div>
</div>
<input type="hidden" Value="0" id="EmployeeId" name="EmployeeId" />
<input type="hidden" value="0" id="EmployeeId" name="EmployeeId" />
<div class="form-group">
<label class="control-label col-md-2" for="FullName">Full Name</label>
<div class="col-md-10">
@ -47,8 +47,8 @@
<div class="form-group">
<label class="control-label col-md-2" for="Gender">Gender</label>
<div class="col-md-10">
<input type="radio" Value="M" checked="checked" id="Gender" name="Gender" /> Male
<input type="radio" Value="F" id="Gender" name="Gender" /> Female
<input type="radio" value="M" checked="checked" id="Gender" name="Gender" /> Male
<input type="radio" value="F" id="Gender" name="Gender" /> Female
<span class="field-validation-valid" data-valmsg-for="Gender" data-valmsg-replace="true"></span>
</div>
</div>
@ -69,7 +69,7 @@
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input class="btn btn-default" type="submit" Value="Create"></input>
<input class="btn btn-default" type="submit" value="Create"></input>
</div>
</div>
</div>

View File

@ -34,7 +34,7 @@
<span class="field-validation-valid" data-valmsg-for="Email" data-valmsg-replace="true"></span>
</div>
</div>
<input type="hidden" Value="0" id="EmployeeId" name="EmployeeId" />
<input type="hidden" value="0" id="EmployeeId" name="EmployeeId" />
<div class="form-group">
<label class="control-label col-md-2" for="FullName">Full Name</label>
<div class="col-md-10">
@ -45,8 +45,8 @@
<div class="form-group">
<label class="control-label col-md-2" for="Gender">Gender</label>
<div class="col-md-10">
<input type="radio" Value="M" id="Gender" name="Gender" /> Male
<input type="radio" Value="F" id="Gender" name="Gender" /> Female
<input type="radio" value="M" id="Gender" name="Gender" /> Male
<input type="radio" value="F" id="Gender" name="Gender" /> Female
<span class="field-validation-valid" data-valmsg-for="Gender" data-valmsg-replace="true"></span>
</div>
</div>
@ -67,7 +67,7 @@
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input class="btn btn-default" type="submit" Value="Create"></input>
<input class="btn btn-default" type="submit" value="Create"></input>
</div>
</div>
</div>

View File

@ -65,7 +65,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
var body = (await response.Content.ReadAsStringAsync()).Trim();
var expected = "<requestscoped>" + requestId + "</requestscoped>";
var expected = "<request-scoped>" + requestId + "</request-scoped>";
Assert.Equal(expected, body);
}
}

View File

@ -52,9 +52,9 @@ namespace Microsoft.AspNet.Mvc.Razor
generatedLineIndex: 25,
generatedCharacterIndex: 14,
contentLength: 85),
BuildLineMapping(documentAbsoluteIndex: 138,
BuildLineMapping(documentAbsoluteIndex: 139,
documentLineIndex: 4,
documentCharacterIndex: 16,
documentCharacterIndex: 17,
generatedAbsoluteIndex: 2058,
generatedLineIndex: 52,
generatedCharacterIndex: 107,

View File

@ -2,4 +2,4 @@
@addtaghelper "Microsoft.AspNet.Mvc.Razor.InputTestTagHelper, Microsoft.AspNet.Mvc.Razor.Host.Test"
<inputTest for="Now" />
<input-test for="Now" />

View File

@ -1,4 +1,4 @@
#pragma checksum "TestFiles/Input/ModelExpressionTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "11088b573392b1db9fe4cac4fff3a9ce68a72c40"
#pragma checksum "TestFiles/Input/ModelExpressionTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5de24be79bca2d0ce7e180eab7b197442352f137"
namespace Asp
{
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
@ -45,11 +45,11 @@ namespace Asp
BeginContext(120, 2, true);
WriteLiteral("\r\n");
EndContext();
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("inputTest", "test");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input-test", "test");
__Microsoft_AspNet_Mvc_Razor_InputTestTagHelper = CreateTagHelper<Microsoft.AspNet.Mvc.Razor.InputTestTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNet_Mvc_Razor_InputTestTagHelper);
__Microsoft_AspNet_Mvc_Razor_InputTestTagHelper.For = CreateModelExpression(__model => __model.Now);
__tagHelperExecutionContext.AddTagHelperAttribute("For", __Microsoft_AspNet_Mvc_Razor_InputTestTagHelper.For);
__tagHelperExecutionContext.AddTagHelperAttribute("for", __Microsoft_AspNet_Mvc_Razor_InputTestTagHelper.For);
__tagHelperExecutionContext.Output = __tagHelperRunner.RunAsync(__tagHelperExecutionContext).Result;
WriteLiteral(__tagHelperExecutionContext.Output.GenerateStartTag());
WriteLiteral(__tagHelperExecutionContext.Output.GenerateEndTag());

View File

@ -8,6 +8,6 @@
}
<body>
<div expression="Name" repeatcontent="3"></div>
<div expression="Name" repeat-content="3"></div>
<span name="foo">test content</span>
</body>

View File

@ -1,3 +1,3 @@
@using RequestServicesWebSite
@addtaghelper "RequestServicesWebSite.RequestScopedTagHelper, RequestServicesWebSite"
<requestscoped></requestscoped>
<request-scoped></request-scoped>

View File

@ -11,7 +11,7 @@
<p>Hello, you've reached the about page.</p>
<h3>Information about our website (outdated):</h3>
<websiteinformation info="new WebsiteContext {
<website-information info="new WebsiteContext {
Version = new Version(1, 1),
CopyrightYear = 1990,
Approved = true,

View File

@ -17,7 +17,7 @@
}
<div condition="!Model.Approved">
<p>This website has <strong>not</strong> been approved yet. Visit www.contoso.com for <strong makePretty="false">more</strong> information.</p>
<p>This website has <strong>not</strong> been approved yet. Visit www.contoso.com for <strong make-pretty="false">more</strong> information.</p>
</div>
<div>