Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6752a971
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看板
未验证
提交
6752a971
编写于
3月 18, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 18, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2599 userauthtwotest人脸测试套修改
Merge pull request !2599 from 胡吉翔/useriamtwo0317
上级
376d298d
3af7a0fc
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
42 addition
and
43 deletion
+42
-43
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_Coauth_DFX_CallbackJsunit.test.js
...in/js/test/Security_IAM_Coauth_DFX_CallbackJsunit.test.js
+3
-3
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_Coauth_Func_CallbackJsunit.test.js
...n/js/test/Security_IAM_Coauth_Func_CallbackJsunit.test.js
+3
-4
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_Face_DFX_CallbackJsunit.test.js
...main/js/test/Security_IAM_Face_DFX_CallbackJsunit.test.js
+3
-3
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_Face_Func_CallbackJsunit.test.js
...ain/js/test/Security_IAM_Face_Func_CallbackJsunit.test.js
+3
-3
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_Interface_DFX_CallbackJsunit.test.js
...js/test/Security_IAM_Interface_DFX_CallbackJsunit.test.js
+3
-3
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_PIN_DFX_CallbackJsunit.test.js
.../main/js/test/Security_IAM_PIN_DFX_CallbackJsunit.test.js
+3
-3
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_PIN_Kit_CallbackJsunit.test.js
.../main/js/test/Security_IAM_PIN_Kit_CallbackJsunit.test.js
+24
-24
未找到文件。
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_Coauth_DFX_CallbackJsunit.test.js
浏览文件 @
6752a971
...
...
@@ -19,9 +19,9 @@ import userIDM from '@ohos.userIDM'
import
pinAuth
from
'
@ohos.pinAuth
'
import
*
as
publicFC
from
'
./Publicfunction-n
'
let
UserIDM
=
userIDM
.
constructor
()
let
PinAuth
=
pinAuth
.
constructor
()
let
UserAuth
=
userAuth
.
constructor
()
let
UserIDM
=
new
userIDM
.
UserIdentityManager
();
let
PinAuth
=
new
pinAuth
.
PINAuth
();
let
UserAuth
=
new
userAuth
.
UserAuth
();
let
AuthType
=
{
PIN
:
1
,
...
...
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_Coauth_Func_CallbackJsunit.test.js
浏览文件 @
6752a971
...
...
@@ -20,10 +20,9 @@ import userIDM from '@ohos.userIDM'
import
pinAuth
from
'
@ohos.pinAuth
'
import
*
as
publicFC
from
'
./Publicfunction-n
'
let
UserIDM
=
userIDM
.
constructor
()
let
PinAuth
=
pinAuth
.
constructor
()
let
UserAuth
=
userAuth
.
constructor
()
let
UserIDM
=
new
userIDM
.
UserIdentityManager
();
let
PinAuth
=
new
pinAuth
.
PINAuth
();
let
UserAuth
=
new
userAuth
.
UserAuth
();
let
AuthType
=
{
PIN
:
1
,
...
...
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_Face_DFX_CallbackJsunit.test.js
浏览文件 @
6752a971
...
...
@@ -19,9 +19,9 @@ import userIDM from '@ohos.userIDM'
import
pinAuth
from
'
@ohos.pinAuth
'
import
*
as
publicFC
from
'
./Publicfunction-n
'
let
UserIDM
=
userIDM
.
constructor
()
let
PinAuth
=
pinAuth
.
constructor
()
let
UserAuth
=
userAuth
.
constructor
()
let
UserIDM
=
new
userIDM
.
UserIdentityManager
();
let
PinAuth
=
new
pinAuth
.
PINAuth
();
let
UserAuth
=
new
userAuth
.
UserAuth
();
let
AuthType
=
{
PIN
:
1
,
...
...
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_Face_Func_CallbackJsunit.test.js
浏览文件 @
6752a971
...
...
@@ -19,9 +19,9 @@ import userIDM from '@ohos.userIDM'
import
pinAuth
from
'
@ohos.pinAuth
'
import
*
as
publicFC
from
'
./Publicfunction-n.js
'
let
UserIDM
=
userIDM
.
constructor
()
let
PinAuth
=
pinAuth
.
constructor
()
let
UserAuth
=
userAuth
.
constructor
()
let
UserIDM
=
new
userIDM
.
UserIdentityManager
();
let
PinAuth
=
new
pinAuth
.
PINAuth
();
let
UserAuth
=
new
userAuth
.
UserAuth
();
let
AuthType
=
{
PIN
:
1
,
...
...
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_Interface_DFX_CallbackJsunit.test.js
浏览文件 @
6752a971
...
...
@@ -20,9 +20,9 @@ import userIDM from '@ohos.userIDM'
import
pinAuth
from
'
@ohos.pinAuth
'
import
*
as
publicFC
from
'
./Publicfunction-n
'
let
UserIDM
=
userIDM
.
constructor
()
let
PinAuth
=
pinAuth
.
constructor
()
let
UserAuth
=
userAuth
.
constructor
()
let
UserIDM
=
new
userIDM
.
UserIdentityManager
();
let
PinAuth
=
new
pinAuth
.
PINAuth
();
let
UserAuth
=
new
userAuth
.
UserAuth
();
let
AuthType
=
{
PIN
:
1
,
...
...
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_PIN_DFX_CallbackJsunit.test.js
浏览文件 @
6752a971
...
...
@@ -19,9 +19,9 @@ import userIDM from '@ohos.userIDM'
import
pinAuth
from
'
@ohos.pinAuth
'
import
*
as
publicFC
from
'
./Publicfunction-n
'
let
UserIDM
=
userIDM
.
constructor
()
let
PinAuth
=
pinAuth
.
constructor
()
let
UserAuth
=
userAuth
.
constructor
()
let
UserIDM
=
new
userIDM
.
UserIdentityManager
();
let
PinAuth
=
new
pinAuth
.
PINAuth
();
let
UserAuth
=
new
userAuth
.
UserAuth
();
let
AuthType
=
{
PIN
:
1
,
...
...
useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/main/js/test/Security_IAM_PIN_Kit_CallbackJsunit.test.js
浏览文件 @
6752a971
...
...
@@ -22,10 +22,10 @@ import userAuthNorth from '@ohos.userIAM.userAuth'
import
*
as
publicFC
from
'
./Publicfunction-n
'
let
UserIDM
=
userIDM
.
constructor
()
let
PinAuth
=
pinAuth
.
constructor
()
let
UserAuth
=
userAuth
.
constructor
()
let
UserAuthKit
=
userAuthNorth
.
constructor
()
let
UserIDM
=
new
userIDM
.
UserIdentityManager
();
let
PinAuth
=
new
pinAuth
.
PINAuth
();
let
UserAuth
=
new
userAuth
.
UserAuth
();
let
UserAuthKit
=
new
userAuthNorth
.
UserAuth
()
let
AuthType
=
{
PIN
:
1
,
...
...
@@ -231,7 +231,7 @@ it('Security_IAM_PIN_Kit_Func_0103', 0, async function (done) {
},
function
(
onacquireinfo
)
{
})
let
cancelresult
=
publicFC
.
publicgecancelAuth
(
UserAuthKit
,
contextID
);
await
sleep
(
2
5
00
);
await
sleep
(
2
0
00
);
if
(
cancelresult
==
1
){
console
.
info
(
'
AuthTest_0101 cancel = 1 authresult =
'
+
authresult
);
expect
(
ResultCode
.
SUCCESS
).
assertEqual
(
authresult
);
...
...
@@ -279,25 +279,25 @@ it('Security_IAM_PIN_Kit_Func_0103', 0, async function (done) {
it
(
'
Security_IAM_PIN_Kit_Func_0105
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0105 start
'
);
expect
(
1
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_TOO_BRIGHT
);
expect
(
2
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_TOO_DARK
);
expect
(
3
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_TOO_CLOSE
);
expect
(
4
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_TOO_FAR
);
expect
(
5
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_TOO_HIGH
);
expect
(
6
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_TOO_LOW
);
expect
(
7
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_TOO_RIGHT
);
expect
(
8
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_TOO_LEFT
);
expect
(
9
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_TOO_MUCH_MOTION
);
expect
(
10
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_POOR_GAZE
);
expect
(
11
).
assertEqual
(
userAuthNorth
.
FaceTips
Code
.
FACE_AUTH_TIP_NOT_DETECTED
);
expect
(
1
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_BRIGHT
);
expect
(
2
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_DARK
);
expect
(
3
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_CLOSE
);
expect
(
4
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_FAR
);
expect
(
5
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_HIGH
);
expect
(
6
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_LOW
);
expect
(
7
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_RIGHT
);
expect
(
8
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_LEFT
);
expect
(
9
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_MUCH_MOTION
);
expect
(
10
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_POOR_GAZE
);
expect
(
11
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_NOT_DETECTED
);
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0105 end
'
);
done
();
})
it
(
'
Security_IAM_PIN_Kit_Func_0106
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0106 start
'
);
expect
(
1
).
assertEqual
(
userAuthNorth
.
AuthType
.
PIN
);
expect
(
2
).
assertEqual
(
userAuthNorth
.
AuthType
.
FACE
);
expect
(
2
).
assertEqual
(
userAuthNorth
.
UserAuthType
.
FACE
);
expect
(
4
).
assertEqual
(
userAuthNorth
.
UserAuthType
.
FINGERPRINT
);
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0106 end
'
);
done
();
})
...
...
@@ -321,12 +321,12 @@ it('Security_IAM_PIN_Kit_Func_0103', 0, async function (done) {
it
(
'
Security_IAM_PIN_Kit_Func_0108
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0108 start
'
);
expect
(
0
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_
TIP_GOOD
);
expect
(
1
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_
TIP_IMAGER
_DIRTY
);
expect
(
2
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_TIP_INSUFFICIENT
);
expect
(
3
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_TIP_PARTIAL
);
expect
(
4
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_TIP_TOO_FAST
);
expect
(
5
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_TIP_TOO_SLOW
);
expect
(
0
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_
AUTH_TIP_GOOD
);
expect
(
1
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_
AUTH_TIP
_DIRTY
);
expect
(
2
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_
AUTH_
TIP_INSUFFICIENT
);
expect
(
3
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_
AUTH_
TIP_PARTIAL
);
expect
(
4
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_
AUTH_
TIP_TOO_FAST
);
expect
(
5
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_
AUTH_
TIP_TOO_SLOW
);
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0108 end
'
);
done
();
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录