Skip to content
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

Verify fast typing and bind parsing scenarios #11586

Closed
SteveSandersonMS opened this issue Jun 26, 2019 · 2 comments
Closed

Verify fast typing and bind parsing scenarios #11586

SteveSandersonMS opened this issue Jun 26, 2019 · 2 comments
Assignees
Labels
area-blazor Includes: Blazor, Razor Components task Validation This issue is used to track validation efforts

Comments

@SteveSandersonMS
Copy link
Member

To verify #11438, deploy a server-side Blazor app to an Azure location on the other side of the world, so you have maximum round-trip time.

  1. Have a textbox with bind-value:event="oninput", also wired up to display the typed value somewhere else in the UI, so it updates on every keystroke. Verify you can type much faster than the ping time to the server (e.g., 10 chars/sec, if the server is 300ms away) and none of the keystrokes are dropped or incorrectly ordered in the output. Verify you can position the cursor somewhere in the middle of an existing string, type fast, and the cursor position doesn't incorrectly jump to the end like it did before.

  2. Have a textbox bound to an int. Verify that when entering a non-parseable value (empty string, some non-numeric value, etc.) that when you tab out it reverts to the previous valid value.

  3. Same as 2, but with bind-value:event="oninput", so now you aren't allowed to enter any keystrokes that would make it unparseable. Or rather you can type them, but it will revert back to the previous value. This is kind of surprising in some ways (e.g., you can't clear the textbox completely, as it will revert to 0) but is the behavior by design now.

@SteveSandersonMS SteveSandersonMS added area-blazor Includes: Blazor, Razor Components task Validation This issue is used to track validation efforts labels Jun 26, 2019
@SteveSandersonMS SteveSandersonMS added this to To do in MVC. Validation (3.0 / 3.1) via automation Jun 26, 2019
@SteveSandersonMS SteveSandersonMS added this to the 3.0.0-preview7 milestone Jun 26, 2019
@SteveSandersonMS SteveSandersonMS self-assigned this Jun 26, 2019
@SteveSandersonMS SteveSandersonMS changed the title Verify fast typing scenarios Verify fast typing and bind parsing scenarios Jun 26, 2019
@SteveSandersonMS
Copy link
Member Author

Verified exactly as described above.

MVC. Validation (3.0 / 3.1) automation moved this from To do to Done Jul 1, 2019
@SteveSandersonMS
Copy link
Member Author

Also, verified the fast-typing scenario both with WebSockets disabled (the Azure App Service default) and enabled. It works correctly in both cases, and like you'd expect, is far less laggy with WebSockets enabled.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components task Validation This issue is used to track validation efforts
Projects
No open projects
Development

No branches or pull requests

1 participant