◆ testClearClientDuringComposing
- (bool) testClearClientDuringComposing |
|
|
|
Definition at line 299 of file FlutterTextInputPluginTest.mm.
304 [engineMock binaryMessenger])
305 .andReturn(binaryMessengerMock);
313 NSDictionary* setClientConfig = @{
314 @"inputAction" :
@"action",
315 @"inputType" : @{
@"name" :
@"inputName"},
326 @"selectionBase" : @(0),
327 @"selectionExtent" : @(0),
328 @"composingBase" : @(0),
329 @"composingExtent" : @(1),
336 EXPECT_EQ([editingState[
@"composingBase"] intValue], 0);
337 EXPECT_EQ([editingState[
@"composingExtent"] intValue], 1);
347 EXPECT_EQ([editingState[
@"composingBase"] intValue], [editingState[
@"composingExtent"] intValue]);
References flutter::testing::CreateMockFlutterEngine(), FlutterTextInputPlugin::editingState, FlutterTextInputPlugin::handleMethodCall:result:, and FlutterMethodCall::methodCallWithMethodName:arguments:.
◆ testEmptyCompositionRange
- (bool) testEmptyCompositionRange |
|
|
|
Definition at line 59 of file FlutterTextInputPluginTest.mm.
63 [engineMock binaryMessenger])
64 .andReturn(binaryMessengerMock);
73 NSDictionary* setClientConfig = @{
74 @"inputAction" :
@"action",
75 @"inputType" : @{
@"name" :
@"inputName"},
85 @"selectionBase" : @(0),
86 @"selectionExtent" : @(0),
87 @"composingBase" : @(-1),
88 @"composingExtent" : @(-1),
97 EXPECT_STREQ([editingState[
@"text"] UTF8String],
"Text");
98 EXPECT_STREQ([editingState[
@"selectionAffinity"] UTF8String],
"TextAffinity.upstream");
99 EXPECT_FALSE([editingState[
@"selectionIsDirectional"] boolValue]);
100 EXPECT_EQ([editingState[
@"selectionBase"] intValue], 0);
101 EXPECT_EQ([editingState[
@"selectionExtent"] intValue], 0);
102 EXPECT_EQ([editingState[
@"composingBase"] intValue], -1);
103 EXPECT_EQ([editingState[
@"composingExtent"] intValue], -1);
References flutter::testing::CreateMockFlutterEngine(), FlutterTextInputPlugin::editingState, FlutterTextInputPlugin::handleMethodCall:result:, and FlutterMethodCall::methodCallWithMethodName:arguments:.
The documentation for this class was generated from the following file: