Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6873fe72
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看板
提交
6873fe72
编写于
8月 28, 2023
作者:
Z
zhaimengchao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【Account】【Master】Fix Testcase Decoupling
Signed-off-by:
N
zhaimengchao
<
zhaimengchao@huawei.com
>
上级
ac99f3f9
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
22 addition
and
320 deletion
+22
-320
account/appaccount/actsaccountoperatetest/src/main/js/test/Authenticator.test.js
...accountoperatetest/src/main/js/test/Authenticator.test.js
+2
-1
account/appaccount/actsaccounttest/src/main/js/test/Authenticator.test.js
...nt/actsaccounttest/src/main/js/test/Authenticator.test.js
+2
-1
account/appaccount/actsaccounttstest/entry/src/main/ets/test/ActsAppAccountOptionalParameterTest.test.ets
...ain/ets/test/ActsAppAccountOptionalParameterTest.test.ets
+14
-314
account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountGet.test.js
...countthirdpartytest/src/main/js/test/OsAccountGet.test.js
+2
-2
account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountQuery.test.js
...untthirdpartytest/src/main/js/test/OsAccountQuery.test.js
+2
-2
未找到文件。
account/appaccount/actsaccountoperatetest/src/main/js/test/Authenticator.test.js
浏览文件 @
6873fe72
...
...
@@ -20,6 +20,7 @@ const NAMELIMIT = 512;
const
LENGTHLIMIT
=
1024
;
const
name
=
'
zhangsan
'
const
owner
=
'
com.example.accountauthenticator
'
const
self_owner
=
'
com.example.actsaccountoperatetest
'
const
createAccountOptions
=
{
customData
:{
age
:
'
12
'
}}
export
default
function
ActsAccountAppAccess
()
{
describe
(
'
ActsAccountAuthenticator
'
,
function
()
{
...
...
@@ -46,7 +47,7 @@ export default function ActsAccountAppAccess() {
beforeEach
(
async
(
done
)
=>
{
console
.
debug
(
"
====>afterEach start====
"
);
var
appAccountManager
=
account
.
createAppAccountManager
();
var
accounts
=
await
appAccountManager
.
getAccountsByOwner
(
owner
)
var
accounts
=
await
appAccountManager
.
getAccountsByOwner
(
self_
owner
)
for
(
var
i
=
0
;
i
<
accounts
.
length
;
i
++
){
var
localName
=
accounts
[
i
].
name
if
(
localName
==
'
zhangsan
'
){
...
...
account/appaccount/actsaccounttest/src/main/js/test/Authenticator.test.js
浏览文件 @
6873fe72
...
...
@@ -20,6 +20,7 @@ const NAMELIMIT = 512;
const
LENGTHLIMIT
=
1024
;
const
name
=
'
zhangsan
'
const
owner
=
'
com.example.accountauthenticator
'
const
self_owner
=
'
com.example.actsaccounttest
'
export
default
function
ActsAccountAuthenticator
()
{
describe
(
'
ActsAccountAuthenticator
'
,
function
()
{
beforeAll
(
async
function
(
done
)
{
...
...
@@ -45,7 +46,7 @@ export default function ActsAccountAuthenticator() {
beforeEach
(
async
function
(
done
)
{
console
.
debug
(
"
====>afterEach start====
"
);
var
appAccountManager
=
account
.
createAppAccountManager
();
var
accounts
=
await
appAccountManager
.
getAccountsByOwner
(
owner
)
var
accounts
=
await
appAccountManager
.
getAccountsByOwner
(
self_
owner
)
for
(
var
i
=
0
;
i
<
accounts
.
length
;
i
++
){
var
localName
=
accounts
[
i
].
name
if
(
localName
==
'
zhangsan
'
){
...
...
account/appaccount/actsaccounttstest/entry/src/main/ets/test/ActsAppAccountOptionalParameterTest.test.ets
浏览文件 @
6873fe72
此差异已折叠。
点击以展开。
account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountGet.test.js
浏览文件 @
6873fe72
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Copyright (c) 2021
-2023
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -22,7 +22,7 @@ export default function ActsOsAccountThirdPartyTest_third_2() {
console
.
debug
(
"
====>afterEach start====
"
);
var
osAccountManager
=
osaccount
.
getAccountManager
();
var
accounts
=
await
osAccountManager
.
queryAllCreatedOsAccounts
()
for
(
i
=
0
;
i
<
accounts
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
accounts
.
length
;
i
++
){
var
localId
=
accounts
[
i
].
localId
if
(
localId
!=
100
){
await
osAccountManager
.
removeOsAccount
(
localId
)
...
...
account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountQuery.test.js
浏览文件 @
6873fe72
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Copyright (c) 2021
-2023
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -24,7 +24,7 @@ export default function ActsOsAccountThirdPartyTest_third_4() {
console
.
debug
(
"
====>afterEach start====
"
);
var
osAccountManager
=
osaccount
.
getAccountManager
();
var
accounts
=
await
osAccountManager
.
queryAllCreatedOsAccounts
()
for
(
i
=
0
;
i
<
accounts
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
accounts
.
length
;
i
++
){
var
localId
=
accounts
[
i
].
localId
if
(
localId
!=
100
){
await
osAccountManager
.
removeOsAccount
(
localId
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录