◆ testClearClientDuringComposing
- (bool) testClearClientDuringComposing |
|
|
|
Definition at line 70 of file FlutterTextInputPluginTest.mm.
370 [engineMock binaryMessenger])
371 .andReturn(binaryMessengerMock);
377 viewController:viewController];
382 NSDictionary* setClientConfig = @{
384 @"inputAction" :
@"action",
385 @"inputType" : @{
@"name" :
@"inputName"},
396 @"selectionBase" : @(0),
397 @"selectionExtent" : @(0),
398 @"composingBase" : @(0),
399 @"composingExtent" : @(1),
406 EXPECT_EQ([editingState[
@"composingBase"] intValue], 0);
407 EXPECT_EQ([editingState[
@"composingExtent"] intValue], 1);
417 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 70 of file FlutterTextInputPluginTest.mm.
113 [engineMock binaryMessenger])
114 .andReturn(binaryMessengerMock);
122 viewController:viewController];
126 NSDictionary* setClientConfig = @{
128 @"inputAction" :
@"action",
129 @"inputType" : @{
@"name" :
@"inputName"},
139 @"selectionBase" : @(0),
140 @"selectionExtent" : @(0),
141 @"composingBase" : @(-1),
142 @"composingExtent" : @(-1),
151 EXPECT_STREQ([editingState[
@"text"] UTF8String],
"Text");
152 EXPECT_STREQ([editingState[
@"selectionAffinity"] UTF8String],
"TextAffinity.upstream");
153 EXPECT_FALSE([editingState[
@"selectionIsDirectional"] boolValue]);
154 EXPECT_EQ([editingState[
@"selectionBase"] intValue], 0);
155 EXPECT_EQ([editingState[
@"selectionExtent"] intValue], 0);
156 EXPECT_EQ([editingState[
@"composingBase"] intValue], -1);
157 EXPECT_EQ([editingState[
@"composingExtent"] intValue], -1);
The documentation for this class was generated from the following file: