未验证 提交 bffedcf2 编写于 作者: O openharmony_ci 提交者: Gitee

!2631 电话子系统用例适配

Merge pull request !2631 from 高曦/OpenHarmony-3.1-Release
...@@ -18,6 +18,24 @@ import http from '@ohos.net.http'; ...@@ -18,6 +18,24 @@ import http from '@ohos.net.http';
export default function responseCodeJsunit() { export default function responseCodeJsunit() {
describe("responseCodeJsunitTest", function () { describe("responseCodeJsunitTest", function () {
/**
* @tc.number Telephony_Http_ResponseCode_OK_0100
* @tc.name ResponseCode::OK
* @tc.desc Test ResponseCode property.
*/
it("Telephony_Http_ResponseCode_OK_0100", 0, async function (done) {
console.log("-----------------------Telephony_Http_ResponseCode_OK_0100 start-----------------------");
try {
expect(200).assertEqual(http.ResponseCode.OK);
console.log("-----------------------Telephony_Http_ResponseCode_OK_0100 OK assertEqual SUCCESS-----------------------");
} catch (error) {
console.log("Telephony_Http_ResponseCode_OK_0100 : error = " + error);
}
done();
console.log("-----------------------Telephony_Http_ResponseCode_OK_0100 end-----------------------");
});
/** /**
* @tc.number Telephony_Http_ResponseCode_ACCEPTED_0100 * @tc.number Telephony_Http_ResponseCode_ACCEPTED_0100
* @tc.name ResponseCode::ACCEPTED * @tc.name ResponseCode::ACCEPTED
......
...@@ -295,6 +295,9 @@ export default function callJsunit(){ ...@@ -295,6 +295,9 @@ export default function callJsunit(){
console.log(`${caseName} error,error :${toString(err)}`); console.log(`${caseName} error,error :${toString(err)}`);
done(); done();
return; return;
} else {
let callAttributeOptions = data;
console.log(`${caseName} success, startTime = :` + callAttributeOptions.startTime);
} }
expect(true).assertTrue(); expect(true).assertTrue();
done(); done();
......
...@@ -154,6 +154,30 @@ export default function radioSecondJsunit() { ...@@ -154,6 +154,30 @@ export default function radioSecondJsunit() {
}); });
}) })
/**
* @tc.number Telephony_Radio_CdmaCellInformation_sid_0100
* @tc.name sid
* @tc.desc sid test
*/
it('Telephony_Radio_CdmaCellInformation_sid_0100', 0, async function (done) {
console.log("-----------------------Telephony_Radio_CdmaCellInformation_sid_0100 start-----------------------");
if (utils.notCheck) {
expect(true).assertTrue();
done();
return;
}
let cdmaCellInformatio = {
baseId: 1,
latitude: 39,
longitude: 116,
nid: 101,
sid: 102
}
expect(101).assertEqual(cdmaCellInformatio.nid);
expect(102).assertEqual(cdmaCellInformatio.sid);
console.log("-----------------------Telephony_Radio_CdmaCellInformation_sid_0100 end-----------------------");
})
/** /**
* @tc.number Telephony_NetworkSearch_getNetworkSearchInformation_Async_0100 * @tc.number Telephony_NetworkSearch_getNetworkSearchInformation_Async_0100
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册