mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-28 01:10:38 +00:00
MOD
Signed-off-by: cy7717 <chenyu301@huawei.com>
This commit is contained in:
parent
f86c891943
commit
0c0ed94731
@ -499,18 +499,19 @@ HWTEST_F(InputMethodPanelTest, testChangePanelFlag, TestSize.Level0)
|
||||
|
||||
// panelFlag modify to FLG_FIXED
|
||||
flag = FLG_FIXED;
|
||||
auto type = inputMethodPanel->ChangePanelFlag(flag);
|
||||
ret = inputMethodPanel->ChangePanelFlag(flag);
|
||||
EXPECT_EQ(ret, ErrorCode::NO_ERROR);
|
||||
|
||||
ret = inputMethodPanel->DestroyPanel();
|
||||
EXPECT_EQ(ret, ErrorCode::NO_ERROR);
|
||||
inputMethodPanel->DestroyPanel();
|
||||
|
||||
panelInfo = { .panelType = STATUS_BAR, .panelFlag = FLG_FLOATING };
|
||||
ret = inputMethodPanel->CreatePanel(nullptr, panelInfo);
|
||||
EXPECT_EQ(ret, ErrorCode::NO_ERROR);
|
||||
// panelType is STATUS_BAR, not allow ChangePanelFlag
|
||||
auto type = inputMethodPanel->ChangePanelFlag(flag);
|
||||
ret = inputMethodPanel->ChangePanelFlag(flag);
|
||||
EXPECT_EQ(ret, ErrorCode::ERROR_BAD_PARAMETERS);
|
||||
|
||||
inputMethodPanel->DestroyPanel();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user