提交 b83d659c 编写于 作者: Z zhoujun62

Slove SUB_AA_OpenHarmony_OnAndOffScreen_0500 and...

Slove SUB_AA_OpenHarmony_OnAndOffScreen_0500 and SUB_AA_OpenHarmony_OnAndOffScreen_0600 fail problem
Signed-off-by: Nzhoujun62 <zhoujun62@huawei.com>
上级 e602072e
...@@ -80,6 +80,7 @@ export default function OnAndOffScreenTest() { ...@@ -80,6 +80,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);
...@@ -459,6 +460,7 @@ export default function OnAndOffScreenTest() { ...@@ -459,6 +460,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);
} }
...@@ -561,6 +563,7 @@ export default function OnAndOffScreenTest() { ...@@ -561,6 +563,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;
...@@ -576,6 +579,7 @@ export default function OnAndOffScreenTest() { ...@@ -576,6 +579,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.
先完成此消息的编辑!
想要评论请 注册