!10615 window_focus_test.cpp差异处同步

Merge pull request !10615 from 胡晗/WindowFocusTest
This commit is contained in:
openharmony_ci 2024-11-11 08:05:25 +00:00 committed by Gitee
commit 2817db9c3c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -18,6 +18,7 @@
#include "wm_common.h"
#include "window_manager.h"
#include "window_test_utils.h"
#include "scene_board_judgement.h"
using namespace testing;
using namespace testing::ext;
@ -558,6 +559,10 @@ HWTEST_F(WindowFocusTest, FocusChangedTest08, Function | MediumTest | Level3)
*/
HWTEST_F(WindowFocusTest, WindowShowWithoutFocusTest, Function | MediumTest | Level3)
{
if (SceneBoardJudgement::IsSceneBoardEnabled()) {
return;
}
fullScreenAppInfo_.name = "WindowShowWithoutFocusTest_1";
const sptr<Window>& window1 = Utils::CreateTestWindow(fullScreenAppInfo_);
if (window1 == nullptr) {