From a02186b10c400d7c67a9d86ca055391d9a91d76c Mon Sep 17 00:00:00 2001 From: Siddartha P Date: Wed, 9 Jan 2013 17:13:16 +0100 Subject: [PATCH] Bug 827831 - Part 3: [B2G STK]: Marionette test case. r=allstars.chh --- .../tests/marionette/test_stk_proactive_command.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dom/icc/tests/marionette/test_stk_proactive_command.js b/dom/icc/tests/marionette/test_stk_proactive_command.js index 1edddaf6081..3ef709ee9e4 100644 --- a/dom/icc/tests/marionette/test_stk_proactive_command.js +++ b/dom/icc/tests/marionette/test_stk_proactive_command.js @@ -130,6 +130,15 @@ function testTimerManagementGetCurrentValue(cmd) { runNextTest(); } +function testGetInKeyVariableTimeout(cmd) { + log("STK CMD " + JSON.stringify(cmd)); + is(cmd.typeOfCommand, icc.STK_CMD_GET_INKEY); + is(cmd.duration.timeUnit, 0x01); + is(cmd.duration.timeInterval, 0x0A); + + runNextTest(); +} + function testSetupCall(cmd) { log("STK CMD " + JSON.stringify(cmd)); is(cmd.typeOfCommand, icc.STK_CMD_SET_UP_CALL); @@ -169,6 +178,8 @@ let tests = [ func: testTimerManagementGetCurrentValue}, {command: "d029810301100482028182050a446973636f6e6e6563748609811032042143651c2c05074d657373616765", func: testSetupCall}, + {command: "D0198103012200820281828D0A04456E74657220222B228402010A", + func: testGetInKeyVariableTimeout}, ]; let pendingEmulatorCmdCount = 0;