Bug 831183 - Part 3: Marionette tests for SET_UP_CALL. r=allstars.chh

This commit is contained in:
Edgar Chen 2013-01-16 11:34:44 +08:00
Родитель e0a8e4c886
Коммит 2015193c5f
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -130,6 +130,18 @@ function testTimerManagementGetCurrentValue(cmd) {
runNextTest();
}
function testSetupCall(cmd) {
log("STK CMD " + JSON.stringify(cmd));
is(cmd.typeOfCommand, icc.STK_CMD_SET_UP_CALL);
is(cmd.commandNumber, 0x01);
is(cmd.commandQualifier, 0x04);
is(cmd.options.address, "012340123456,1,2");
is(cmd.options.confirmMessage, "Disconnect");
is(cmd.options.callMessage, "Message");
runNextTest();
}
let tests = [
{command: "d0288103012180820281020d1d00d3309bfc06c95c301aa8e80259c3ec34b9ac07c9602f58ed159bb940",
func: testDisplayTextGsm7BitEncoding},
@ -155,6 +167,8 @@ let tests = [
func: testTimerManagementDeactivate},
{command: "d00c810301270282028182a40108",
func: testTimerManagementGetCurrentValue},
{command: "d029810301100482028182050a446973636f6e6e6563748609811032042143651c2c05074d657373616765",
func: testSetupCall},
];
let pendingEmulatorCmdCount = 0;