зеркало из https://github.com/mozilla/gecko-dev.git
Bug 804667 - Part 5: Marionette tests for TIMER_MANAGEMENT. r=allstars.chh
This commit is contained in:
Родитель
dc0b71c43a
Коммит
91882c89eb
|
@ -96,6 +96,40 @@ function testRefresh(cmd) {
|
|||
runNextTest();
|
||||
}
|
||||
|
||||
function testTimerManagementStart(cmd) {
|
||||
log("STK CMD " + JSON.stringify(cmd));
|
||||
is(cmd.typeOfCommand, icc.STK_CMD_TIMER_MANAGEMENT);
|
||||
is(cmd.commandNumber, 0x01);
|
||||
is(cmd.commandQualifier, icc.STK_TIMER_START);
|
||||
is(cmd.options.timerAction, icc.STK_TIMER_START);
|
||||
is(cmd.options.timerId, 0x01);
|
||||
is(cmd.options.timerValue, (0x01 * 60 * 60) + (0x02 * 60) + 0x03);
|
||||
|
||||
runNextTest();
|
||||
}
|
||||
|
||||
function testTimerManagementDeactivate(cmd) {
|
||||
log("STK CMD " + JSON.stringify(cmd));
|
||||
is(cmd.typeOfCommand, icc.STK_CMD_TIMER_MANAGEMENT);
|
||||
is(cmd.commandNumber, 0x01);
|
||||
is(cmd.commandQualifier, icc.STK_TIMER_DEACTIVATE);
|
||||
is(cmd.options.timerAction, icc.STK_TIMER_DEACTIVATE);
|
||||
is(cmd.options.timerId, 0x04);
|
||||
|
||||
runNextTest();
|
||||
}
|
||||
|
||||
function testTimerManagementGetCurrentValue(cmd) {
|
||||
log("STK CMD " + JSON.stringify(cmd));
|
||||
is(cmd.typeOfCommand, icc.STK_CMD_TIMER_MANAGEMENT);
|
||||
is(cmd.commandNumber, 0x01);
|
||||
is(cmd.commandQualifier, icc.STK_TIMER_GET_CURRENT_VALUE);
|
||||
is(cmd.options.timerAction, icc.STK_TIMER_GET_CURRENT_VALUE);
|
||||
is(cmd.options.timerId, 0x08);
|
||||
|
||||
runNextTest();
|
||||
}
|
||||
|
||||
let tests = [
|
||||
{command: "d0288103012180820281020d1d00d3309bfc06c95c301aa8e80259c3ec34b9ac07c9602f58ed159bb940",
|
||||
func: testDisplayTextGsm7BitEncoding},
|
||||
|
@ -115,6 +149,12 @@ let tests = [
|
|||
func: testPollingOff},
|
||||
{command: "d0108103010101820281829205013f002fe2",
|
||||
func: testRefresh},
|
||||
{command: "d011810301270082028182a40101a503102030",
|
||||
func: testTimerManagementStart},
|
||||
{command: "d00c810301270182028182a40104",
|
||||
func: testTimerManagementDeactivate},
|
||||
{command: "d00c810301270282028182a40108",
|
||||
func: testTimerManagementGetCurrentValue},
|
||||
];
|
||||
|
||||
let pendingEmulatorCmdCount = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче