Skip to content

Conversation

@bleroux
Copy link
Contributor

@bleroux bleroux commented Feb 16, 2023

Description

While working on a fix for #120194, I found another issue with current undo/redo implementation: #120794 (undo/redo might leads to the insertion of a new entry in the history).

This PR fixes #120794 and refactors one huge existing test to split it into several, more focused, tests. This will be a first step towards working on #120194 and #99186.

Related Issue

Fixes #120794

Tests

Adds 1 regression test.
Refactors 1 existing test in 4 separate tests.
Simplifies 1 existing test.

@flutter-dashboard flutter-dashboard bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. labels Feb 16, 2023
@bleroux bleroux requested a review from justinmc February 16, 2023 15:54
@Renzo-Olivares Renzo-Olivares self-requested a review February 17, 2023 00:51
Copy link
Contributor

@Renzo-Olivares Renzo-Olivares left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks for that huge test refactor, looks great!

@bleroux bleroux added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 1, 2023
@bleroux bleroux force-pushed the fix_text_history_undo_redo_should_not_add_a_new_entry branch from 4536b09 to 2fd2293 Compare March 1, 2023 07:32
@auto-submit auto-submit bot merged commit b66a547 into flutter:master Mar 1, 2023
@bleroux bleroux deleted the fix_text_history_undo_redo_should_not_add_a_new_entry branch March 1, 2023 08:57
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 3, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 3, 2023
@fbcouch fbcouch mentioned this pull request Mar 7, 2023
8 tasks
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text editing history inserts a new entry after an undo/redo.

2 participants