Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.embedding.engine.systemchannels.TextInputChannelTest Class Reference

Public Member Functions

void setEditableSizeAndTransformCompletes () throws JSONException
 

Detailed Description

Definition at line 24 of file TextInputChannelTest.java.

Member Function Documentation

◆ setEditableSizeAndTransformCompletes()

void io.flutter.embedding.engine.systemchannels.TextInputChannelTest.setEditableSizeAndTransformCompletes ( ) throws JSONException
inline

Definition at line 26 of file TextInputChannelTest.java.

26 {
27 TextInputChannel textInputChannel = new TextInputChannel(mock(DartExecutor.class));
28 textInputChannel.setTextInputMethodHandler(mock(TextInputChannel.TextInputMethodHandler.class));
29 JSONObject arguments = new JSONObject();
30 arguments.put("width", 100.0);
31 arguments.put("height", 20.0);
32 arguments.put("transform", new JSONArray(new double[16]));
33 MethodCall call = new MethodCall("TextInput.setEditableSizeAndTransform", arguments);
34 MethodChannel.Result result = mock(MethodChannel.Result.class);
35 textInputChannel.parsingMethodHandler.onMethodCall(call, result);
36 verify(result).success(null);
37 }
static ::testing::Matcher< GBytes * > MethodCall(const std::string &name, ::testing::Matcher< FlValue * > args)
GAsyncResult * result
def call(args)
Definition: dom.py:159

The documentation for this class was generated from the following file: