Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Conversation

@dougbu
Copy link
Contributor

@dougbu dougbu commented Mar 2, 2018

{
static DefaultEditorTemplatesTest()
{
AppContext.SetSwitch("Switch.Microsoft.AspNetCore.Mvc.UsePasswordValue", true);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was for local testing. I'll back the static constructor out.

}

[Fact]
public void PasswordTemplate_ReturnsInputElement_UsesHtmlAttributes()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really the only test you need. The others aren't directly related to this issue are they?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, I consolidated the other tests into PasswordTemplate_ReturnsInputElement_IgnoresValues(), setting everything in that. Mixing this one into that test case could be fooled by precedence between the value sources.

@dougbu dougbu force-pushed the dougbu/edit.password.7418 branch from 437d1ac to 848266f Compare March 2, 2018 23:59
dougbu added a commit to aspnet/AspNetWebStack that referenced this pull request Mar 3, 2018
- #135
- see also PR aspnet/Mvc#7430
- add quirk switch to reverse this if necessary
@dougbu
Copy link
Contributor Author

dougbu commented Mar 5, 2018

f061d32

@dougbu dougbu closed this Mar 5, 2018
@dougbu dougbu deleted the dougbu/edit.password.7418 branch March 5, 2018 16:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants