Skip to content

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Dec 19, 2019

This relands the parts of #47177 that updated the way the tester handles text editing state, and adds a new test to make sure we don't re-introduce the regression I accidentally introduced into that patch.

The original change in that patch created a race and unclear ownership of the editing state between the platform and framework. Espresso tests uncovered this by entering text very very rapidly and failing to get the expected results. The real fix will have to use some other method to send framework side state to the platform.

I'll be following this up with another patch to fix the original issue #47177 was addressing, but we want this change in here anyway.

This relands a breaking change - the migration guide is here: https://flutter.dev/docs/release/breaking-changes/test-text-input

I'll have to tweak that guide a bit since the breakage is no longer about setEditingState.

/cc @chingjun FYI

@dnfield dnfield requested a review from goderbauer December 19, 2019 16:30
@fluttergithubbot fluttergithubbot added a: tests "flutter test", flutter_test, or one of our tests f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Dec 19, 2019
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@fluttergithubbot fluttergithubbot merged commit 4ad8271 into flutter:master Dec 19, 2019
@dnfield dnfield deleted the reland_text_state branch January 9, 2020 23:54
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a: tests "flutter test", flutter_test, or one of our tests f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants