fix input method test

Signed-off-by: 张凯 <zhangkai324@huawei.com>
Change-Id: Id0201be0dc2516508c1366584dd59466b1b2a859
This commit is contained in:
张凯 2024-08-07 07:52:09 +00:00
parent 558503facd
commit 2ecd5ea65a

View File

@ -72,6 +72,7 @@ HWTEST_F(WindowInputMethodTest, InputMethodWindow01, Function | MediumTest | Lev
{
inputMethodWindowInfo_.name = "input_method.1";
const sptr<Window>& window = Utils::CreateTestWindow(inputMethodWindowInfo_);
ASSERT_NE(window, nullptr);
ASSERT_EQ(WindowType::WINDOW_TYPE_INPUT_METHOD_FLOAT, window->GetType());
window->SetWindowGravity(WindowGravity::WINDOW_GRAVITY_BOTTOM, 0);
ASSERT_EQ(WMError::WM_OK, window->Show());