зеркало из https://github.com/mozilla/gecko-dev.git
Bug 946079 - Part 3: Remove testLevel1Indicator from test case. r=vyang
This commit is contained in:
Родитель
1d98487574
Коммит
1396cb50c4
|
@ -56,44 +56,15 @@ function isVoicemailStatus(status) {
|
|||
const MWI_PDU_PREFIX = "0000";
|
||||
const MWI_PDU_UDH_PREFIX = "0040";
|
||||
const MWI_PID_DEFAULT = "00";
|
||||
const MWI_PID_RETURN_CALL_MSG = "5F";
|
||||
const MWI_DCS_DATA_MSG = "F0";
|
||||
const MWI_DCS_DISCARD_INACTIVE = "C0";
|
||||
const MWI_DCS_DISCARD_ACTIVE = "C8";
|
||||
const MWI_TIMESTAMP = "00000000000000";
|
||||
|
||||
const MWI_LEVEL1_SENDER = "+15125551234";
|
||||
const MWI_LEVEL1_PDU_ADDRESS = PDUBuilder.buildAddress(MWI_LEVEL1_SENDER);
|
||||
const MWI_DEFAULT_BODY = "1 new voicemail";
|
||||
const MWI_UD_DEFAULT = PDUBuilder.buildUserData({
|
||||
body: MWI_DEFAULT_BODY
|
||||
});
|
||||
|
||||
// Level 1 Message Waiting is just a return call message
|
||||
const MWI_LEVEL1_PDU =
|
||||
MWI_PDU_PREFIX +
|
||||
MWI_LEVEL1_PDU_ADDRESS +
|
||||
MWI_PID_RETURN_CALL_MSG +
|
||||
MWI_DCS_DATA_MSG +
|
||||
MWI_TIMESTAMP +
|
||||
MWI_UD_DEFAULT;
|
||||
|
||||
function testLevel1Indicator() {
|
||||
|
||||
function onLevel1Indicator(event) {
|
||||
let status = event.status;
|
||||
// TODO: bug 905228 - MozVoicemailStatus is not defined.
|
||||
//ok(status instanceof MozVoicemailStatus);
|
||||
is(status.hasMessages, true);
|
||||
is(status.messageCount, -1);
|
||||
is(status.returnNumber, MWI_LEVEL1_SENDER);
|
||||
is(status.returnMessage, MWI_DEFAULT_BODY);
|
||||
isVoicemailStatus(status);
|
||||
}
|
||||
|
||||
sendIndicatorPDU(MWI_LEVEL1_PDU, onLevel1Indicator, testLevel2DiscardActive);
|
||||
}
|
||||
|
||||
const MWI_LEVEL2_SENDER = "+15125551235";
|
||||
const MWI_LEVEL2_PDU_ADDRESS = PDUBuilder.buildAddress(MWI_LEVEL2_SENDER);
|
||||
const MWI_LEVEL2_DISCARD_ACTIVE_PDU =
|
||||
|
@ -234,4 +205,4 @@ function cleanUp() {
|
|||
finish();
|
||||
}
|
||||
|
||||
testLevel1Indicator();
|
||||
testLevel2DiscardActive();
|
||||
|
|
Загрузка…
Ссылка в новой задаче