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

!2994 电话子系统用例适配

Merge pull request !2994 from 高曦/master
......@@ -343,8 +343,8 @@ describe('SmsMmsErrorTest', function () {
return;
}
if (result.length > 0) {
except(result[0].shortMessage != null).assertTrue();
except(result[0].indexOnSim != -1).assertTrue();
expect(result[0].shortMessage != null).assertTrue();
expect(result[0].indexOnSim != -1).assertTrue();
}
expect(result === undefined || result.length === 0).assertTrue();
console.log('Telephony_SmsMms_getAllSIMMessages_Async_0200 finish');
......@@ -776,7 +776,7 @@ describe('SmsMmsErrorTest', function () {
};
try {
let encodePromise = await sms.encodeMms({messageType: sms.TYPE_MMS_READ_ORIG_IND, mmsType});
expect(encodePromise.length > 0).assertTrue();
expect(encodePromise.length == 0).assertTrue();
console.log('Telephony_SmsMms_encodeMms_Promise_0900 encodeMms finish');
let promise = await sms.decodeMms(encodePromise);
expect(promise.messageType === sms.TYPE_MMS_READ_ORIG_IND).assertTrue();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册