提交 de1a3404 编写于 作者: lizhongyi_'s avatar lizhongyi_

1、调整promise测试例,使其可以测试到主线程await 是否卡线程的情况,2、调整syntaxcase iOS最低版本为iOS12.0,不再因为promise要求iOS13.0

上级 8dc57d96
{ {
"deploymentTarget": "13.0" "deploymentTarget": "12.0"
} }
\ No newline at end of file
...@@ -51,15 +51,12 @@ export function testSyncWithCallback(opts : AsyncOptions) : SyntaxResult { ...@@ -51,15 +51,12 @@ export function testSyncWithCallback(opts : AsyncOptions) : SyntaxResult {
async function testAwaitPromise(res : SyntaxResult) : Promise<SyntaxResult> { async function testAwaitPromise(res : SyntaxResult) : Promise<SyntaxResult> {
// #ifdef APP-ANDROID return await new Promise(function (resolve : (res : SyntaxResult) => void) {
return await new Promise(function (resolve : (res : SyntaxResult) => void) { setTimeout(() => {
resolve(res) resolve(res)
}, 2000)
}) })
// #endif
// #ifndef APP-ANDROID
return res
// #endif
} }
/** /**
* 导出一个异步方法 * 导出一个异步方法
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册