-
Notifications
You must be signed in to change notification settings - Fork 29.7k
WIP Integration Test for Japanese Text Crash #24861
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
Conversation
|
@HansMuller This is a work in progress but so far I have:
Is that generally the right track so far? Are my next steps to somehow expose a way to call |
6837812 to
b6f973d
Compare
b6f973d to
4a9324c
Compare
4a9324c to
7dece7d
Compare
| } | ||
|
|
||
| /// TODO document and say never use this unless you really need it! | ||
| Future<void> setMarkedText(String markedTextValue, { Duration timeout }) async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added these three methods to driver. setMarkedText might not be necessary, but I was using it to try to reproduce the crash (unsuccessfully) exactly as it happens.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After looking into this with @HansMuller, the engine side of setEditingState seems to be unable to update the engine's native text input to contain marked text.
| Future<SetMarkedTextResult> _setMarkedText(Command command) async { | ||
| final SetMarkedText setMarkedTextCommand = command; | ||
| // TODO pass finder with command rather than using hard coded key | ||
| BinaryMessages.testSend( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how I was able to send messages to the engine, bypassing mocking. The engine does receive these commands, but the textfield doesn't update in the simulator.
|
I'm unable to reproduce the crash because I can't insert marked text into a Cupertino text field. I'm closing this in favor of an issue that addresses this problem: #24955 |
Integration test for: flutter/engine#6989