1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/icc/tests/marionette/test_stk_send_ss.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,200 @@ 1.4 +/* Any copyright is dedicated to the Public Domain. 1.5 + http://creativecommons.org/publicdomain/zero/1.0/ */ 1.6 + 1.7 +MARIONETTE_HEAD_JS = "stk_helper.js"; 1.8 + 1.9 +function testSendSS(command, expect) { 1.10 + log("STK CMD " + JSON.stringify(command)); 1.11 + is(command.typeOfCommand, iccManager.STK_CMD_SEND_SS, expect.name); 1.12 + is(command.commandQualifier, expect.commandQualifier, expect.name); 1.13 + if (command.options.text) { 1.14 + is(command.options.text, expect.title, expect.name); 1.15 + } 1.16 + 1.17 + runNextTest(); 1.18 +} 1.19 + 1.20 +let tests = [ 1.21 + {command: "d029810301110082028183850c43616c6c20466f7277617264891091aa120a214365870921436587a901fb", 1.22 + func: testSendSS, 1.23 + expect: {name: "send_ss_cmd_1", 1.24 + commandQualifier: 0x00, 1.25 + title: "Call Forward"}}, 1.26 + {command: "d02d810301110082028183850c43616c6c20466f7277617264891491aa120a21436587092143658709214365a711fb", 1.27 + func: testSendSS, 1.28 + expect: {name: "send_ss_cmd_2", 1.29 + commandQualifier: 0x00, 1.30 + title: "Call Forward"}}, 1.31 + {command: "d081fd8103011100820281838581eb4576656e20696620746865204669786564204469616c6c696e67204e756d626572207365727669636520697320656e61626c65642c2074686520737570706c656d656e74617279207365727669636520636f6e74726f6c20737472696e6720696e636c7564656420696e207468652053454e442053532070726f61637469766520636f6d6d616e64207368616c6c206e6f7420626520636865636b656420616761696e73742074686f7365206f66207468652046444e206c6973742e2055706f6e20726563656976696e67207468697320636f6d6d616e642c20746865204d45207368616c6c20646563698904ffba13fb", 1.32 + func: testSendSS, 1.33 + expect: {name: "send_ss_cmd_3", 1.34 + commandQualifier: 0x00, 1.35 + 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"}}, 1.36 + {command: "d01d8103011100820281838500891091aa120a214365870921436587a901fb", 1.37 + func: testSendSS, 1.38 + expect: {name: "send_ss_cmd_4", 1.39 + commandQualifier: 0x00, 1.40 + title: ""}}, 1.41 + {command: "d02b810301110082028183850a42617369632049636f6e891091aa120a214365870921436587a901fb9e020001", 1.42 + func: testSendSS, 1.43 + expect: {name: "send_ss_cmd_5", 1.44 + commandQualifier: 0x00, 1.45 + title: "Basic Icon"}}, 1.46 + {command: "d02c810301110082028183850b436f6c6f75722049636f6e891091aa120a214365870921436587a901fb9e020002", 1.47 + func: testSendSS, 1.48 + expect: {name: "send_ss_cmd_6", 1.49 + commandQualifier: 0x00, 1.50 + title: "Colour Icon"}}, 1.51 + {command: "d02b810301110082028183850a42617369632049636f6e891091aa120a214365870921436587a901fb9e020101", 1.52 + func: testSendSS, 1.53 + expect: {name: "send_ss_cmd_7", 1.54 + commandQualifier: 0x00, 1.55 + title: "Basic Icon"}}, 1.56 + {command: "d036810301110082028183851980041704140420041004120421042204120423041904220415891091aa120a214365870921436587a901fb", 1.57 + func: testSendSS, 1.58 + expect: {name: "send_ss_cmd_8", 1.59 + commandQualifier: 0x00, 1.60 + title: "ЗДРАВСТВУЙТЕ"}}, 1.61 + {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001000b4", 1.62 + func: testSendSS, 1.63 + expect: {name: "send_ss_cmd_9", 1.64 + commandQualifier: 0x00, 1.65 + title: "Text Attribute 1"}}, 1.66 + {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb", 1.67 + func: testSendSS, 1.68 + expect: {name: "send_ss_cmd_10", 1.69 + commandQualifier: 0x00, 1.70 + title: "Text Attribute 2"}}, 1.71 + {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001001b4", 1.72 + func: testSendSS, 1.73 + expect: {name: "send_ss_cmd_11", 1.74 + commandQualifier: 0x00, 1.75 + title: "Text Attribute 1"}}, 1.76 + {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb", 1.77 + func: testSendSS, 1.78 + expect: {name: "send_ss_cmd_12", 1.79 + commandQualifier: 0x00, 1.80 + title: "Text Attribute 2"}}, 1.81 + {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001002b4", 1.82 + func: testSendSS, 1.83 + expect: {name: "send_ss_cmd_13", 1.84 + commandQualifier: 0x00, 1.85 + title: "Text Attribute 1"}}, 1.86 + {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb", 1.87 + func: testSendSS, 1.88 + expect: {name: "send_ss_cmd_14", 1.89 + commandQualifier: 0x00, 1.90 + title: "Text Attribute 2"}}, 1.91 + {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001004b4", 1.92 + func: testSendSS, 1.93 + expect: {name: "send_ss_cmd_15", 1.94 + commandQualifier: 0x00, 1.95 + title: "Text Attribute 1"}}, 1.96 + {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", 1.97 + func: testSendSS, 1.98 + expect: {name: "send_ss_cmd_16", 1.99 + commandQualifier: 0x00, 1.100 + title: "Text Attribute 2"}}, 1.101 + {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", 1.102 + func: testSendSS, 1.103 + expect: {name: "send_ss_cmd_17", 1.104 + commandQualifier: 0x00, 1.105 + title: "Text Attribute 3"}}, 1.106 + {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001008b4", 1.107 + func: testSendSS, 1.108 + expect: {name: "send_ss_cmd_18", 1.109 + commandQualifier: 0x00, 1.110 + title: "Text Attribute 1"}}, 1.111 + {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", 1.112 + func: testSendSS, 1.113 + expect: {name: "send_ss_cmd_19", 1.114 + commandQualifier: 0x00, 1.115 + title: "Text Attribute 2"}}, 1.116 + {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", 1.117 + func: testSendSS, 1.118 + expect: {name: "send_ss_cmd_20", 1.119 + commandQualifier: 0x00, 1.120 + title: "Text Attribute 3"}}, 1.121 + {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001010b4", 1.122 + func: testSendSS, 1.123 + expect: {name: "send_ss_cmd_21", 1.124 + commandQualifier: 0x00, 1.125 + title: "Text Attribute 1"}}, 1.126 + {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", 1.127 + func: testSendSS, 1.128 + expect: {name: "send_ss_cmd_22", 1.129 + commandQualifier: 0x00, 1.130 + title: "Text Attribute 2"}}, 1.131 + {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", 1.132 + func: testSendSS, 1.133 + expect: {name: "send_ss_cmd_23", 1.134 + commandQualifier: 0x00, 1.135 + title: "Text Attribute 3"}}, 1.136 + {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001020b4", 1.137 + func: testSendSS, 1.138 + expect: {name: "send_ss_cmd_24", 1.139 + commandQualifier: 0x00, 1.140 + title: "Text Attribute 1"}}, 1.141 + {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", 1.142 + func: testSendSS, 1.143 + expect: {name: "send_ss_cmd_25", 1.144 + commandQualifier: 0x00, 1.145 + title: "Text Attribute 2"}}, 1.146 + {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", 1.147 + func: testSendSS, 1.148 + expect: {name: "send_ss_cmd_26", 1.149 + commandQualifier: 0x00, 1.150 + title: "Text Attribute 3"}}, 1.151 + {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001040b4", 1.152 + func: testSendSS, 1.153 + expect: {name: "send_ss_cmd_27", 1.154 + commandQualifier: 0x00, 1.155 + title: "Text Attribute 1"}}, 1.156 + {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", 1.157 + func: testSendSS, 1.158 + expect: {name: "send_ss_cmd_28", 1.159 + commandQualifier: 0x00, 1.160 + title: "Text Attribute 2"}}, 1.161 + {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", 1.162 + func: testSendSS, 1.163 + expect: {name: "send_ss_cmd_29", 1.164 + commandQualifier: 0x00, 1.165 + title: "Text Attribute 3"}}, 1.166 + {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001080b4", 1.167 + func: testSendSS, 1.168 + expect: {name: "send_ss_cmd_30", 1.169 + commandQualifier: 0x00, 1.170 + title: "Text Attribute 1"}}, 1.171 + {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", 1.172 + func: testSendSS, 1.173 + expect: {name: "send_ss_cmd_31", 1.174 + commandQualifier: 0x00, 1.175 + title: "Text Attribute 2"}}, 1.176 + {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", 1.177 + func: testSendSS, 1.178 + expect: {name: "send_ss_cmd_32", 1.179 + commandQualifier: 0x00, 1.180 + title: "Text Attribute 3"}}, 1.181 + {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001000b4", 1.182 + func: testSendSS, 1.183 + expect: {name: "send_ss_cmd_33", 1.184 + commandQualifier: 0x00, 1.185 + title: "Text Attribute 1"}}, 1.186 + {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb", 1.187 + func: testSendSS, 1.188 + expect: {name: "send_ss_cmd_34", 1.189 + commandQualifier: 0x00, 1.190 + title: "Text Attribute 2"}}, 1.191 + {command: "d0228103011100820281838505804f60597d891091aa120a214365870921436587a901fb", 1.192 + func: testSendSS, 1.193 + expect: {name: "send_ss_cmd_35", 1.194 + commandQualifier: 0x00, 1.195 + title: "你好"}}, 1.196 + {command: "d02081030111008202818385038030eb891091aa120a214365870921436587a901fb", 1.197 + func: testSendSS, 1.198 + expect: {name: "send_ss_cmd_36", 1.199 + commandQualifier: 0x00, 1.200 + title: "ル"}} 1.201 +]; 1.202 + 1.203 +runNextTest();