mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 804671 - Part 4: marrionette tests for PROVIDE_LOCAL_INFORMATION. r=allstars.chh
This commit is contained in:
parent
15a7a23a55
commit
f780e493f6
@ -17,9 +17,57 @@ function testDisplayTextGsm7BitEncoding(cmd) {
|
||||
runNextTest();
|
||||
}
|
||||
|
||||
function testLocalInfoLocation(cmd) {
|
||||
log("STK CMD " + JSON.stringify(cmd));
|
||||
is(cmd.typeOfCommand, icc.STK_CMD_PROVIDE_LOCAL_INFO);
|
||||
is(cmd.commandNumber, 0x01);
|
||||
is(cmd.commandQualifier, icc.STK_LOCAL_INFO_LOCATION_INFO);
|
||||
is(cmd.options.localInfoType, icc.STK_LOCAL_INFO_LOCATION_INFO);
|
||||
|
||||
runNextTest();
|
||||
}
|
||||
|
||||
function testLocalInfoImei(cmd) {
|
||||
log("STK CMD " + JSON.stringify(cmd));
|
||||
is(cmd.typeOfCommand, icc.STK_CMD_PROVIDE_LOCAL_INFO);
|
||||
is(cmd.commandNumber, 0x01);
|
||||
is(cmd.commandQualifier, icc.STK_LOCAL_INFO_IMEI);
|
||||
is(cmd.options.localInfoType, icc.STK_LOCAL_INFO_IMEI);
|
||||
|
||||
runNextTest();
|
||||
}
|
||||
|
||||
function testLocalInfoDate(cmd) {
|
||||
log("STK CMD " + JSON.stringify(cmd));
|
||||
is(cmd.typeOfCommand, icc.STK_CMD_PROVIDE_LOCAL_INFO);
|
||||
is(cmd.commandNumber, 0x01);
|
||||
is(cmd.commandQualifier, icc.STK_LOCAL_INFO_DATE_TIME_ZONE);
|
||||
is(cmd.options.localInfoType, icc.STK_LOCAL_INFO_DATE_TIME_ZONE);
|
||||
|
||||
runNextTest();
|
||||
}
|
||||
|
||||
function testLocalInfoLanguage(cmd) {
|
||||
log("STK CMD " + JSON.stringify(cmd));
|
||||
is(cmd.typeOfCommand, icc.STK_CMD_PROVIDE_LOCAL_INFO);
|
||||
is(cmd.commandNumber, 0x01);
|
||||
is(cmd.commandQualifier, icc.STK_LOCAL_INFO_LANGUAGE);
|
||||
is(cmd.options.localInfoType, icc.STK_LOCAL_INFO_LANGUAGE);
|
||||
|
||||
runNextTest();
|
||||
}
|
||||
|
||||
let tests = [
|
||||
{command: "d0288103012180820281020d1d00d3309bfc06c95c301aa8e80259c3ec34b9ac07c9602f58ed159bb940",
|
||||
func: testDisplayTextGsm7BitEncoding},
|
||||
{command: "d009810301260082028182",
|
||||
func: testLocalInfoLocation},
|
||||
{command: "d009810301260182028182",
|
||||
func: testLocalInfoImei},
|
||||
{command: "d009810301260382028182",
|
||||
func: testLocalInfoDate},
|
||||
{command: "d009810301260482028182",
|
||||
func: testLocalInfoLanguage},
|
||||
];
|
||||
|
||||
let pendingEmulatorCmdCount = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user