◆ testClearClientDuringComposing
| - (bool) testClearClientDuringComposing |
|
|
|
Definition at line 69 of file FlutterTextInputPluginTest.mm.
357 [engineMock binaryMessenger])
358 .andReturn(binaryMessengerMock);
364 viewController:viewController];
369 NSDictionary* setClientConfig = @{
371 @"inputAction" :
@"action",
372 @"inputType" : @{
@"name" :
@"inputName"},
383 @"selectionBase" : @(0),
384 @"selectionExtent" : @(0),
385 @"composingBase" : @(0),
386 @"composingExtent" : @(1),
393 EXPECT_EQ([editingState[
@"composingBase"] intValue], 0);
394 EXPECT_EQ([editingState[
@"composingExtent"] intValue], 1);
404 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 69 of file FlutterTextInputPluginTest.mm.
100 [engineMock binaryMessenger])
101 .andReturn(binaryMessengerMock);
109 viewController:viewController];
113 NSDictionary* setClientConfig = @{
115 @"inputAction" :
@"action",
116 @"inputType" : @{
@"name" :
@"inputName"},
126 @"selectionBase" : @(0),
127 @"selectionExtent" : @(0),
128 @"composingBase" : @(-1),
129 @"composingExtent" : @(-1),
138 EXPECT_STREQ([editingState[
@"text"] UTF8String],
"Text");
139 EXPECT_STREQ([editingState[
@"selectionAffinity"] UTF8String],
"TextAffinity.upstream");
140 EXPECT_FALSE([editingState[
@"selectionIsDirectional"] boolValue]);
141 EXPECT_EQ([editingState[
@"selectionBase"] intValue], 0);
142 EXPECT_EQ([editingState[
@"selectionExtent"] intValue], 0);
143 EXPECT_EQ([editingState[
@"composingBase"] intValue], -1);
144 EXPECT_EQ([editingState[
@"composingExtent"] intValue], -1);
The documentation for this class was generated from the following file: