Skip to content

Ability to Integration Test Marked Text #24955

@justinmc

Description

@justinmc

In Flutter's integration/driver tests, it is not possible to programmatically type marked text into an iOS text field. Because of this, I couldn't write a regression test for flutter/engine#6989.

The crash happened when marked text was cleared from a Cupertino text field. I was not able to reproduce the crash using our driver tests because of this despite trying various hacks in the engine code. I stopped short of trying something ugly like installing a Japanese keyboard and tapping on the screen at the right location to hit the right onscreen key. My failed attempts are located in #24861.

The docs on UITextInput contain more info on marked text for anyone that's unfamiliar with phonetic input methods like the Japanese Kana keyboard.

screen shot 2018-11-28 at 9 21 44 am

CC @HansMuller

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityt: flutter driver"flutter driver", flutter_drive, or a driver testteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions