michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: MARIONETTE_HEAD_JS = "stk_helper.js"; michael@0: michael@0: function testSendSS(command, expect) { michael@0: log("STK CMD " + JSON.stringify(command)); michael@0: is(command.typeOfCommand, iccManager.STK_CMD_SEND_SS, expect.name); michael@0: is(command.commandQualifier, expect.commandQualifier, expect.name); michael@0: if (command.options.text) { michael@0: is(command.options.text, expect.title, expect.name); michael@0: } michael@0: michael@0: runNextTest(); michael@0: } michael@0: michael@0: let tests = [ michael@0: {command: "d029810301110082028183850c43616c6c20466f7277617264891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_1", michael@0: commandQualifier: 0x00, michael@0: title: "Call Forward"}}, michael@0: {command: "d02d810301110082028183850c43616c6c20466f7277617264891491aa120a21436587092143658709214365a711fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_2", michael@0: commandQualifier: 0x00, michael@0: title: "Call Forward"}}, michael@0: {command: "d081fd8103011100820281838581eb4576656e20696620746865204669786564204469616c6c696e67204e756d626572207365727669636520697320656e61626c65642c2074686520737570706c656d656e74617279207365727669636520636f6e74726f6c20737472696e6720696e636c7564656420696e207468652053454e442053532070726f61637469766520636f6d6d616e64207368616c6c206e6f7420626520636865636b656420616761696e73742074686f7365206f66207468652046444e206c6973742e2055706f6e20726563656976696e67207468697320636f6d6d616e642c20746865204d45207368616c6c20646563698904ffba13fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_3", michael@0: commandQualifier: 0x00, michael@0: 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"}}, michael@0: {command: "d01d8103011100820281838500891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_4", michael@0: commandQualifier: 0x00, michael@0: title: ""}}, michael@0: {command: "d02b810301110082028183850a42617369632049636f6e891091aa120a214365870921436587a901fb9e020001", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_5", michael@0: commandQualifier: 0x00, michael@0: title: "Basic Icon"}}, michael@0: {command: "d02c810301110082028183850b436f6c6f75722049636f6e891091aa120a214365870921436587a901fb9e020002", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_6", michael@0: commandQualifier: 0x00, michael@0: title: "Colour Icon"}}, michael@0: {command: "d02b810301110082028183850a42617369632049636f6e891091aa120a214365870921436587a901fb9e020101", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_7", michael@0: commandQualifier: 0x00, michael@0: title: "Basic Icon"}}, michael@0: {command: "d036810301110082028183851980041704140420041004120421042204120423041904220415891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_8", michael@0: commandQualifier: 0x00, michael@0: title: "ЗДРАВСТВУЙТЕ"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001000b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_9", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 1"}}, michael@0: {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_10", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 2"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001001b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_11", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 1"}}, michael@0: {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_12", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 2"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001002b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_13", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 1"}}, michael@0: {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_14", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 2"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001004b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_15", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 1"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_16", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 2"}}, michael@0: {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_17", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 3"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001008b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_18", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 1"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_19", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 2"}}, michael@0: {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_20", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 3"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001010b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_21", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 1"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_22", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 2"}}, michael@0: {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_23", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 3"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001020b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_24", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 1"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_25", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 2"}}, michael@0: {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_26", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 3"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001040b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_27", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 1"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_28", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 2"}}, michael@0: {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_29", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 3"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001080b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_30", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 1"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_31", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 2"}}, michael@0: {command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_32", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 3"}}, michael@0: {command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001000b4", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_33", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 1"}}, michael@0: {command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_34", michael@0: commandQualifier: 0x00, michael@0: title: "Text Attribute 2"}}, michael@0: {command: "d0228103011100820281838505804f60597d891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_35", michael@0: commandQualifier: 0x00, michael@0: title: "你好"}}, michael@0: {command: "d02081030111008202818385038030eb891091aa120a214365870921436587a901fb", michael@0: func: testSendSS, michael@0: expect: {name: "send_ss_cmd_36", michael@0: commandQualifier: 0x00, michael@0: title: "ル"}} michael@0: ]; michael@0: michael@0: runNextTest();