dom/icc/tests/marionette/test_stk_send_ss.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* Any copyright is dedicated to the Public Domain.
     2    http://creativecommons.org/publicdomain/zero/1.0/ */
     4 MARIONETTE_HEAD_JS = "stk_helper.js";
     6 function testSendSS(command, expect) {
     7   log("STK CMD " + JSON.stringify(command));
     8   is(command.typeOfCommand, iccManager.STK_CMD_SEND_SS, expect.name);
     9   is(command.commandQualifier, expect.commandQualifier, expect.name);
    10   if (command.options.text) {
    11     is(command.options.text, expect.title, expect.name);
    12   }
    14   runNextTest();
    15 }
    17 let tests = [
    18   {command: "d029810301110082028183850c43616c6c20466f7277617264891091aa120a214365870921436587a901fb",
    19    func: testSendSS,
    20    expect: {name: "send_ss_cmd_1",
    21             commandQualifier: 0x00,
    22             title: "Call Forward"}},
    23   {command: "d02d810301110082028183850c43616c6c20466f7277617264891491aa120a21436587092143658709214365a711fb",
    24    func: testSendSS,
    25    expect: {name: "send_ss_cmd_2",
    26             commandQualifier: 0x00,
    27             title: "Call Forward"}},
    28   {command: "d081fd8103011100820281838581eb4576656e20696620746865204669786564204469616c6c696e67204e756d626572207365727669636520697320656e61626c65642c2074686520737570706c656d656e74617279207365727669636520636f6e74726f6c20737472696e6720696e636c7564656420696e207468652053454e442053532070726f61637469766520636f6d6d616e64207368616c6c206e6f7420626520636865636b656420616761696e73742074686f7365206f66207468652046444e206c6973742e2055706f6e20726563656976696e67207468697320636f6d6d616e642c20746865204d45207368616c6c20646563698904ffba13fb",
    29    func: testSendSS,
    30    expect: {name: "send_ss_cmd_3",
    31             commandQualifier: 0x00,
    32             title: "Even if the Fixed Dialling Number service is enabled, the supplementary service control string included in the SEND SS proactive command shall not be checked against those of the FDN list. Upon receiving this command, the ME shall deci"}},
    33   {command: "d01d8103011100820281838500891091aa120a214365870921436587a901fb",
    34    func: testSendSS,
    35    expect: {name: "send_ss_cmd_4",
    36             commandQualifier: 0x00,
    37             title: ""}},
    38   {command: "d02b810301110082028183850a42617369632049636f6e891091aa120a214365870921436587a901fb9e020001",
    39    func: testSendSS,
    40    expect: {name: "send_ss_cmd_5",
    41             commandQualifier: 0x00,
    42             title: "Basic Icon"}},
    43   {command: "d02c810301110082028183850b436f6c6f75722049636f6e891091aa120a214365870921436587a901fb9e020002",
    44    func: testSendSS,
    45    expect: {name: "send_ss_cmd_6",
    46             commandQualifier: 0x00,
    47             title: "Colour Icon"}},
    48   {command: "d02b810301110082028183850a42617369632049636f6e891091aa120a214365870921436587a901fb9e020101",
    49    func: testSendSS,
    50    expect: {name: "send_ss_cmd_7",
    51             commandQualifier: 0x00,
    52             title: "Basic Icon"}},
    53   {command: "d036810301110082028183851980041704140420041004120421042204120423041904220415891091aa120a214365870921436587a901fb",
    54    func: testSendSS,
    55    expect: {name: "send_ss_cmd_8",
    56             commandQualifier: 0x00,
    57             title: "ЗДРАВСТВУЙТЕ"}},
    58   {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001000b4",
    59    func: testSendSS,
    60    expect: {name: "send_ss_cmd_9",
    61             commandQualifier: 0x00,
    62             title: "Text Attribute 1"}},
    63   {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb",
    64    func: testSendSS,
    65    expect: {name: "send_ss_cmd_10",
    66             commandQualifier: 0x00,
    67             title: "Text Attribute 2"}},
    68   {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001001b4",
    69    func: testSendSS,
    70    expect: {name: "send_ss_cmd_11",
    71             commandQualifier: 0x00,
    72             title: "Text Attribute 1"}},
    73   {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb",
    74    func: testSendSS,
    75    expect: {name: "send_ss_cmd_12",
    76             commandQualifier: 0x00,
    77             title: "Text Attribute 2"}},
    78   {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001002b4",
    79    func: testSendSS,
    80    expect: {name: "send_ss_cmd_13",
    81             commandQualifier: 0x00,
    82             title: "Text Attribute 1"}},
    83   {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb",
    84    func: testSendSS,
    85    expect: {name: "send_ss_cmd_14",
    86             commandQualifier: 0x00,
    87             title: "Text Attribute 2"}},
    88   {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001004b4",
    89    func: testSendSS,
    90    expect: {name: "send_ss_cmd_15",
    91             commandQualifier: 0x00,
    92             title: "Text Attribute 1"}},
    93   {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4",
    94    func: testSendSS,
    95    expect: {name: "send_ss_cmd_16",
    96             commandQualifier: 0x00,
    97             title: "Text Attribute 2"}},
    98   {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb",
    99    func: testSendSS,
   100    expect: {name: "send_ss_cmd_17",
   101             commandQualifier: 0x00,
   102             title: "Text Attribute 3"}},
   103   {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001008b4",
   104    func: testSendSS,
   105    expect: {name: "send_ss_cmd_18",
   106             commandQualifier: 0x00,
   107             title: "Text Attribute 1"}},
   108   {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4",
   109    func: testSendSS,
   110    expect: {name: "send_ss_cmd_19",
   111             commandQualifier: 0x00,
   112             title: "Text Attribute 2"}},
   113   {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb",
   114    func: testSendSS,
   115    expect: {name: "send_ss_cmd_20",
   116             commandQualifier: 0x00,
   117             title: "Text Attribute 3"}},
   118   {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001010b4",
   119    func: testSendSS,
   120    expect: {name: "send_ss_cmd_21",
   121             commandQualifier: 0x00,
   122             title: "Text Attribute 1"}},
   123   {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4",
   124    func: testSendSS,
   125    expect: {name: "send_ss_cmd_22",
   126             commandQualifier: 0x00,
   127             title: "Text Attribute 2"}},
   128   {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb",
   129    func: testSendSS,
   130    expect: {name: "send_ss_cmd_23",
   131             commandQualifier: 0x00,
   132             title: "Text Attribute 3"}},
   133   {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001020b4",
   134    func: testSendSS,
   135    expect: {name: "send_ss_cmd_24",
   136             commandQualifier: 0x00,
   137             title: "Text Attribute 1"}},
   138   {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4",
   139    func: testSendSS,
   140    expect: {name: "send_ss_cmd_25",
   141             commandQualifier: 0x00,
   142             title: "Text Attribute 2"}},
   143   {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb",
   144    func: testSendSS,
   145    expect: {name: "send_ss_cmd_26",
   146             commandQualifier: 0x00,
   147             title: "Text Attribute 3"}},
   148   {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001040b4",
   149    func: testSendSS,
   150    expect: {name: "send_ss_cmd_27",
   151             commandQualifier: 0x00,
   152             title: "Text Attribute 1"}},
   153   {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4",
   154    func: testSendSS,
   155    expect: {name: "send_ss_cmd_28",
   156             commandQualifier: 0x00,
   157             title: "Text Attribute 2"}},
   158   {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb",
   159    func: testSendSS,
   160    expect: {name: "send_ss_cmd_29",
   161             commandQualifier: 0x00,
   162             title: "Text Attribute 3"}},
   163   {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001080b4",
   164    func: testSendSS,
   165    expect: {name: "send_ss_cmd_30",
   166             commandQualifier: 0x00,
   167             title: "Text Attribute 1"}},
   168   {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4",
   169    func: testSendSS,
   170    expect: {name: "send_ss_cmd_31",
   171             commandQualifier: 0x00,
   172             title: "Text Attribute 2"}},
   173   {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb",
   174    func: testSendSS,
   175    expect: {name: "send_ss_cmd_32",
   176             commandQualifier: 0x00,
   177             title: "Text Attribute 3"}},
   178   {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001000b4",
   179    func: testSendSS,
   180    expect: {name: "send_ss_cmd_33",
   181             commandQualifier: 0x00,
   182             title: "Text Attribute 1"}},
   183   {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb",
   184    func: testSendSS,
   185    expect: {name: "send_ss_cmd_34",
   186             commandQualifier: 0x00,
   187             title: "Text Attribute 2"}},
   188   {command: "d0228103011100820281838505804f60597d891091aa120a214365870921436587a901fb",
   189    func: testSendSS,
   190    expect: {name: "send_ss_cmd_35",
   191             commandQualifier: 0x00,
   192             title: "你好"}},
   193   {command: "d02081030111008202818385038030eb891091aa120a214365870921436587a901fb",
   194    func: testSendSS,
   195    expect: {name: "send_ss_cmd_36",
   196             commandQualifier: 0x00,
   197             title: "ル"}}
   198 ];
   200 runNextTest();

mercurial