Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
b4f39d55
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
b4f39d55
编写于
7月 04, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 04, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9148 Bugfix:修复延时函数异常问题
Merge pull request !9148 from gaolang/master
上级
fec469e3
f97538e4
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
20 addition
and
20 deletion
+20
-20
ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
...lesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
+20
-20
未找到文件。
ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
浏览文件 @
b4f39d55
...
@@ -193,8 +193,8 @@ export default function lifecycleTest() {
...
@@ -193,8 +193,8 @@ export default function lifecycleTest() {
expect(code).assertEqual(0);
expect(code).assertEqual(0);
console.log("------------Singlehap_LifeCycleTest_0200 END-------------");
console.log("------------Singlehap_LifeCycleTest_0200 END-------------");
done();
done();
},
10
00);
},
5
00);
}, 3
0
00);
}, 3
5
00);
});
});
/*
/*
...
@@ -279,7 +279,7 @@ export default function lifecycleTest() {
...
@@ -279,7 +279,7 @@ export default function lifecycleTest() {
console.log("------------Singlehap_LifeCycleTest_0300 END-------------");
console.log("------------Singlehap_LifeCycleTest_0300 END-------------");
done();
done();
}, 2000);
}, 2000);
}, 3
0
00);
}, 3
5
00);
});
});
/*
/*
...
@@ -808,7 +808,7 @@ export default function lifecycleTest() {
...
@@ -808,7 +808,7 @@ export default function lifecycleTest() {
}).catch((error) => {
}).catch((error) => {
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
})
})
}, 2
0
00);
}, 2
5
00);
setTimeout(function () {
setTimeout(function () {
console.log(TAG + " registerAbilityLifecycleCallback listKey : " + JSON.stringify(globalThis.list1));
console.log(TAG + " registerAbilityLifecycleCallback listKey : " + JSON.stringify(globalThis.list1));
console.log(TAG + " registerAbilityLifecycleCallback callbackid : " + JSON.stringify(globalThis.callbackid1));
console.log(TAG + " registerAbilityLifecycleCallback callbackid : " + JSON.stringify(globalThis.callbackid1));
...
@@ -852,7 +852,7 @@ export default function lifecycleTest() {
...
@@ -852,7 +852,7 @@ export default function lifecycleTest() {
console.log("------------Singlehap_LifeCycleTest_0900 END-------------");
console.log("------------Singlehap_LifeCycleTest_0900 END-------------");
done();
done();
});
});
}, 4
0
00);
}, 4
8
00);
});
});
/*
/*
...
@@ -891,7 +891,7 @@ export default function lifecycleTest() {
...
@@ -891,7 +891,7 @@ export default function lifecycleTest() {
}).catch((error) => {
}).catch((error) => {
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
})
})
}, 2
0
00);
}, 2
5
00);
setTimeout(function () {
setTimeout(function () {
console.log(TAG + " secondCallback listKey : " + JSON.stringify(globalThis.list6));
console.log(TAG + " secondCallback listKey : " + JSON.stringify(globalThis.list6));
console.log(TAG + " secondCallback callbackid : " + JSON.stringify(globalThis.callbackid6));
console.log(TAG + " secondCallback callbackid : " + JSON.stringify(globalThis.callbackid6));
...
@@ -905,7 +905,7 @@ export default function lifecycleTest() {
...
@@ -905,7 +905,7 @@ export default function lifecycleTest() {
console.log("------------Singlehap_LifeCycleTest_1000 END-------------");
console.log("------------Singlehap_LifeCycleTest_1000 END-------------");
done();
done();
});
});
},
45
00);
},
50
00);
});
});
/*
/*
...
@@ -944,7 +944,7 @@ export default function lifecycleTest() {
...
@@ -944,7 +944,7 @@ export default function lifecycleTest() {
}).catch((error) => {
}).catch((error) => {
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
})
})
}, 2
0
00);
}, 2
5
00);
setTimeout(function () {
setTimeout(function () {
console.log(TAG + " secondCallback listKey : " + JSON.stringify(globalThis.list7));
console.log(TAG + " secondCallback listKey : " + JSON.stringify(globalThis.list7));
console.log(TAG + " secondCallback callbackid : " + JSON.stringify(globalThis.callbackid7));
console.log(TAG + " secondCallback callbackid : " + JSON.stringify(globalThis.callbackid7));
...
@@ -970,7 +970,7 @@ export default function lifecycleTest() {
...
@@ -970,7 +970,7 @@ export default function lifecycleTest() {
console.log("------------Singlehap_LifeCycleTest_1100 END-------------");
console.log("------------Singlehap_LifeCycleTest_1100 END-------------");
done();
done();
});
});
}, 4
0
00);
}, 4
5
00);
});
});
/*
/*
* @tc.number Singlehap_LifeCycleTest_1200
* @tc.number Singlehap_LifeCycleTest_1200
...
@@ -1008,7 +1008,7 @@ export default function lifecycleTest() {
...
@@ -1008,7 +1008,7 @@ export default function lifecycleTest() {
}).catch((error) => {
}).catch((error) => {
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
})
})
}, 2
0
00);
}, 2
5
00);
setTimeout(function () {
setTimeout(function () {
console.log(TAG + " secondCallback listKey : " + JSON.stringify(globalThis.list8));
console.log(TAG + " secondCallback listKey : " + JSON.stringify(globalThis.list8));
console.log(TAG + " secondCallback callbackid : " + JSON.stringify(globalThis.callbackid8));
console.log(TAG + " secondCallback callbackid : " + JSON.stringify(globalThis.callbackid8));
...
@@ -1034,7 +1034,7 @@ export default function lifecycleTest() {
...
@@ -1034,7 +1034,7 @@ export default function lifecycleTest() {
console.log("------------Singlehap_LifeCycleTest_1200 END-------------");
console.log("------------Singlehap_LifeCycleTest_1200 END-------------");
done();
done();
});
});
},
4
000);
},
5
000);
});
});
/*
/*
...
@@ -1215,8 +1215,8 @@ export default function lifecycleTest() {
...
@@ -1215,8 +1215,8 @@ export default function lifecycleTest() {
}).catch((error) => {
}).catch((error) => {
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
})
})
},
10
00);
},
5
00);
}, 3
0
00);
}, 3
5
00);
setTimeout(function () {
setTimeout(function () {
console.log(TAG + " secondCallback listKey : " + JSON.stringify(globalThis.list11));
console.log(TAG + " secondCallback listKey : " + JSON.stringify(globalThis.list11));
console.log(TAG + " secondCallback callbackid : " + JSON.stringify(globalThis.callbackid11));
console.log(TAG + " secondCallback callbackid : " + JSON.stringify(globalThis.callbackid11));
...
@@ -1246,7 +1246,7 @@ export default function lifecycleTest() {
...
@@ -1246,7 +1246,7 @@ export default function lifecycleTest() {
console.log("------------Singlehap_LifeCycleTest_1500 END-------------");
console.log("------------Singlehap_LifeCycleTest_1500 END-------------");
done();
done();
});
});
},
6
000);
},
7
000);
});
});
var callbackid_NA = 100
var callbackid_NA = 100
...
@@ -1388,7 +1388,7 @@ export default function lifecycleTest() {
...
@@ -1388,7 +1388,7 @@ export default function lifecycleTest() {
}).catch((error) => {
}).catch((error) => {
console.log(TAG + " terminateSelfwithresult error: " + JSON.stringify(error));
console.log(TAG + " terminateSelfwithresult error: " + JSON.stringify(error));
});
});
},
25
00);
},
30
00);
setTimeout(function () {
setTimeout(function () {
var str = {
var str = {
"bundleName": "com.example.lifecycle_xts",
"bundleName": "com.example.lifecycle_xts",
...
@@ -1412,7 +1412,7 @@ export default function lifecycleTest() {
...
@@ -1412,7 +1412,7 @@ export default function lifecycleTest() {
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
})
})
}, 500);
}, 500);
}, 4
0
00);
}, 4
2
00);
setTimeout(function () {
setTimeout(function () {
console.log(TAG + " secondCallback listKey : " + JSON.stringify(globalThis.list12));
console.log(TAG + " secondCallback listKey : " + JSON.stringify(globalThis.list12));
console.log(TAG + " secondCallback callbackid : " + JSON.stringify(globalThis.callbackid12));
console.log(TAG + " secondCallback callbackid : " + JSON.stringify(globalThis.callbackid12));
...
@@ -1442,7 +1442,7 @@ export default function lifecycleTest() {
...
@@ -1442,7 +1442,7 @@ export default function lifecycleTest() {
console.log("------------Singlehap_LifeCycleTest_2000 END-------------");
console.log("------------Singlehap_LifeCycleTest_2000 END-------------");
done();
done();
});
});
},
62
00);
},
75
00);
});
});
/*
/*
...
@@ -1477,7 +1477,7 @@ export default function lifecycleTest() {
...
@@ -1477,7 +1477,7 @@ export default function lifecycleTest() {
}).catch((error) => {
}).catch((error) => {
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
console.error(TAG + ' start failed. Cause: ' + JSON.stringify(error));
})
})
},
10
00);
},
5
00);
setTimeout(function () {
setTimeout(function () {
console.log(TAG + " firstCallback listKey1 : " + JSON.stringify(globalThis.list1));
console.log(TAG + " firstCallback listKey1 : " + JSON.stringify(globalThis.list1));
console.log(TAG + " firstCallback callbackid1 : " + JSON.stringify(globalThis.callbackid1));
console.log(TAG + " firstCallback callbackid1 : " + JSON.stringify(globalThis.callbackid1));
...
@@ -1497,7 +1497,7 @@ export default function lifecycleTest() {
...
@@ -1497,7 +1497,7 @@ export default function lifecycleTest() {
}).catch((error) => {
}).catch((error) => {
console.log(TAG + " terminateSelfwithresult error: " + JSON.stringify(error));
console.log(TAG + " terminateSelfwithresult error: " + JSON.stringify(error));
});
});
},
4
500);
},
3
500);
setTimeout(function () {
setTimeout(function () {
console.log(TAG + " secondCallback listKey1 : " + JSON.stringify(globalThis.list1));
console.log(TAG + " secondCallback listKey1 : " + JSON.stringify(globalThis.list1));
let templist1 = globalThis.list1;
let templist1 = globalThis.list1;
...
@@ -1525,7 +1525,7 @@ export default function lifecycleTest() {
...
@@ -1525,7 +1525,7 @@ export default function lifecycleTest() {
console.log("------------Singlehap_LifeCycleTest_2100 END-------------");
console.log("------------Singlehap_LifeCycleTest_2100 END-------------");
done();
done();
});
});
}, 7
0
00);
}, 7
5
00);
});
});
})
})
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录