◆ testClearClientDuringComposing
| - (bool) testClearClientDuringComposing |
|
|
|
Definition at line 77 of file FlutterTextInputPluginTest.mm.
377 [engineMock binaryMessenger])
378 .andReturn(binaryMessengerMock);
384 viewController:viewController];
389 NSDictionary* setClientConfig = @{
391 @"inputAction" :
@"action",
392 @"inputType" : @{
@"name" :
@"inputName"},
403 @"selectionBase" : @(0),
404 @"selectionExtent" : @(0),
405 @"composingBase" : @(0),
406 @"composingExtent" : @(1),
413 EXPECT_EQ([editingState[
@"composingBase"] intValue], 0);
414 EXPECT_EQ([editingState[
@"composingExtent"] intValue], 1);
424 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 77 of file FlutterTextInputPluginTest.mm.
120 [engineMock binaryMessenger])
121 .andReturn(binaryMessengerMock);
129 viewController:viewController];
133 NSDictionary* setClientConfig = @{
135 @"inputAction" :
@"action",
136 @"inputType" : @{
@"name" :
@"inputName"},
146 @"selectionBase" : @(0),
147 @"selectionExtent" : @(0),
148 @"composingBase" : @(-1),
149 @"composingExtent" : @(-1),
158 EXPECT_STREQ([editingState[
@"text"] UTF8String],
"Text");
159 EXPECT_STREQ([editingState[
@"selectionAffinity"] UTF8String],
"TextAffinity.upstream");
160 EXPECT_FALSE([editingState[
@"selectionIsDirectional"] boolValue]);
161 EXPECT_EQ([editingState[
@"selectionBase"] intValue], 0);
162 EXPECT_EQ([editingState[
@"selectionExtent"] intValue], 0);
163 EXPECT_EQ([editingState[
@"composingBase"] intValue], -1);
164 EXPECT_EQ([editingState[
@"composingExtent"] intValue], -1);
The documentation for this class was generated from the following file: