◆ testClearClientDuringComposing
| - (bool) testClearClientDuringComposing |
|
|
|
Definition at line 89 of file FlutterTextInputPluginTest.mm.
572 [engineMock binaryMessenger])
573 .andReturn(binaryMessengerMock);
579 viewController:viewController];
584 NSDictionary* setClientConfig = @{
586 @"inputAction" :
@"action",
587 @"inputType" : @{
@"name" :
@"inputName"},
598 @"selectionBase" : @(0),
599 @"selectionExtent" : @(0),
600 @"composingBase" : @(0),
601 @"composingExtent" : @(1),
608 EXPECT_EQ([editingState[
@"composingBase"] intValue], 0);
609 EXPECT_EQ([editingState[
@"composingExtent"] intValue], 1);
619 EXPECT_EQ([editingState[
@"composingBase"] intValue], [editingState[
@"composingExtent"] intValue]);
static const FlutterViewIdentifier kViewId
instancetype methodCallWithMethodName:arguments:(NSString *method,[arguments] id _Nullable arguments)
void handleMethodCall:result:(FlutterMethodCall *call,[result] FlutterResult result)
NSDictionary * editingState()
id CreateMockFlutterEngine(NSString *pasteboardString)
References _binaryMessenger, and FlutterTextInputPluginTestDelegate::_viewController.
◆ testEmptyCompositionRange
| - (bool) testEmptyCompositionRange |
|
|
|
Definition at line 89 of file FlutterTextInputPluginTest.mm.
132 [engineMock binaryMessenger])
133 .andReturn(binaryMessengerMock);
141 viewController:viewController];
145 NSDictionary* setClientConfig = @{
147 @"inputAction" :
@"action",
148 @"inputType" : @{
@"name" :
@"inputName"},
158 @"selectionBase" : @(0),
159 @"selectionExtent" : @(0),
160 @"composingBase" : @(-1),
161 @"composingExtent" : @(-1),
170 EXPECT_STREQ([editingState[
@"text"] UTF8String],
"Text");
171 EXPECT_STREQ([editingState[
@"selectionAffinity"] UTF8String],
"TextAffinity.upstream");
172 EXPECT_FALSE([editingState[
@"selectionIsDirectional"] boolValue]);
173 EXPECT_EQ([editingState[
@"selectionBase"] intValue], 0);
174 EXPECT_EQ([editingState[
@"selectionExtent"] intValue], 0);
175 EXPECT_EQ([editingState[
@"composingBase"] intValue], -1);
176 EXPECT_EQ([editingState[
@"composingExtent"] intValue], -1);
The documentation for this class was generated from the following file: