Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Linux TextEditingDeltas#29215

Merged
justinmc merged 10 commits intoflutter:mainfrom
justinmc:deltas-linux
Feb 7, 2022
Merged

Linux TextEditingDeltas#29215
justinmc merged 10 commits intoflutter:mainfrom
justinmc:deltas-linux

Conversation

@justinmc
Copy link
Contributor

This PR will bring TextEditingDeltas to Linux. See flutter/flutter#87972 (comment) for the status of all platforms.

Partial fix for flutter/flutter#87972

@godofredoc godofredoc changed the base branch from master to main November 24, 2021 07:15
@justinmc justinmc changed the title (WIP) Linux TextEditingDeltas Linux TextEditingDeltas Dec 2, 2021
@justinmc justinmc marked this pull request as ready for review December 2, 2021 23:16
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@justinmc
Copy link
Contributor Author

justinmc commented Dec 2, 2021

@cbracken About the lack of tests here. It looks like this file fl_text_input_plugin.cc currently has no tests. Is there another way to test this or what's our policy for testing Linux code like this?

I think if I wanted to instantiate FLTextInputPlugin in a test, I would need to create mocks for some classes that don't have any like FLView (constructor, example of where it's called). Seems like a big project so I want to make sure I need to do it before I spend more time on it.

@flutter-dashboard
Copy link

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

Apologies for the delay in this but this LGTM.

On my todo list is wiring up a test harness that we can use for text input on Linux.

@justinmc
Copy link
Contributor Author

justinmc commented Feb 7, 2022

Sounds good, thanks for the review. Let me know if you get the test infrastructure in place for this.

@justinmc justinmc merged commit 4f181a9 into flutter:main Feb 7, 2022
@justinmc justinmc deleted the deltas-linux branch February 7, 2022 22:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants