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

!4995 电话用例整改

Merge pull request !4995 from 高曦/master
......@@ -185,120 +185,6 @@ describe('CallManageImsCall', function () {
callDetailsChangeOff();
console.log('Telephony_CallManager all 54 case is over for callmanager CallManageImsCall');
});
/**
* @tc.number Telephony_CallManager_IMS_enableLteEnhanceMode_Async_0400
* @tc.name Run the function enableLteEnhanceMode by args slotId SLOT_ID_INVALID,
* by callback,the function return error
* @tc.desc Function test
*/
it('Telephony_CallManager_IMS_enableLteEnhanceMode_Async_0400', 0, function (done) {
let caseName = 'Telephony_CallManager_IMS_enableLteEnhanceMode_Async_0400';
call.enableLteEnhanceMode(SLOT_ID_INVALID, (error, data) => {
if (error) {
console.log(`${caseName} enableLteEnhanceMode error,case success,error:${toString(error)}`);
done();
return;
}
expect().assertFail();
console.log(`${caseName} enableLteEnhanceMode success,case failed,data:${toString(data)}`);
done();
});
});
/**
* @tc.number Telephony_CallManager_IMS_enableLteEnhanceMode_Promise_0400
* @tc.name Run the function enableLteEnhanceMode by args slotId SLOT_ID_INVALID by promise,
* the function return error
* @tc.desc Function test
*/
it('Telephony_CallManager_IMS_enableLteEnhanceMode_Promise_0400', 0, function (done) {
let caseName = 'Telephony_CallManager_IMS_enableLteEnhanceMode_Promise_0400';
call.enableLteEnhanceMode(SLOT_ID_INVALID).then(data => {
expect().assertFail();
console.log(`${caseName} enableLteEnhanceMode success,case failed,data:${toString(data)}`);
done();
}).catch(error => {
console.log(`${caseName} enableLteEnhanceMode error,case success,error:${toString(error)}`);
done();
});
});
/**
* @tc.number Telephony_CallManager_IMS_disableLteEnhanceMode_Async_0400
* @tc.name Run the function disableLteEnhanceMode by args slotId SLOT_ID_INVALID,
* by callback,the function return error
* @tc.desc Function test
*/
it('Telephony_CallManager_IMS_disableLteEnhanceMode_Async_0400', 0, function (done) {
let caseName = 'Telephony_CallManager_IMS_disableLteEnhanceMode_Async_0400';
call.disableLteEnhanceMode(SLOT_ID_INVALID, (error, data) => {
if (error) {
console.log(`${caseName} disableLteEnhanceMode error,case success,error:${toString(error)}`);
done();
return;
}
expect().assertFail();
console.log(`${caseName} disableLteEnhanceMode success,case failed,data:${toString(data)}`);
done();
});
});
/**
* @tc.number Telephony_CallManager_IMS_disableLteEnhanceMode_Promise_0400
* @tc.name Run the function disableLteEnhanceMode by args slotId SLOT_ID_INVALID by promise,
* the function return error
* @tc.desc Function test
*/
it('Telephony_CallManager_IMS_disableLteEnhanceMode_Promise_0400', 0, function (done) {
let caseName = 'Telephony_CallManager_IMS_disableLteEnhanceMode_Promise_0400';
call.disableLteEnhanceMode(SLOT_ID_INVALID).then(data => {
expect().assertFail();
console.log(`${caseName} disableLteEnhanceMode success,case failed,data:${toString(data)}`);
done();
}).catch(error => {
console.log(`${caseName} disableLteEnhanceMode error,case success,error:${toString(error)}`);
done();
});
});
/**
* @tc.number Telephony_CallManager_IMS_isLteEnhanceModeEnabled_Async_0400
* @tc.name Run the function isLteEnhanceModeEnabled by args slotId SLOT_ID_INVALID by callback,
* the function return error
* @tc.desc Function test
*/
it('Telephony_CallManager_IMS_isLteEnhanceModeEnabled_Async_0400', 0, function (done) {
let caseName = 'Telephony_CallManager_IMS_isLteEnhanceModeEnabled_Async_0400';
call.isLteEnhanceModeEnabled(SLOT_ID_INVALID, (error, data) => {
if (error) {
console.log(`${caseName} isLteEnhanceModeEnabled error,case success,error:${toString(error)}`);
done();
return;
}
expect().assertFail();
console.log(`${caseName} isLteEnhanceModeEnabled success,case failed,data:${toString(data)}`);
done();
});
});
/**
* @tc.number Telephony_CallManager_IMS_isLteEnhanceModeEnabled_Promise_0400
* @tc.name Run the function isLteEnhanceModeEnabled by args slotId SLOT_ID_INVALID by promise,
* the function return error
* @tc.desc Function test
*/
it('Telephony_CallManager_IMS_isLteEnhanceModeEnabled_Promise_0400', 0, function (done) {
let caseName = 'Telephony_CallManager_IMS_isLteEnhanceModeEnabled_Promise_0400';
call.isLteEnhanceModeEnabled(SLOT_ID_INVALID).then(data => {
expect().assertFail();
console.log(`${caseName} isLteEnhanceModeEnabled success,case failed,data:${toString(data)}`);
done();
}).catch(error => {
console.log(`${caseName} isLteEnhanceModeEnabled error,case success,error:${toString(error)}`);
done();
});
});
/**
* @tc.number Telephony_CallManager_IMS_startRTT_Async_0200
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册