Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8fb67771
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看板
未验证
提交
8fb67771
编写于
4月 13, 2023
作者:
O
openharmony_ci
提交者:
Gitee
4月 13, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8442 【Account】【Master】Xts case execution time sequence problem
Merge pull request !8442 from 翟孟超/timeSequence0413
上级
e341676a
76f83abd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
37 addition
and
39 deletion
+37
-39
account/appaccount/actsaccounttest/src/main/js/test/Authenticator.test.js
...nt/actsaccounttest/src/main/js/test/Authenticator.test.js
+37
-39
未找到文件。
account/appaccount/actsaccounttest/src/main/js/test/Authenticator.test.js
浏览文件 @
8fb67771
...
...
@@ -154,10 +154,12 @@ export default function ActsAccountAuthenticator() {
expect
(
data
).
assertEqual
(
true
);
appAccountManager
.
deleteAccount
(
name
).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0400 delete_account_success
"
);
done
();
}).
catch
((
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0400 delete_account_err
"
);
expect
().
assertFail
();
done
();
});
done
();
}).
catch
((
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0400 err:
"
+
JSON
.
stringify
(
err
))
expect
(
typeof
(
err
)
!=
undefined
).
assertTrue
();
...
...
@@ -188,10 +190,11 @@ export default function ActsAccountAuthenticator() {
expect
(
account
.
Constants
.
KEY_BOOLEAN_RESULT
).
assertEqual
(
'
booleanResult
'
)
appAccountManager
.
deleteAccount
(
name
).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0500 delete_account_success
"
);
done
()
}).
catch
((
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0500 delete_account_err
"
);
done
()
});
done
()
}).
catch
((
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0500 err:
"
+
JSON
.
stringify
(
err
))
expect
(
typeof
(
err
)
!=
undefined
).
assertTrue
();
...
...
@@ -220,10 +223,11 @@ export default function ActsAccountAuthenticator() {
expect
(
data
).
assertEqual
(
false
);
appAccountManager
.
deleteAccount
(
'
CheckAccountLabels_0600
'
).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0600 delete_account_success
"
);
done
()
}).
catch
((
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0600 delete_account_err
"
);
done
()
});
done
()
}).
catch
((
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0600 err:
"
+
JSON
.
stringify
(
err
))
expect
().
assertFail
();
...
...
@@ -263,21 +267,20 @@ export default function ActsAccountAuthenticator() {
appAccountManager
.
disableAppAccess
(
name
,
owner
,
(
err
,
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAppAccess_0100 disableAppAccount_err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
checkAppAccess
(
name
,
owner
,(
err
,
data
)
=>
{
appAccountManager
.
checkAppAccess
(
name
,
owner
,
async
(
err
,
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAppAccess_0100 third_err:
"
+
JSON
.
stringify
(
err
))
expect
(
err
).
assertEqual
(
null
)
expect
(
data
).
assertEqual
(
false
)
try
{
appAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountCheckAppAccess_0100 deleteAccount_success
'
)
done
();
await
appAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountCheckAppAccess_0100 deleteAccount_success
'
)
}
catch
{
console
.
debug
(
'
====>ActsAccountCheckAppAccess_0100 deleteAccount_err
'
)
expect
().
assertFail
()
}
}
done
();
})
})
})
})
...
...
@@ -307,18 +310,18 @@ export default function ActsAccountAuthenticator() {
expect
(
data
).
assertEqual
(
true
);
appAccountManager
.
disableAppAccess
(
name
,
owner
).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAppAccess_0200 disabAppAccess_data:
"
+
JSON
.
stringify
(
data
));
appAccountManager
.
checkAppAccess
(
name
,
owner
).
then
((
data
)
=>
{
appAccountManager
.
checkAppAccess
(
name
,
owner
).
then
(
async
(
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAppAccess_0200 third_data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
false
);
expect
(
data
).
assertEqual
(
false
);
try
{
appAccountManager
.
deleteAccount
(
name
)
a
wait
a
ppAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountCheckAppAccess_0200 deleteAccount_success
'
)
done
();
}
}
catch
{
console
.
debug
(
'
====>ActsAccountCheckAppAccess_0100 deleteAccount_err
'
)
expect
().
assertFail
()
}
}
done
();
}).
catch
((
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAppAccess_0200 third_err:
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
...
...
@@ -373,21 +376,20 @@ export default function ActsAccountAuthenticator() {
console
.
debug
(
"
====>ActsAccountDeleteAccountCredential_0100 getAccountCredential_err:
"
+
JSON
.
stringify
(
err
))
expect
(
err
).
assertEqual
(
null
);
console
.
debug
(
"
====>ActsAccountDeleteAccountCredential_0100 getAccountCredential_success:
"
+
JSON
.
stringify
(
data
));
appAccountManager
.
deleteAccountCredential
(
name
,
"
PIN
"
,
(
err
,
data
)
=>
{
appAccountManager
.
deleteAccountCredential
(
name
,
"
PIN
"
,
async
(
err
,
data
)
=>
{
console
.
debug
(
"
====>ActsAccountDeleteAccountCredential_0100 deleteAccountCredential_err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
expect
(
data
).
assertEqual
(
undefined
);
console
.
debug
(
"
====>ActsAccountDeleteAccountCredential_0100 deleteAccountCredential_data:
"
+
JSON
.
stringify
(
data
));
try
{
appAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountDeleteAccountCredential_0100 deleteAccount_success
'
)
done
();
await
appAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountDeleteAccountCredential_0100 deleteAccount_success
'
)
}
catch
{
console
.
debug
(
'
====>ActsAccountDeleteAccountCredential_0100 deleteAccount_err
'
)
expect
().
assertFail
()
done
();
}
done
();
})
})
});
...
...
@@ -409,17 +411,17 @@ export default function ActsAccountAuthenticator() {
console
.
debug
(
"
====>ActsAccountDeleteAccountCredential_0200 setAccountCredential_success
"
);
appAccountManager
.
getAccountCredential
(
name
,
"
PIN
"
).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountDeleteAccountCredential_0200 getAccountCredential_data:
"
+
JSON
.
stringify
(
data
));
appAccountManager
.
deleteAccountCredential
(
name
,
"
PIN
"
).
then
((
data
)
=>
{
appAccountManager
.
deleteAccountCredential
(
name
,
"
PIN
"
).
then
(
async
(
data
)
=>
{
console
.
debug
(
"
====>ActsAccountDeleteAccountCredential_0200 data:
"
+
JSON
.
stringify
(
data
));
try
{
appAccountManager
.
deleteAccount
(
name
)
a
wait
a
ppAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountDeleteAccountCredential_0200 deleteAccount_success
'
)
done
();
}
catch
{
console
.
debug
(
'
====>ActsAccountDeleteAccountCredential_0200 deleteAccount_err
'
)
expect
().
assertFail
()
}
}
done
();
}).
catch
((
err
)
=>
{
console
.
debug
(
"
====>ActsAccountDeleteAccountCredential_0200 err:
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
...
...
@@ -465,7 +467,6 @@ export default function ActsAccountAuthenticator() {
try
{
await
appAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountVerifyCredential_0100 deleteAccount_success
'
)
done
();
}
catch
{
console
.
debug
(
'
====>ActsAccountVerifyCredential_0100 deleteAccount_err
'
)
...
...
@@ -503,7 +504,6 @@ export default function ActsAccountAuthenticator() {
try
{
await
appAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountVerifyCredential_0200 removeAccount_success
'
)
done
();
}
catch
{
console
.
debug
(
'
====>ActsAccountVerifyCredential_0200 removeAccount_err
'
)
...
...
@@ -540,7 +540,6 @@ export default function ActsAccountAuthenticator() {
try
{
await
appAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountSetAuthenticatorProperties_0100 deleteAccount_success
'
)
done
();
}
catch
{
console
.
debug
(
'
====>ActsAccountSetAuthenticatorProperties_0100 deleteAccount_err
'
)
...
...
@@ -577,7 +576,6 @@ export default function ActsAccountAuthenticator() {
try
{
await
appAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountSetAuthenticatorProperties_0200 deleteAccount_success
'
)
done
();
}
catch
{
console
.
debug
(
'
====>ActsAccountSetAuthenticatorProperties_0200 deleteAccount_err
'
)
...
...
@@ -614,17 +612,17 @@ export default function ActsAccountAuthenticator() {
}
catch
(
err
)
{
console
.
debug
(
"
====>ActsAccountSelectAccountByOptions_0100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
)
done
()
}
try
{
appAccountManager
.
deleteAccount
(
name
)
a
wait
a
ppAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountSelectAccountByOptions_0100 deleteAccount_success
'
)
done
();
}
catch
{
console
.
debug
(
'
====>ActsAccountSelectAccountByOptions_0100 deleteAccount_err
'
)
expect
().
assertFail
()
done
();
}
}
done
();
});
});
...
...
@@ -649,17 +647,17 @@ export default function ActsAccountAuthenticator() {
}
catch
(
err
)
{
console
.
debug
(
"
====>ActsAccountSelectAccountByOptions_0200 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
)
done
()
}
try
{
appAccountManager
.
deleteAccount
(
name
)
a
wait
a
ppAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountSelectAccountByOptions_0200 deleteAccount_success
'
)
done
();
}
catch
{
console
.
debug
(
'
====>ActsAccountSelectAccountByOptions_0200 deleteAccount_err
'
)
expect
().
assertFail
()
done
();
}
}
done
();
});
});
...
...
@@ -684,17 +682,17 @@ export default function ActsAccountAuthenticator() {
}
catch
(
err
)
{
console
.
debug
(
"
====>ActsAccountSelectAccountByOptions_0300 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
)
done
()
}
try
{
appAccountManager
.
deleteAccount
(
name
)
a
wait
a
ppAccountManager
.
deleteAccount
(
name
)
console
.
debug
(
'
====>ActsAccountSelectAccountByOptions_0300 deleteAccount_success
'
)
done
();
}
catch
{
console
.
debug
(
'
====>ActsAccountSelectAccountByOptions_0300 deleteAccount_err
'
)
expect
().
assertFail
()
done
();
}
done
();
});
});
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录