Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d3314664
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看板
未验证
提交
d3314664
编写于
11月 02, 2022
作者:
O
openharmony_ci
提交者:
Gitee
11月 02, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6274 【monthly_202221018】【账号】setCustomData覆盖
Merge pull request !6274 from 何海涛/cherry-pick-1667222581
上级
a9d84644
5372f788
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
124 addition
and
124 deletion
+124
-124
account/appaccount/actsaccountoperatetest/src/main/js/test/CustomData.test.js
...ctsaccountoperatetest/src/main/js/test/CustomData.test.js
+124
-124
未找到文件。
account/appaccount/actsaccountoperatetest/src/main/js/test/CustomData.test.js
浏览文件 @
d3314664
...
...
@@ -44,8 +44,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_0100
* @tc.name : The correct calls set
Associated
Data and getCustomData get the value
* @tc.desc : The set
Associated
Data setting valueis called when the forwarding parameters
* @tc.name : The correct calls set
Custom
Data and getCustomData get the value
* @tc.desc : The set
Custom
Data setting valueis called when the forwarding parameters
* are correct, and then getCustomData is called for the value(callback)
*/
it
(
'
ActsAccountCustomData_0100
'
,
0
,
async
function
(
done
)
{
...
...
@@ -55,8 +55,8 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_0100
"
,(
err
)
=>
{
console
.
debug
(
"
====>add accountActsAccountCustomData_0100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_0100
"
,
"
key1
"
,
"
value1
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_0100 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_0100
"
,
"
key1
"
,
"
value1
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_0100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
getCustomData
(
"
account_name_0100
"
,
"
key1
"
,
(
err
,
data
)
=>
{
console
.
debug
(
"
====>getCustomData 0100 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -76,8 +76,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_0200
* @tc.name : The correct calls set
Associated
Data and getCustomData get the value
* @tc.desc : The set
Associated
Data setting value is called when the forwarding parameters
* @tc.name : The correct calls set
Custom
Data and getCustomData get the value
* @tc.desc : The set
Custom
Data setting value is called when the forwarding parameters
* are correct, and then getCustomData is called for the value(promise)
*/
it
(
'
ActsAccountCustomData_0200
'
,
0
,
async
function
(
done
)
{
...
...
@@ -93,12 +93,12 @@ export default function ActsAccountCustomData() {
expect
().
assertFail
();
done
();
}
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_0200 start====
"
);
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_0200 start====
"
);
try
{
await
appAccountManager
.
set
Associated
Data
(
"
account_name_0200
"
,
"
key2
"
,
"
value2
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_0200
"
,
"
key2
"
,
"
value2
"
);
}
catch
(
err
){
console
.
error
(
"
====>set
Associated
Data ActsAccountCustomData_0200 err:
"
+
JSON
.
stringify
(
err
));
console
.
error
(
"
====>set
Custom
Data ActsAccountCustomData_0200 err:
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
}
...
...
@@ -129,7 +129,7 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_0300
* @tc.name : Get it directly without setting value
* @tc.desc : Call getCustomData directly to get value without calling set
Associated
Data(callback)
* @tc.desc : Call getCustomData directly to get value without calling set
Custom
Data(callback)
*/
it
(
'
ActsAccountCustomData_0300
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_0300 start====
"
);
...
...
@@ -156,7 +156,7 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_0400
* @tc.name : Get it directly without setting value
* @tc.desc : Call getCustomData directly to get value without calling set
Associated
Data(promise)
* @tc.desc : Call getCustomData directly to get value without calling set
Custom
Data(promise)
*/
it
(
'
ActsAccountCustomData_0400
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_0400 start====
"
);
...
...
@@ -197,7 +197,7 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_0500
* @tc.name : Call getCustomData to get value when passing in the error parameter
* @tc.desc : After calling set
Associated
Data setting value correctly,
* @tc.desc : After calling set
Custom
Data setting value correctly,
* call the getCustomData of the pass error to check if you get the value(callback)
*/
it
(
'
ActsAccountCustomData_0500
'
,
0
,
async
function
(
done
)
{
...
...
@@ -207,8 +207,8 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_0500
"
,(
err
)
=>
{
console
.
debug
(
"
====>add account ActsAccountCustomData_0500 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_0500
"
,
"
key5
"
,
"
value5
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_0500 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_0500
"
,
"
key5
"
,
"
value5
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_0500 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
getCustomData
(
"
account_name_0500
"
,
"
keyerr
"
,
(
err
,
data
)
=>
{
console
.
debug
(
"
====>getCustomData 0500 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -228,7 +228,7 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_0600
* @tc.name : Call getCustomData to get value when passing in the error parameter
* @tc.desc : After calling set
Associated
Data setting value correctly,
* @tc.desc : After calling set
Custom
Data setting value correctly,
* call the getCustomData of the pass error to check if you get the value(promise)
*/
it
(
'
ActsAccountCustomData_0600
'
,
0
,
async
function
(
done
)
{
...
...
@@ -244,7 +244,7 @@ export default function ActsAccountCustomData() {
expect
().
assertFail
();
done
();
}
await
appAccountManager
.
set
Associated
Data
(
"
account_name_0600
"
,
"
key6
"
,
"
value6
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_0600
"
,
"
key6
"
,
"
value6
"
);
try
{
var
data
=
await
appAccountManager
.
getCustomData
(
"
account_name_0600
"
,
"
keyerr
"
);
}
...
...
@@ -267,8 +267,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_0700
* @tc.name : Whether getCustomData can get the correct value when calling set
Associated
Data multiple times
* @tc.desc : When the first set
AssociatedData is called and the second setAssociated
Data
* @tc.name : Whether getCustomData can get the correct value when calling set
Custom
Data multiple times
* @tc.desc : When the first set
CustomData is called and the second setCustom
Data
* is called,the setting of the value is different if the call getCustomData
* can get the second value(callback)
*/
...
...
@@ -279,11 +279,11 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_0700
"
,(
err
)
=>
{
console
.
debug
(
"
====>add account ActsAccountCustomData_0700 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_0700
"
,
"
key7
"
,
"
value7
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Datafir first time 0700 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_0700
"
,
"
key7
"
,
"
value7
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Datafir first time 0700 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_0700
"
,
"
key7
"
,
"
newvalue7
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Datafir second time 0700 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_0700
"
,
"
key7
"
,
"
newvalue7
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Datafir second time 0700 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
getCustomData
(
"
account_name_0700
"
,
"
key7
"
,
(
err
,
data
)
=>
{
console
.
debug
(
"
====>getCustomData 0700 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -304,8 +304,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_0800
* @tc.name : Whether getCustomData can get the correct value when calling set
Associated
Data multiple times
* @tc.desc : When the first set
AssociatedData is called and the second setAssociated
Data
* @tc.name : Whether getCustomData can get the correct value when calling set
Custom
Data multiple times
* @tc.desc : When the first set
CustomData is called and the second setCustom
Data
* is called,the setting of the value is different if the call getCustomData
* can get the second value(promise)
*/
...
...
@@ -322,10 +322,10 @@ export default function ActsAccountCustomData() {
done
();
}
try
{
await
appAccountManager
.
set
Associated
Data
(
"
account_name_0800
"
,
"
key8
"
,
"
value8
"
);
await
appAccountManager
.
set
Associated
Data
(
"
account_name_0800
"
,
"
key8
"
,
"
newvalue8
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_0800
"
,
"
key8
"
,
"
value8
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_0800
"
,
"
key8
"
,
"
newvalue8
"
);
}
catch
(
err
){
console
.
error
(
"
====>set
Associated
Data ActsAccountCustomData_0800 err:
"
+
JSON
.
stringify
(
err
));
console
.
error
(
"
====>set
Custom
Data ActsAccountCustomData_0800 err:
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
}
...
...
@@ -354,8 +354,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_0900
* @tc.name : Whether getCustomData can get the correct value when calling set
Associated
Data multiple times
* @tc.desc : When the first set
AssociatedData is called and the second setAssociated
Data
* @tc.name : Whether getCustomData can get the correct value when calling set
Custom
Data multiple times
* @tc.desc : When the first set
CustomData is called and the second setCustom
Data
* is called,the setting of the value is same if the call getCustomData
* can get the second value(callback)
*/
...
...
@@ -366,11 +366,11 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_0900
"
,(
err
)
=>
{
console
.
debug
(
"
====>add account ActsAccountCustomData_0900 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_0900
"
,
"
key9
"
,
"
value9
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data first time 0900 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_0900
"
,
"
key9
"
,
"
value9
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data first time 0900 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_0900
"
,
"
key9
"
,
"
value9
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data second time 0900 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_0900
"
,
"
key9
"
,
"
value9
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data second time 0900 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
getCustomData
(
"
account_name_0900
"
,
"
key9
"
,
(
err
,
data
)
=>
{
console
.
debug
(
"
====>getCustomData 0900 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -391,8 +391,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_1000
* @tc.name : Whether getCustomData can get the correct value when calling set
Associated
Data multiple times
* @tc.desc : When the first set
AssociatedData is called and the second setAssociated
Data
* @tc.name : Whether getCustomData can get the correct value when calling set
Custom
Data multiple times
* @tc.desc : When the first set
CustomData is called and the second setCustom
Data
* is called,the setting of the value is same if the call getCustomData
* can get the second value(promise)
*/
...
...
@@ -410,11 +410,11 @@ export default function ActsAccountCustomData() {
done
();
}
try
{
await
appAccountManager
.
set
Associated
Data
(
"
account_name_1000
"
,
"
key10
"
,
"
value10
"
);
await
appAccountManager
.
set
Associated
Data
(
"
account_name_1000
"
,
"
key10
"
,
"
value10
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_1000
"
,
"
key10
"
,
"
value10
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_1000
"
,
"
key10
"
,
"
value10
"
);
}
catch
(
err
){
console
.
error
(
"
====>set
Associated
Data ActsAccountCustomData_1000 err:
"
+
JSON
.
stringify
(
err
));
console
.
error
(
"
====>set
Custom
Data ActsAccountCustomData_1000 err:
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
}
...
...
@@ -443,8 +443,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_1100
* @tc.name : Call multiple set
Associated
Data calls multiple times getCustomData gets the value separately
* @tc.desc : Call set
AssociatedData setting value again after calling setAssociated
Data setting
* @tc.name : Call multiple set
Custom
Data calls multiple times getCustomData gets the value separately
* @tc.desc : Call set
CustomData setting value again after calling setCustom
Data setting
* different value, and then call getCustomData twice to get the set value(callback)
*/
it
(
'
ActsAccountCustomData_1100
'
,
0
,
async
function
(
done
)
{
...
...
@@ -454,11 +454,11 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_1100
"
,(
err
)
=>
{
console
.
debug
(
"
====>add account ActsAccountCustomData_1100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_1100
"
,
"
key11_first
"
,
"
value11_first
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data first time 1100 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_1100
"
,
"
key11_first
"
,
"
value11_first
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data first time 1100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_1100
"
,
"
key11_second
"
,
"
value11_second
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data second time 1100 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_1100
"
,
"
key11_second
"
,
"
value11_second
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data second time 1100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
getCustomData
(
"
account_name_1100
"
,
"
key11_first
"
,
(
err
,
data
)
=>
{
console
.
debug
(
"
====>getCustomData key11_first 1100 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -484,8 +484,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_1200
* @tc.name : Call multiple set
Associated
Data calls multiple times getCustomData gets the value separately
* @tc.desc : Call set
AssociatedData setting value again after calling setAssociated
Data setting
* @tc.name : Call multiple set
Custom
Data calls multiple times getCustomData gets the value separately
* @tc.desc : Call set
CustomData setting value again after calling setCustom
Data setting
* different value, and then call getCustomData twice to get the set value(promise)
*/
it
(
'
ActsAccountCustomData_1200
'
,
0
,
async
function
(
done
)
{
...
...
@@ -502,11 +502,11 @@ export default function ActsAccountCustomData() {
done
();
}
try
{
await
appAccountManager
.
set
Associated
Data
(
"
account_name_1200
"
,
"
key12_first
"
,
"
value12_first
"
);
await
appAccountManager
.
set
Associated
Data
(
"
account_name_1200
"
,
"
key12_second
"
,
"
value12_second
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_1200
"
,
"
key12_first
"
,
"
value12_first
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_1200
"
,
"
key12_second
"
,
"
value12_second
"
);
}
catch
(
err
){
console
.
error
(
"
====>set
Associated
Data ActsAccountCustomData_1200 err:
"
+
JSON
.
stringify
(
err
));
console
.
error
(
"
====>set
Custom
Data ActsAccountCustomData_1200 err:
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
}
...
...
@@ -538,8 +538,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_1300
* @tc.name : set
Associated
Data setting value is called when the argument is wrong
* @tc.desc : Call set
Associated
Data setting value when the incoming parameter KEY is wrong(callback)
* @tc.name : set
Custom
Data setting value is called when the argument is wrong
* @tc.desc : Call set
Custom
Data setting value when the incoming parameter KEY is wrong(callback)
*/
it
(
'
ActsAccountCustomData_1300
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_1300 start====
"
);
...
...
@@ -548,8 +548,8 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_1300
"
,
(
err
)
=>
{
console
.
debug
(
"
====>add account ActsAccountCustomData_1300 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_1300
"
,
""
,
"
value13
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_1300 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_1300
"
,
""
,
"
value13
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_1300 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
appAccountManager
.
removeAccount
(
"
account_name_1300
"
,
(
err
)
=>
{
console
.
debug
(
"
====>delete account ActsAccountCustomData_1300 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -563,8 +563,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_1400
* @tc.name : set
Associated
Data setting value is called when the argument is wrong
* @tc.desc : Call set
Associated
Data setting value when the incoming parameter KEY is wrong(promise)
* @tc.name : set
Custom
Data setting value is called when the argument is wrong
* @tc.desc : Call set
Custom
Data setting value when the incoming parameter KEY is wrong(promise)
*/
it
(
'
ActsAccountCustomData_1400
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_1400 start====
"
);
...
...
@@ -580,10 +580,10 @@ export default function ActsAccountCustomData() {
done
();
}
try
{
await
appAccountManager
.
set
Associated
Data
(
"
account_name_1400
"
,
""
,
"
value14
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_1400
"
,
""
,
"
value14
"
);
}
catch
(
err
){
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_1400 err:
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_1400 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
console
.
debug
(
"
====>delete account ActsAccountCustomData_1400 start====
"
);
try
{
...
...
@@ -601,8 +601,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_1500
* @tc.name : set
Associated
Data setting key is called when the argument is wrong
* @tc.desc : Call set
Associated
Data setting key when the incoming parameter KEY is wrong(callback)
* @tc.name : set
Custom
Data setting key is called when the argument is wrong
* @tc.desc : Call set
Custom
Data setting key when the incoming parameter KEY is wrong(callback)
*/
it
(
'
ActsAccountCustomData_1500
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_1500 start====
"
);
...
...
@@ -616,8 +616,8 @@ export default function ActsAccountCustomData() {
expect
(
err
).
assertEqual
(
null
);
console
.
debug
(
"
====>1500 keyOverSize.length:
"
+
JSON
.
stringify
(
keyOverSize
.
length
));
expect
(
keyOverSize
.
length
).
assertEqual
(
1025
);
appAccountManager
.
set
Associated
Data
(
"
account_name_1500
"
,
keyOverSize
,
"
value15
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_1500 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_1500
"
,
keyOverSize
,
"
value15
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_1500 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
appAccountManager
.
removeAccount
(
"
account_name_1500
"
,
(
err
)
=>
{
console
.
debug
(
"
====>delete account ActsAccountCustomData_1500 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -631,8 +631,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_1600
* @tc.name : set
Associated
Data setting key is called when the argument is wrong
* @tc.desc : Call set
Associated
Data setting key when the incoming parameter KEY is wrong(promise)
* @tc.name : set
Custom
Data setting key is called when the argument is wrong
* @tc.desc : Call set
Custom
Data setting key when the incoming parameter KEY is wrong(promise)
*/
it
(
'
ActsAccountCustomData_1600
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_1600 start====
"
);
...
...
@@ -652,10 +652,10 @@ export default function ActsAccountCustomData() {
done
();
}
try
{
await
appAccountManager
.
set
Associated
Data
(
"
account_name_1600
"
,
keyOverSize
,
"
value16
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_1600
"
,
keyOverSize
,
"
value16
"
);
}
catch
(
err
){
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_1600 err:
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_1600 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
console
.
debug
(
"
====>delete account ActsAccountCustomData_1600 start====
"
);
try
{
...
...
@@ -673,8 +673,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_1700
* @tc.name : set
Associated
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Associated
Data and then getCustomData when the incoming key is a space(callback)
* @tc.name : set
Custom
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Custom
Data and then getCustomData when the incoming key is a space(callback)
*/
it
(
'
ActsAccountCustomData_1700
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_1700 start====
"
);
...
...
@@ -683,8 +683,8 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_1700
"
,
(
err
)
=>
{
console
.
debug
(
"
====>add account ActsAccountCustomData_1700 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_1700
"
,
"
"
,
"
value17
"
,
(
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCustomData_1700 set
Associated
Data:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_1700
"
,
"
"
,
"
value17
"
,
(
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCustomData_1700 set
Custom
Data:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
getCustomData
(
"
account_name_1700
"
,
"
"
,
(
err
,
data
)
=>
{
console
.
debug
(
"
====>getCustomData 1700 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -704,8 +704,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_1800
* @tc.name : set
Associated
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Associated
Data and then getCustomData when the incoming key is a space(promise)
* @tc.name : set
Custom
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Custom
Data and then getCustomData when the incoming key is a space(promise)
*/
it
(
'
ActsAccountCustomData_1800
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_1800 start====
"
);
...
...
@@ -720,12 +720,12 @@ export default function ActsAccountCustomData() {
expect
().
assertFail
();
done
();
}
await
appAccountManager
.
set
Associated
Data
(
"
account_name_1800
"
,
"
"
,
"
value18
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_1800
"
,
"
"
,
"
value18
"
);
try
{
var
data
=
await
appAccountManager
.
getCustomData
(
"
account_name_1800
"
,
"
"
);
}
catch
(
err
){
console
.
error
(
"
====>set
Associated
Data ActsAccountCustomData_1800 fail err:
"
+
JSON
.
stringify
(
err
));
console
.
error
(
"
====>set
Custom
Data ActsAccountCustomData_1800 fail err:
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
}
...
...
@@ -746,8 +746,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_1900
* @tc.name : set
Associated
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Associated
Data and then getCustomData when the incoming value is null(callback)
* @tc.name : set
Custom
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Custom
Data and then getCustomData when the incoming value is null(callback)
*/
it
(
'
ActsAccountCustomData_1900
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_1900 start====
"
);
...
...
@@ -756,8 +756,8 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_1900
"
,
(
err
)
=>
{
console
.
debug
(
"
====>add account ActsAccountCustomData_1900 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_1900
"
,
"
key19
"
,
""
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_1900 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_1900
"
,
"
key19
"
,
""
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_1900 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
getCustomData
(
"
account_name_1900
"
,
"
key19
"
,
(
err
,
data
)
=>
{
console
.
debug
(
"
====>getCustomData 1900 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -777,8 +777,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_2000
* @tc.name : set
Associated
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Associated
Data and then getCustomData when the incoming value is null(promise)
* @tc.name : set
Custom
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Custom
Data and then getCustomData when the incoming value is null(promise)
*/
it
(
'
ActsAccountCustomData_2000
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_2000 start====
"
);
...
...
@@ -794,10 +794,10 @@ export default function ActsAccountCustomData() {
done
();
}
try
{
await
appAccountManager
.
set
Associated
Data
(
"
account_name_2000
"
,
"
key20
"
,
""
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_2000
"
,
"
key20
"
,
""
);
}
catch
(
err
){
console
.
error
(
"
====>set
Associated
Data ActsAccountCustomData_2000 err:
"
+
JSON
.
stringify
(
err
));
console
.
error
(
"
====>set
Custom
Data ActsAccountCustomData_2000 err:
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
}
...
...
@@ -826,8 +826,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_2100
* @tc.name : set
Associated
Data setting value is called when the argument is wrong
* @tc.desc : Call set
Associated
Data setting value when the incoming parameter value is wrong(callback)
* @tc.name : set
Custom
Data setting value is called when the argument is wrong
* @tc.desc : Call set
Custom
Data setting value when the incoming parameter value is wrong(callback)
*/
it
(
'
ActsAccountCustomData_2100
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_2100 start====
"
);
...
...
@@ -840,8 +840,8 @@ export default function ActsAccountCustomData() {
console
.
debug
(
"
====>add account ActsAccountCustomData_2100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
expect
(
valueOverSize
.
length
).
assertEqual
(
1025
);
appAccountManager
.
set
Associated
Data
(
"
account_name_2100
"
,
"
key21
"
,
valueOverSize
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_2100 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_2100
"
,
"
key21
"
,
valueOverSize
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_2100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
appAccountManager
.
removeAccount
(
"
account_name_2100
"
,
(
err
)
=>
{
console
.
debug
(
"
====>delete Account ActsAccountCustomData_2100 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -855,8 +855,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_2200
* @tc.name : set
Associated
Data setting value is called when the argument is wrong
* @tc.desc : Call set
Associated
Data setting value when the incoming parameter value is wrong(promise)
* @tc.name : set
Custom
Data setting value is called when the argument is wrong
* @tc.desc : Call set
Custom
Data setting value when the incoming parameter value is wrong(promise)
*/
it
(
'
ActsAccountCustomData_2200
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_2200 start====
"
);
...
...
@@ -875,10 +875,10 @@ export default function ActsAccountCustomData() {
done
();
}
try
{
await
appAccountManager
.
set
Associated
Data
(
"
account_name_2200
"
,
"
key22
"
,
valueOverSize
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_2200
"
,
"
key22
"
,
valueOverSize
);
}
catch
(
err
){
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_2200 err:
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_2200 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
console
.
debug
(
"
====>delete account ActsAccountCustomData_2200 start====
"
);
try
{
...
...
@@ -896,8 +896,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_2300
* @tc.name : set
Associated
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Associated
Data and then getCustomData when the incoming value is a space(callback)
* @tc.name : set
Custom
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Custom
Data and then getCustomData when the incoming value is a space(callback)
*/
it
(
'
ActsAccountCustomData_2300
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_2300 start====
"
);
...
...
@@ -906,8 +906,8 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_2300
"
,
(
err
)
=>
{
console
.
debug
(
"
====>add account ActsAccountCustomData_2300 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_2300
"
,
"
key23
"
,
"
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_2300 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_2300
"
,
"
key23
"
,
"
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_2300 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
getCustomData
(
"
account_name_2300
"
,
"
key23
"
,
(
err
,
data
)
=>
{
console
.
debug
(
"
====>getCustomData 2300 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -927,8 +927,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_2400
* @tc.name : set
Associated
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Associated
Data and then getCustomData when the incoming value is a space(promise)
* @tc.name : set
Custom
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Custom
Data and then getCustomData when the incoming value is a space(promise)
*/
it
(
'
ActsAccountCustomData_2400
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_2400 start====
"
);
...
...
@@ -943,7 +943,7 @@ export default function ActsAccountCustomData() {
expect
().
assertFail
();
done
();
}
await
appAccountManager
.
set
Associated
Data
(
"
account_name_2400
"
,
"
key24
"
,
"
"
);
await
appAccountManager
.
set
Custom
Data
(
"
account_name_2400
"
,
"
key24
"
,
"
"
);
try
{
var
data
=
await
appAccountManager
.
getCustomData
(
"
account_name_2400
"
,
"
key24
"
);
}
...
...
@@ -969,8 +969,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_2500
* @tc.name : set
Associated
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Associated
Data and then getCustomData when the incoming name is null(callback)
* @tc.name : set
Custom
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Custom
Data and then getCustomData when the incoming name is null(callback)
*/
it
(
'
ActsAccountCustomData_2500
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_2500 start====
"
);
...
...
@@ -979,8 +979,8 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_2500
"
,
(
err
)
=>
{
console
.
debug
(
"
====>add account ActsAccountCustomData_2500 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
""
,
"
key25
"
,
"
value25
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_2500 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
""
,
"
key25
"
,
"
value25
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_2500 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
appAccountManager
.
removeAccount
(
"
account_name_2500
"
,
(
err
)
=>
{
console
.
debug
(
"
====>delete Account ActsAccountCustomData_2500 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -994,8 +994,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_2600
* @tc.name : set
Associated
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Associated
Data and then getCustomData when the incoming name is null(promise)
* @tc.name : set
Custom
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Custom
Data and then getCustomData when the incoming name is null(promise)
*/
it
(
'
ActsAccountCustomData_2600
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_2600 start====
"
);
...
...
@@ -1011,10 +1011,10 @@ export default function ActsAccountCustomData() {
done
();
}
try
{
await
appAccountManager
.
set
Associated
Data
(
""
,
"
key26
"
,
"
value26
"
);
await
appAccountManager
.
set
Custom
Data
(
""
,
"
key26
"
,
"
value26
"
);
}
catch
(
err
){
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_2600 err:
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_2600 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
console
.
debug
(
"
====>delete account ActsAccountCustomData_2600 start====
"
);
try
{
...
...
@@ -1032,8 +1032,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_2700
* @tc.name : set
Associated
Data setting name is called when the argument is wrong
* @tc.desc : Call set
Associated
Data setting name when the incoming parameter name is wrong(callback)
* @tc.name : set
Custom
Data setting name is called when the argument is wrong
* @tc.desc : Call set
Custom
Data setting name when the incoming parameter name is wrong(callback)
*/
it
(
'
ActsAccountCustomData_2700
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_2700 start====
"
);
...
...
@@ -1046,8 +1046,8 @@ export default function ActsAccountCustomData() {
console
.
debug
(
"
====>add account ActsAccountCustomData_2700 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
expect
(
nameOverSize
.
length
).
assertEqual
(
1025
);
appAccountManager
.
set
Associated
Data
(
nameOverSize
,
"
key27
"
,
"
value27
"
,
(
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCustomData_2700 set
Associated
Data:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
nameOverSize
,
"
key27
"
,
"
value27
"
,
(
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCustomData_2700 set
Custom
Data:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
appAccountManager
.
removeAccount
(
"
account_name_2700
"
,
(
err
)
=>
{
console
.
debug
(
"
====>delete Account ActsAccountCustomData_2700 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -1061,8 +1061,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_2800
* @tc.name : set
Associated
Data setting name is called when the argument is wrong
* @tc.desc : Call set
Associated
Data setting name when the incoming parameter name is wrong(promise)
* @tc.name : set
Custom
Data setting name is called when the argument is wrong
* @tc.desc : Call set
Custom
Data setting name when the incoming parameter name is wrong(promise)
*/
it
(
'
ActsAccountCustomData_2800
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_2800 start====
"
);
...
...
@@ -1082,10 +1082,10 @@ export default function ActsAccountCustomData() {
done
();
}
try
{
await
appAccountManager
.
set
Associated
Data
(
nameOverSize
,
"
key28
"
,
"
value28
"
);
await
appAccountManager
.
set
Custom
Data
(
nameOverSize
,
"
key28
"
,
"
value28
"
);
}
catch
(
err
){
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_2800 err:
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_2800 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
console
.
debug
(
"
====>delete account ActsAccountCustomData_2800 start====
"
);
try
{
...
...
@@ -1103,8 +1103,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_2900
* @tc.name : set
Associated
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Associated
Data and then getCustomData when the incoming name is a space(callback)
* @tc.name : set
Custom
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Custom
Data and then getCustomData when the incoming name is a space(callback)
*/
it
(
'
ActsAccountCustomData_2900
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_2900 start====
"
);
...
...
@@ -1113,8 +1113,8 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
"
,
(
err
)
=>
{
console
.
debug
(
"
====>add account ActsAccountCustomData_2900 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
appAccountManager
.
set
Associated
Data
(
"
"
,
"
key29
"
,
"
value29
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_2900 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
"
,
"
key29
"
,
"
value29
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_2900 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
appAccountManager
.
getCustomData
(
"
"
,
"
key29
"
,
(
err
,
data
)
=>
{
console
.
debug
(
"
====>getCustomData 2900 err:
"
+
JSON
.
stringify
(
err
));
...
...
@@ -1130,8 +1130,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_3000
* @tc.name : set
Associated
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Associated
Data and then getCustomData when the incoming name is a space(promise)
* @tc.name : set
Custom
Data and getCustomData are called when the argument is spaced
* @tc.desc : Call set
Custom
Data and then getCustomData when the incoming name is a space(promise)
*/
it
(
'
ActsAccountCustomData_3000
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAccountCustomData_3000 start====
"
);
...
...
@@ -1144,10 +1144,10 @@ export default function ActsAccountCustomData() {
console
.
debug
(
"
====>add account ActsAccountCustomData_3000 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
try
{
await
appAccountManager
.
set
Associated
Data
(
"
"
,
"
key30
"
,
"
value30
"
);
await
appAccountManager
.
set
Custom
Data
(
"
"
,
"
key30
"
,
"
value30
"
);
}
catch
(
err
){
console
.
error
(
"
====>set
Associated
Data ActsAccountCustomData_3000 err:
"
+
JSON
.
stringify
(
err
));
console
.
error
(
"
====>set
Custom
Data ActsAccountCustomData_3000 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
try
{
await
appAccountManager
.
getCustomData
(
"
"
,
"
key30
"
);
...
...
@@ -1165,8 +1165,8 @@ export default function ActsAccountCustomData() {
/*
* @tc.number : ActsAccountCustomData_3100
* @tc.name : The correct calls set
Associated
Data and getCustomData get the value
* @tc.desc : The set
Associated
Data setting valueis called when the forwarding parameters
* @tc.name : The correct calls set
Custom
Data and getCustomData get the value
* @tc.desc : The set
Custom
Data setting valueis called when the forwarding parameters
* are correct, and then getCustomData is called for the value(callback)
*/
it
(
'
ActsAccountCustomData_3100
'
,
0
,
async
function
(
done
)
{
...
...
@@ -1176,8 +1176,8 @@ export default function ActsAccountCustomData() {
appAccountManager
.
createAccount
(
"
account_name_3100
"
,(
err
)
=>
{
console
.
debug
(
"
====>add ActsAccountCustomData_3100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
appAccountManager
.
set
Associated
Data
(
"
account_name_3100
"
,
"
key31
"
,
"
value31
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Associated
Data ActsAccountCustomData_3100 err:
"
+
JSON
.
stringify
(
err
));
appAccountManager
.
set
Custom
Data
(
"
account_name_3100
"
,
"
key31
"
,
"
value31
"
,
(
err
)
=>
{
console
.
debug
(
"
====>set
Custom
Data ActsAccountCustomData_3100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
var
result
=
appAccountManager
.
getCustomDataSync
(
"
account_name_3100
"
,
"
key31
"
)
console
.
debug
(
"
====>getCustomData ActsAccountCustomData_3100 result:
"
+
JSON
.
stringify
(
result
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录