Bug 819834 - Part 2: Marionette tests. r=allstars.chh
authorEdgar Chen <echen@mozilla.com>
Mon, 10 Dec 2012 18:07:36 +0800
changeset 115881 caf2b8ec76f9683b219ff785e7f58a779351b16c
parent 115880 eddc239db46201c974c786aca1eba1fc3ddcd2ee
child 115882 72913ea85419123674f4fa2d04890b0163998698
push id19602
push useryhuang@mozilla.com
push dateThu, 13 Dec 2012 06:27:03 +0000
treeherdermozilla-inbound@caf2b8ec76f9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersallstars.chh
bugs819834
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 819834 - Part 2: Marionette tests. r=allstars.chh
dom/icc/tests/marionette/test_stk_proactive_command.js
--- a/dom/icc/tests/marionette/test_stk_proactive_command.js
+++ b/dom/icc/tests/marionette/test_stk_proactive_command.js
@@ -71,31 +71,55 @@ function testInitialSetupMenu(cmd) {
 function testRemoveSetupMenu(cmd) {
   log("STK CMD " + JSON.stringify(cmd));
   is(cmd.typeOfCommand, icc.STK_CMD_SET_UP_MENU);
   is(isFirstMenuItemNull(cmd), true);
 
   runNextTest();
 }
 
+function testPollingOff(cmd) {
+  log("STK CMD " + JSON.stringify(cmd));
+  is(cmd.typeOfCommand, icc.STK_CMD_POLL_OFF);
+  is(cmd.commandNumber, 0x01);
+  is(cmd.commandQualifier, 0x00);
+  is(cmd.options, null);
+
+  runNextTest();
+}
+
+function testRefresh(cmd) {
+  log("STK CMD " + JSON.stringify(cmd));
+  is(cmd.typeOfCommand, icc.STK_CMD_REFRESH);
+  is(cmd.commandNumber, 0x01);
+  is(cmd.commandQualifier, 0x01);
+  is(cmd.options, null);
+
+  runNextTest();
+}
+
 let tests = [
   {command: "d0288103012180820281020d1d00d3309bfc06c95c301aa8e80259c3ec34b9ac07c9602f58ed159bb940",
    func: testDisplayTextGsm7BitEncoding},
   {command: "d009810301260082028182",
    func: testLocalInfoLocation},
   {command: "d009810301260182028182",
    func: testLocalInfoImei},
   {command: "d009810301260382028182",
    func: testLocalInfoDate},
   {command: "d009810301260482028182",
    func: testLocalInfoLanguage},
   {command: "D00D81030125008202818285008F00",
    func: testRemoveSetupMenu},
   {command:"D03B810301250082028182850C546F6F6C6B6974204D656E758F07014974656D20318F07024974656D20328F07034974656D20338F07044974656D2034",
    func: testInitialSetupMenu},
+  {command: "d009810301040082028182",
+   func: testPollingOff},
+  {command: "d0108103010101820281829205013f002fe2",
+   func: testRefresh},
 ];
 
 let pendingEmulatorCmdCount = 0;
 function sendStkPduToEmulator(cmd, func) {
   ++pendingEmulatorCmdCount;
 
   runEmulatorCmd(cmd, function (result) {
     --pendingEmulatorCmdCount;