提交 7507f211 编写于 作者: Z zhangfuzhi

new add isNRSuppported

Signed-off-by: Nzhangfuzhi <zhangfuzhi1@huawei.com>
上级 424a5d84
/**
* Copyright (c) 2021-2022 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
......@@ -64,17 +64,41 @@ export default function radioJsunit() {
* @tc.desc Function test
*/
it('Telephony_NetworkSearch_isNrSupported_Promise_0400', 0, async function (done) {
let CaseName = "Telephony_NetworkSearch_isNrSupported_Promise_0400 ";
try {
let result = radio.isNrSupported();
console.log("Result: " + result);
console.info("Result: " + result);
let result0 = radio.isNrSupported(SLOT_0);
console.log("Result0: " + result0);
console.info("Result0: " + result0);
console.info(CaseName + "is complete!");
done();
} catch (err) {
console.log("Telephony_NetworkSearch_isNrSupported_Promise_0400 err" + JSON.stringify(err));
console.info(CaseName + "err " + JSON.stringify(err));
expect(false).assertTrue();
done();
}
});
/**
* @tc.number Telephony_NetworkSearch_isNRSupported_Async_0100
* @tc.name Test The function isNRSupported(soltId)
* @tc.desc Function test
*/
it('Telephony_NetworkSearch_isNRSupported_Async_0100', 0, async function (done) {
let CaseName = "Telephony_NetworkSearch_isNRSupported_Async_0100 ";
try {
let result = radio.isNRSupported();
console.info("Result: " + result);
let result0 = radio.isNRSupported(SLOT_0);
console.info("Result0: " + result0);
console.info(CaseName + "is complete!");
done();
} catch (err) {
console.info(CaseName + "err " + JSON.stringify(err));
expect(false).assertTrue();
done();
}
});
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册