mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 06:50:40 +00:00
Signed-off-by: lpf <liaopengfei@h-partners.com>
moveWindowTo 与 resize 接口测试
This commit is contained in:
parent
d7dda04af6
commit
7b159e415d
@ -895,10 +895,10 @@ HWTEST_F(WindowLayoutTest, resize01, Function | MediumTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, error);
|
||||
|
||||
WMError ret = window->Resize(-500, -500);
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, ret);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
||||
ret = window->Resize(0, 0);
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, ret);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
||||
ret = window->Resize(500, 500);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
@ -936,10 +936,10 @@ HWTEST_F(WindowLayoutTest, resize02, Function | MediumTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, error);
|
||||
|
||||
WMError ret = window->Resize(-500, -500);
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, ret);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
||||
ret = window->Resize(0, 0);
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, ret);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
||||
ret = window->Resize(500, 500);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
@ -977,10 +977,10 @@ HWTEST_F(WindowLayoutTest, resize03, Function | MediumTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, error);
|
||||
|
||||
WMError ret = window->Resize(-500, -500);
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, ret);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
||||
ret = window->Resize(0, 0);
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, ret);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
||||
ret = window->Resize(500, 500);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
@ -1018,10 +1018,10 @@ HWTEST_F(WindowLayoutTest, resize04, Function | MediumTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, error);
|
||||
|
||||
WMError ret = window->Resize(-500, -500);
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, ret);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
||||
ret = window->Resize(0, 0);
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, ret);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
||||
ret = window->Resize(500, 500);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
@ -1059,10 +1059,10 @@ HWTEST_F(WindowLayoutTest, resize05, Function | MediumTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, error);
|
||||
|
||||
WMError ret = window->Resize(-500, -500);
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, ret);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
||||
ret = window->Resize(0, 0);
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, ret);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
||||
ret = window->Resize(500, 500);
|
||||
ASSERT_EQ(WMError::WM_OK, ret);
|
||||
|
Loading…
Reference in New Issue
Block a user