未验证 提交 fc7c4421 编写于 作者: O openharmony_ci 提交者: Gitee

!6743 Slove SUB_AA_OpenHarmony_OnAndOffScreen_0500 and...

!6743  Slove SUB_AA_OpenHarmony_OnAndOffScreen_0500 and SUB_AA_OpenHarmony_OnAndOffScreen_0600 fail problem
Merge pull request !6743 from zhoujun62/my_xts_acts
...@@ -84,6 +84,7 @@ export default function OnAndOffScreenTest() { ...@@ -84,6 +84,7 @@ export default function OnAndOffScreenTest() {
}) })
if (!status) { if (!status) {
await sleep(500)
let cmd = "uinput -K -d 18 -u 18"; let cmd = "uinput -K -d 18 -u 18";
await executeShellCommand(cmd, TAG1); await executeShellCommand(cmd, TAG1);
await slideScreen(TAG1); await slideScreen(TAG1);
...@@ -463,6 +464,7 @@ export default function OnAndOffScreenTest() { ...@@ -463,6 +464,7 @@ export default function OnAndOffScreenTest() {
} }
if (data.event == onForeground2) { if (data.event == onForeground2) {
await sleep(500)
let cmd = "uinput -K -d 18 -u 18"; let cmd = "uinput -K -d 18 -u 18";
await executeShellCommand(cmd, TAG); await executeShellCommand(cmd, TAG);
} }
...@@ -565,6 +567,7 @@ export default function OnAndOffScreenTest() { ...@@ -565,6 +567,7 @@ export default function OnAndOffScreenTest() {
} }
if (data.event == onForeground2 && !flag) { if (data.event == onForeground2 && !flag) {
await sleep(500)
let cmd = "uinput -K -d 18 -u 18"; let cmd = "uinput -K -d 18 -u 18";
await executeShellCommand(cmd, TAG); await executeShellCommand(cmd, TAG);
flag = true; flag = true;
...@@ -580,6 +583,7 @@ export default function OnAndOffScreenTest() { ...@@ -580,6 +583,7 @@ export default function OnAndOffScreenTest() {
} }
if (data.event == onBackground2) { if (data.event == onBackground2) {
await sleep(500)
let cmd = "uinput -K -d 18 -u 18"; let cmd = "uinput -K -d 18 -u 18";
await executeShellCommand(cmd, TAG); await executeShellCommand(cmd, TAG);
await slideScreen(TAG); await slideScreen(TAG);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册