Skip to content

Globalization test updates #12377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 20, 2019
Merged

Globalization test updates #12377

merged 6 commits into from
Jul 20, 2019

Conversation

rynowak
Copy link
Member

@rynowak rynowak commented Jul 19, 2019

Globalization test updates

Fixes: #9386
Fixes: #12286

Ryan Nowak added 6 commits July 19, 2019 12:56
We don't want to put this in one of the product assemblies because that
would undo the API review xD
This lets us specify the associations between the HTML5 field types and
these settings.
While it's definitly intended for `@bind` to have culture-sensitive
output for most cases, we want the tests to behave consistently for all
developers.

So this is an attempt to use a fixed culture for all of our testing.
We used to be inconsistent between what we'd do when formatting a value
based on whether or not you specified a format.

This change brings us back into consistency.

For a `default` DateTime/DateTimeOffset we will just call ToString on
it. For a `default` nullable of these types we will return the empty
string.
@rynowak rynowak force-pushed the rynowak/globalization-tests branch from 3906045 to 2b181c9 Compare July 19, 2019 19:56
Copy link
Member

@SteveSandersonMS SteveSandersonMS left a comment

Choose a reason for hiding this comment

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

New behavior looks great!

@rynowak rynowak merged commit 4ac6a4a into master Jul 20, 2019
@ghost ghost deleted the rynowak/globalization-tests branch July 20, 2019 17:26
@mkArtakMSFT mkArtakMSFT added the tell-mode Indicates a PR which is being merged during tell-mode label Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tell-mode Indicates a PR which is being merged during tell-mode
Projects
None yet
3 participants