Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
bb58edf5
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bb58edf5
编写于
8月 24, 2022
作者:
G
gaoxi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改编码规范问题
Signed-off-by:
N
gaoxi
<
gaoxi785@huawei.com
>
上级
964c1829
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
0 addition
and
62 deletion
+0
-62
telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/ObjectInterface_test.js
...anager_ims2_call/src/main/js/test/ObjectInterface_test.js
+0
-62
未找到文件。
telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/ObjectInterface_test.js
浏览文件 @
bb58edf5
...
...
@@ -1305,11 +1305,9 @@ export default function ObjectInterfaceTest() {
}
contactsapi
.
addContact
(
contactData
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`addContact callback: err->
${
JSON
.
stringify
(
err
)}
`
);
done
();
return
;
}
console
.
info
(
`addContact callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
!=
-
1
).
assertTrue
();
done
();
});
...
...
@@ -1324,7 +1322,6 @@ export default function ObjectInterfaceTest() {
}
contactsapi
.
deleteContact
(
'
xxx
'
,
(
err
)
=>
{
if
(
err
)
{
console
.
info
(
`deleteContact callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
err
)
==
-
1
).
assertTrue
();
done
();
return
;
...
...
@@ -1345,12 +1342,10 @@ export default function ObjectInterfaceTest() {
}
contactsapi
.
queryContact
(
'
xxx
'
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContact callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
info
(
`queryContact callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
==
undefined
).
assertTrue
();
done
();
});
...
...
@@ -1367,12 +1362,10 @@ export default function ObjectInterfaceTest() {
holderId
:
0
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContact callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
info
(
`queryContact callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
==
undefined
).
assertTrue
();
done
();
});
...
...
@@ -1389,12 +1382,10 @@ export default function ObjectInterfaceTest() {
attributes
:
[
"
ATTR_EMAIL
"
,
"
ATTR_NAME
"
]
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContact callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
info
(
`queryContact callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
==
undefined
).
assertTrue
();
done
();
});
...
...
@@ -1413,12 +1404,10 @@ export default function ObjectInterfaceTest() {
attributes
:
[
"
ATTR_EMAIL
"
,
"
ATTR_NAME
"
]
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContact callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
info
(
`queryContact callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
==
undefined
).
assertTrue
();
done
();
});
...
...
@@ -1437,11 +1426,9 @@ export default function ObjectInterfaceTest() {
attributes
:
[
"
ATTR_EMAIL
"
,
"
ATTR_NAME
"
]
});
promise
.
then
((
data
)
=>
{
console
.
info
(
`queryContact success: data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
==
undefined
).
assertTrue
();
done
();
}).
catch
((
err
)
=>
{
console
.
info
(
`queryContact fail: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
false
).
assertTrue
();
done
();
});
...
...
@@ -1456,12 +1443,10 @@ export default function ObjectInterfaceTest() {
}
contactsapi
.
queryContacts
((
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContacts callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContacts callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1478,12 +1463,10 @@ export default function ObjectInterfaceTest() {
holderId
:
0
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContacts callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContacts callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1500,12 +1483,10 @@ export default function ObjectInterfaceTest() {
attributes
:
[
"
ATTR_EMAIL
"
,
"
ATTR_NAME
"
]
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContacts callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContacts callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1525,12 +1506,10 @@ export default function ObjectInterfaceTest() {
attributes
:
[
"
ATTR_EMAIL
"
,
"
ATTR_NAME
"
]
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContacts callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContacts callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1550,11 +1529,9 @@ export default function ObjectInterfaceTest() {
attributes
:
[
"
ATTR_EMAIL
"
,
"
ATTR_NAME
"
]
});
promise
.
then
((
data
)
=>
{
console
.
info
(
`queryContacts success: data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
}).
catch
((
err
)
=>
{
console
.
info
(
`queryContacts fail: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
false
).
assertTrue
();
done
();
});
...
...
@@ -1569,12 +1546,10 @@ export default function ObjectInterfaceTest() {
}
contactsapi
.
queryContactsByPhoneNumber
(
'
138xxxxxxxx
'
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContactsByPhoneNumber callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContactsByPhoneNumber callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1591,12 +1566,10 @@ export default function ObjectInterfaceTest() {
holderId
:
0
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContactsByPhoneNumber callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContactsByPhoneNumber callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1613,12 +1586,10 @@ export default function ObjectInterfaceTest() {
attributes
:
[
"
ATTR_EMAIL
"
,
"
ATTR_NAME
"
]
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContactsByPhoneNumber callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContactsByPhoneNumber callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1637,12 +1608,10 @@ export default function ObjectInterfaceTest() {
attributes
:
[
"
ATTR_EMAIL
"
,
"
ATTR_NAME
"
]
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContactsByPhoneNumber callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContactsByPhoneNumber callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1658,12 +1627,10 @@ export default function ObjectInterfaceTest() {
}
contactsapi
.
queryContactsByEmail
(
'
xxx@email.com
'
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContactsByEmail callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContactsByEmail callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1680,12 +1647,10 @@ export default function ObjectInterfaceTest() {
holderId
:
0
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContactsByEmail callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContactsByEmail callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1703,12 +1668,10 @@ export default function ObjectInterfaceTest() {
attributes
:
[
"
ATTR_EMAIL
"
,
"
ATTR_NAME
"
]
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContactsByEmail callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContactsByEmail callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1728,12 +1691,10 @@ export default function ObjectInterfaceTest() {
attributes
:
[
"
ATTR_EMAIL
"
,
"
ATTR_NAME
"
]
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryContactsByEmail callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryContactsByEmail callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1748,12 +1709,10 @@ export default function ObjectInterfaceTest() {
}
contactsapi
.
queryGroups
((
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryGroups callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryGroups callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1770,12 +1729,10 @@ export default function ObjectInterfaceTest() {
holderId
:
0
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryGroups callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryGroups callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1791,12 +1748,10 @@ export default function ObjectInterfaceTest() {
}
contactsapi
.
queryHolders
((
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryHolders callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryHolders callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1812,12 +1767,10 @@ export default function ObjectInterfaceTest() {
contactsapi
.
queryKey
(
/*id*/
1
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryKey callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryKey callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1835,12 +1788,10 @@ export default function ObjectInterfaceTest() {
holderId
:
1
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryKey callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryKey callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1856,12 +1807,10 @@ export default function ObjectInterfaceTest() {
}
contactsapi
.
queryMyCard
((
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryMyCard callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryMyCard callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1879,12 +1828,10 @@ export default function ObjectInterfaceTest() {
attributes
:
[
'
ATTR_EMAIL
'
,
'
ATTR_NAME
'
]
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`queryMyCard callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
return
;
}
console
.
info
(
`queryMyCard callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
});
...
...
@@ -1954,12 +1901,10 @@ export default function ObjectInterfaceTest() {
contactsapi
.
isLocalContact
(
/*id*/
1
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`isLocalContact callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
info
(
`isLocalContact callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
done
();
});
sleep
(
500
)
...
...
@@ -1974,12 +1919,10 @@ export default function ObjectInterfaceTest() {
contactsapi
.
isMyCard
(
/*id*/
1
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`isMyCard callback: err->
${
JSON
.
stringify
(
err
)}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
info
(
`isMyCard callback: success data->
${
JSON
.
stringify
(
data
)}
`
);
done
();
});
sleep
(
500
)
...
...
@@ -1992,12 +1935,10 @@ export default function ObjectInterfaceTest() {
return
;
}
let
sendCallback
=
function
(
err
,
data
)
{
console
.
log
(
`sendCallback: err->
${
JSON
.
stringify
(
err
)}
, data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
}
let
deliveryCallback
=
function
(
err
,
data
)
{
console
.
log
(
`deliveryCallback: err->
${
JSON
.
stringify
(
err
)}
, data->
${
JSON
.
stringify
(
data
)}
`
);
expect
(
JSON
.
stringify
(
data
)
===
null
).
assertFalse
();
done
();
}
...
...
@@ -2045,7 +1986,6 @@ export default function ObjectInterfaceTest() {
done
();
sleep
(
500
)
}).
catch
((
err
)
=>
{
console
.
error
(
`selectContact fail: err->
${
JSON
.
stringify
(
err
)}
`
);
done
();
});
});
...
...
@@ -2074,11 +2014,9 @@ export default function ObjectInterfaceTest() {
if
(
result1
==
-
1
||
result2
==
-
1
)
{
contactPermission
=
false
;
done
();
return
;
}
contactPermission
=
true
;
done
();
return
;
}
});
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录