From 13d35650c9e27595698eac4b6441cd265db6b4a4 Mon Sep 17 00:00:00 2001 From: zhaolinglan Date: Mon, 28 Aug 2023 19:51:19 +0800 Subject: [PATCH] modify code Signed-off-by: zhaolinglan --- test/unittest/cpp_test/src/input_method_attach_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unittest/cpp_test/src/input_method_attach_test.cpp b/test/unittest/cpp_test/src/input_method_attach_test.cpp index 8c90baed..f24b7d17 100644 --- a/test/unittest/cpp_test/src/input_method_attach_test.cpp +++ b/test/unittest/cpp_test/src/input_method_attach_test.cpp @@ -236,6 +236,7 @@ HWTEST_F(InputMethodAttachTest, testAttach006, TestSize.Level0) EXPECT_EQ(TextListener::keyboardStatus_, KeyboardStatus::NONE); InputMethodAttachTest::inputMethodController_->Close(); + TextListener::ResetParam(); ret = InputMethodAttachTest::inputMethodController_->Attach(textListener, true); EXPECT_EQ(ret, ErrorCode::NO_ERROR); EXPECT_EQ(TextListener::keyboardStatus_, KeyboardStatus::SHOW);