Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ba16019c
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看板
提交
ba16019c
编写于
8月 31, 2022
作者:
L
lihao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add new case
Signed-off-by:
N
lihao
<
lihao334@huawei.com
>
上级
9f37d599
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
15 deletion
+19
-15
telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/config.json
.../call_manager/call_manager_ims2_call/src/main/config.json
+4
-0
telephony/telephonyjstest/telephony_base/call_manager/src/main/js/test/CallManagerTest.test.js
...ase/call_manager/src/main/js/test/CallManagerTest.test.js
+2
-2
telephony/telephonyjstest/telephony_base/cellular_data/src/main/js/test/PdpProfileDataStorageFunction.test.js
...ta/src/main/js/test/PdpProfileDataStorageFunction.test.js
+13
-13
未找到文件。
telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/config.json
浏览文件 @
ba16019c
...
...
@@ -108,6 +108,10 @@
{
"name"
:
"ohos.permission.INTERNET"
,
"reason"
:
"need use ohos.permission.INTERNET"
},
{
"name"
:
"ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
,
"reason"
:
"need use ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
}
],
"js"
:
[
...
...
telephony/telephonyjstest/telephony_base/call_manager/src/main/js/test/CallManagerTest.test.js
浏览文件 @
ba16019c
...
...
@@ -12,13 +12,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
net
_c
onnection
from
'
@ohos.net.connection
'
;
import
net
C
onnection
from
'
@ohos.net.connection
'
;
import
call
from
'
@ohos.telephony.call
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
;
export
default
function
ActsBaseCallManagerTest
()
{
let
net
=
net
_c
onnection
.
createNetConnection
()
let
net
=
net
C
onnection
.
createNetConnection
()
class
RejectMessageOptions
{
constructor
(
str
)
{
...
...
telephony/telephonyjstest/telephony_base/cellular_data/src/main/js/test/PdpProfileDataStorageFunction.test.js
浏览文件 @
ba16019c
...
...
@@ -37,7 +37,7 @@ export default function ActsBaseCellularDataTest() {
beforeAll
(
function
()
{
let
stringValue
=
{
profile_
n
ame
:
"
test_profile_name
"
,
profile_
N
ame
:
"
test_profile_name
"
,
mcc
:
"
460
"
,
mnc
:
"
91
"
};
...
...
@@ -47,7 +47,7 @@ export default function ActsBaseCellularDataTest() {
}).
catch
(
error
=>
{
expect
().
assertFail
();
console
.
log
(
"
Telephony_DataStorage_beforeAll failed
"
);
return
;
done
()
;
});
})
...
...
@@ -63,7 +63,7 @@ export default function ActsBaseCellularDataTest() {
}).
catch
(
error
=>
{
expect
().
assertFail
();
console
.
log
(
"
Telephony_DataStorage_PdpProfile_afterAll failed
"
);
return
;
done
()
;
});
})
...
...
@@ -74,7 +74,7 @@ export default function ActsBaseCellularDataTest() {
*/
it
(
"
Telephony_DataStorage_PdpProfile_Insert_Async_0100
"
,
0
,
async
function
(
done
)
{
let
stringValue
=
{
profile_
n
ame
:
"
test_profile_name
"
,
profile_
N
ame
:
"
test_profile_name
"
,
mcc
:
"
460
"
,
mnc
:
"
91
"
};
...
...
@@ -86,7 +86,6 @@ export default function ActsBaseCellularDataTest() {
expect
().
assertFail
();
console
.
log
(
"
Telephony_DataStorage_InsetIntoPdpProfile_Async_0100 failed
"
);
done
();
return
;
});
})
...
...
@@ -105,22 +104,23 @@ export default function ActsBaseCellularDataTest() {
condition
.
equalTo
(
"
profile_name
"
,
"
test_profile_name
"
);
dataAbilityHelper
.
query
(
pdpProfileFullUri
,
resultColumns
,
condition
).
then
(
resultSet
=>
{
let
pdpProfiles
=
[];
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Query_Async_0100 resultSet:
"
+
JSON
.
stringify
(
resultSet
));
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Query_Async_0100 resultSet:
"
+
JSON
.
stringify
(
resultSet
));
while
(
resultSet
.
goToNextRow
())
{
let
pdpProfile
=
{};
pdpProfile
.
profile_
n
ame
=
resultSet
.
getString
(
0
);
pdpProfile
.
profile_
N
ame
=
resultSet
.
getString
(
0
);
pdpProfile
.
mcc
=
resultSet
.
getString
(
1
);
pdpProfile
.
mnc
=
resultSet
.
getString
(
2
);
pdpProfiles
.
push
(
pdpProfile
);
}
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Query_Async_0100 pdpProfiles:
"
+
JSON
.
stringify
(
pdpProfiles
));
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Query_Async_0100 pdpProfiles:
"
+
JSON
.
stringify
(
pdpProfiles
));
expect
(
pdpProfiles
.
length
>=
1
).
assertTrue
();
done
();
}).
catch
(
error
=>
{
expect
().
assertFail
();
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Query_Async_0100 failed
"
);
done
();
return
;
});
})
...
...
@@ -137,14 +137,14 @@ export default function ActsBaseCellularDataTest() {
'
mnc
'
:
"
92
"
,
};
dataAbilityHelper
.
update
(
pdpProfileFullUri
,
stringValue
,
condition
).
then
(
data
=>
{
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Update_Async_0100: update success data:
"
+
JSON
.
stringify
(
data
));
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Update_Async_0100: update success data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
===
0
).
assertTrue
();
done
();
}).
catch
(
error
=>
{
expect
().
assertFail
();
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Update_Async_0100 failed
"
);
done
();
return
;
});
})
...
...
@@ -157,14 +157,14 @@ export default function ActsBaseCellularDataTest() {
var
condition
=
new
ohosDataAbility
.
DataAbilityPredicates
();
condition
.
equalTo
(
"
profile_name
"
,
"
test_profile_name
"
);
dataAbilityHelper
.
delete
(
pdpProfileFullUri
,
condition
).
then
(
data
=>
{
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Delete_Async_0100: delete success data:
"
+
JSON
.
stringify
(
data
));
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Delete_Async_0100: delete success data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
===
0
).
assertTrue
();
done
();
}).
catch
(
error
=>
{
expect
().
assertFail
();
console
.
log
(
"
Telephony_DataStorage_PdpProfile_Update_Async_0100 failed
"
);
done
();
return
;
});
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录