aspnetcore/test/WebSites
Doug Bunting eee1a9fef4 Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error
- #5209
- update affected `HtmlHelperValiationSummaryTest` and functional tests
- add `ValidationSummaryTagHelperTest` tests to cover related scenarios

##### Behaviour changes when no errors exist for the model:
###### Tag helper
``` html
<div asp-validation-summary="ModelOnly" class="order"><h3>Oopsie<h3></div>
```
previously generated
``` html
<div class="order validation-summary-errors"><h3>Oopsie</h3><ul><li style="display:none"></li>
</ul></div>
```
and now generates
``` html
<div class="order"><h3>Oopsie</h3></div>
```
###### HTML helper
``` c#
@Html.ValidationSummary(excludePropertyErrors: true, message: "Oopsie")
```
previously generated
``` html
<div class=\"validation-summary-errors\"><span>Oopsie</span>
<ul><li style=\"display:none\"></li>
</ul></div>
```
and now generates nothing (`@HtmlString.Empty`).
2016-09-08 15:36:47 -07:00
..
ApiExplorerWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
ApplicationModelWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
BasicWebSite [Fixes #4960] Action results returned from controller actions rendered as json instead of executed 2016-07-27 14:42:46 -07:00
ControllersFromServicesClassLibrary Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
ControllersFromServicesWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
CorsWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
ErrorPageMiddlewareWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
FilesWebSite ModelBinding: Remove IsReadOnly checks and add/update tests 2016-08-04 14:20:23 -07:00
FiltersWebSite Reverting accidental changes 2016-09-08 08:28:51 -07:00
FormatterWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
HtmlGenerationWebSite Add link tag attributes to generated fallback tags. 2016-07-29 16:30:56 -07:00
Microsoft.AspNetCore.Mvc.TestConfiguration Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
RazorPageExecutionInstrumentationWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
RazorWebSite Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00
RoutingWebSite Merge branch 'rel/1.0.1' into dev 2016-08-01 14:16:58 -07:00
SimpleWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
TagHelpersWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
UserClassLibrary
VersioningWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
WebApiCompatShimWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
XmlFormattersWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00