зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1123624 - Part 2-1: Remove redundant test data in test_stk_*.js. r=bevis
This commit is contained in:
Родитель
3dd989f682
Коммит
c365ee709e
|
@ -14,13 +14,6 @@ const TEST_DATA = [
|
|||
text: "Toolkit Test 2",
|
||||
isHighPriority: true,
|
||||
userClear: true}},
|
||||
{command: "d0198103012180820281028d0e00d4f79bbd4ed341d4f29c0e9a01",
|
||||
expect: {commandQualifier: 0x80,
|
||||
text: "Toolkit Test 3",
|
||||
userClear: true}},
|
||||
{command: "d01a8103012100820281028d0f04546f6f6c6b697420546573742034",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Toolkit Test 4"}},
|
||||
{command: "d081ad8103012180820281028d81a1045468697320636f6d6d616e6420696e7374727563747320746865204d4520746f20646973706c617920612074657874206d6573736167652e20497420616c6c6f7773207468652053494d20746f20646566696e6520746865207072696f72697479206f662074686174206d6573736167652c20616e6420746865207465787420737472696e6720666f726d61742e2054776f207479706573206f66207072696f",
|
||||
expect: {commandQualifier: 0x80,
|
||||
text: "This command instructs the ME to display a text message. It allows the SIM to define the priority of that message, and the text string format. Two types of prio",
|
||||
|
@ -37,10 +30,6 @@ const TEST_DATA = [
|
|||
expect: {commandQualifier: 0x80,
|
||||
text: "你好",
|
||||
userClear: true}},
|
||||
{command: "d0128103012180820281028d07080038003030eb",
|
||||
expect: {commandQualifier: 0x80,
|
||||
text: "80ル",
|
||||
userClear: true}},
|
||||
{command: "d0288103012180820281020d1d00d3309bfc06c95c301aa8e80259c3ec34b9ac07c9602f58ed159bb940",
|
||||
expect: {commandQualifier: 0x80,
|
||||
text: "Saldo 2.04 E. Validez 20/05/13. ",
|
||||
|
|
|
@ -5,22 +5,9 @@ MARIONETTE_TIMEOUT = 60000;
|
|||
MARIONETTE_HEAD_JS = "head.js";
|
||||
|
||||
const TEST_DATA = [
|
||||
{command: "d0158103012200820281828d0a04456e74657220222b22",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Enter \"+\""}},
|
||||
{command: "d0148103012200820281828d09004537bd2c07896022",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Enter \"0\""}},
|
||||
{command: "d01a8103012200820281828d0f043c474f2d4241434b57415244533e",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "<GO-BACKWARDS>"}},
|
||||
{command: "d0138103012200820281828d08043c41424f52543e",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "<ABORT>"}},
|
||||
{command: "d0158103012201820281828d0a04456e74657220227122",
|
||||
expect: {commandQualifier: 0x01,
|
||||
text: "Enter \"q\"",
|
||||
isAlphabet: true}},
|
||||
{command: "d081ad8103012201820281828d81a104456e746572202278222e205468697320636f6d6d616e6420696e7374727563747320746865204d4520746f20646973706c617920746578742c20616e6420746f2065787065637420746865207573657220746f20656e74657220612073696e676c65206368617261637465722e20416e7920726573706f6e736520656e7465726564206279207468652075736572207368616c6c206265207061737365642074",
|
||||
expect: {commandQualifier: 0x01,
|
||||
text: "Enter \"x\". This command instructs the ME to display text, and to expect the user to enter a single character. Any response entered by the user shall be passed t",
|
||||
|
@ -28,9 +15,6 @@ const TEST_DATA = [
|
|||
{command: "d0168103012200820281828d0b043c54494d452d4f55543e",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "<TIME-OUT>"}},
|
||||
{command: "d0248103012200820281828d1908041704140420041004120421042204120423041904220415",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "ЗДРАВСТВУЙТЕ"}},
|
||||
{command: "d081998103012200820281828d818d080417041404200410041204210422041204230419042204150417041404200410041204210422041204230419042204150417041404200410041204210422041204230419042204150417041404200410041204210422041204230419042204150417041404200410041204210422041204230419042204150417041404200410041204210422041204230419",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "ЗДРАВСТВУЙТЕЗДРАВСТВУЙТЕЗДРАВСТВУЙТЕЗДРАВСТВУЙТЕЗДРАВСТВУЙТЕЗДРАВСТВУЙ"}},
|
||||
|
@ -43,10 +27,6 @@ const TEST_DATA = [
|
|||
expect: {commandQualifier: 0x04,
|
||||
text: "Enter YES",
|
||||
isYesNoRequested: true}},
|
||||
{command: "d0148103012204820281828d0904456e746572204e4f",
|
||||
expect: {commandQualifier: 0x04,
|
||||
text: "Enter NO",
|
||||
isYesNoRequested: true}},
|
||||
{command: "d0198103012200820281828d0a043c4e4f2d49434f4e3e1e020002",
|
||||
expect: {commandQualifier: 0x00,
|
||||
// The record number 02 in EFimg is not defined, so no icon will be
|
||||
|
|
|
@ -28,55 +28,22 @@ const TEST_DATA = [
|
|||
minLength: 4,
|
||||
maxLength: 8,
|
||||
hideInput: true}},
|
||||
{command: "d0248103012300820281828d1504456e74657220312e2e392c302e2e392c3028312991020114",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Enter 1..9,0..9,0(1)",
|
||||
minLength: 1,
|
||||
maxLength: 20}},
|
||||
{command: "d01e8103012300820281828d0f043c474f2d4241434b57415244533e91020008",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "<GO-BACKWARDS>",
|
||||
minLength: 0,
|
||||
maxLength: 8}},
|
||||
{command: "d0178103012300820281828d08043c41424f52543e91020008",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "<ABORT>",
|
||||
minLength: 0,
|
||||
maxLength: 8}},
|
||||
{command: "d081b18103012300820281828d81a1042a2a2a313131313131313131312323232a2a2a323232323232323232322323232a2a2a333333333333333333332323232a2a2a343434343434343434342323232a2a2a353535353535353535352323232a2a2a363636363636363636362323232a2a2a373737373737373737372323232a2a2a383838383838383838382323232a2a2a393939393939393939392323232a2a2a303030303030303030302323239102a0a0",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "***1111111111###***2222222222###***3333333333###***4444444444###***5555555555###***6666666666###***7777777777###***8888888888###***9999999999###***0000000000###",
|
||||
minLength: 160,
|
||||
maxLength: 160}},
|
||||
{command: "d0168103012300820281828d07043c53454e443e91020001",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "<SEND>",
|
||||
minLength: 0,
|
||||
maxLength: 1}},
|
||||
{command: "d01a8103012300820281828d0b043c54494d452d4f55543e9102000a",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "<TIME-OUT>",
|
||||
minLength: 0,
|
||||
maxLength: 10}},
|
||||
{command: "d0288103012301820281828d190804170414042004100412042104220412042304190422041591020505",
|
||||
expect: {commandQualifier: 0x01,
|
||||
text: "ЗДРАВСТВУЙТЕ",
|
||||
minLength: 5,
|
||||
maxLength: 5,
|
||||
isAlphabet: true}},
|
||||
{command: "d0819d8103012301820281828d818d08041704140420041004120421042204120423041904220415041704140420041004120421042204120423041904220415041704140420041004120421042204120423041904220415041704140420041004120421042204120423041904220415041704140420041004120421042204120423041904220415041704140420041004120421042204120423041991020505",
|
||||
expect: {commandQualifier: 0x01,
|
||||
text: "ЗДРАВСТВУЙТЕЗДРАВСТВУЙТЕЗДРАВСТВУЙТЕЗДРАВСТВУЙТЕЗДРАВСТВУЙТЕЗДРАВСТВУЙ",
|
||||
minLength: 5,
|
||||
maxLength: 5,
|
||||
isAlphabet: true}},
|
||||
{command: "d01b8103012303820281828d0c04456e7465722048656c6c6f91020c0c",
|
||||
expect: {commandQualifier: 0x03,
|
||||
text: "Enter Hello",
|
||||
minLength: 12,
|
||||
maxLength: 12,
|
||||
isAlphabet: true,
|
||||
isUCS2: true}},
|
||||
{command: "d01b8103012303820281828d0c04456e7465722048656c6c6f910205ff",
|
||||
expect: {commandQualifier: 0x03,
|
||||
text: "Enter Hello",
|
||||
|
@ -84,12 +51,6 @@ const TEST_DATA = [
|
|||
maxLength: 0xFF,
|
||||
isAlphabet: true,
|
||||
isUCS2: true}},
|
||||
{command: "d0238103012300820281828d0c04456e746572203132333435910205051706043132333435",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Enter 12345",
|
||||
minLength: 5,
|
||||
maxLength: 5,
|
||||
defaultText: "12345"}},
|
||||
{command: "d081ba8103012300820281828d0704456e7465723a9102a0a01781a1042a2a2a313131313131313131312323232a2a2a323232323232323232322323232a2a2a333333333333333333332323232a2a2a343434343434343434342323232a2a2a353535353535353535352323232a2a2a363636363636363636362323232a2a2a373737373737373737372323232a2a2a383838383838383838382323232a2a2a393939393939393939392323232a2a2a30303030303030303030232323",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Enter:",
|
||||
|
|
|
@ -13,9 +13,6 @@ const TEST_DATA = [
|
|||
expect: {commandQualifier: 0x00,
|
||||
url: "http://xxx.yyy.zzz",
|
||||
confirmMessage: { text: "" }}},
|
||||
{command: "d00e8103011500820281823001003100",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: ""}},
|
||||
{command: "d0208103011500820281823100320103" +
|
||||
"0d10046162632e6465662e6768692e6a6b6c", // "0D" String TLV is useless for Launch Browser.
|
||||
expect: {commandQualifier: 0x00,
|
||||
|
@ -28,9 +25,6 @@ const TEST_DATA = [
|
|||
expect: {commandQualifier: 0x03,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL"}}},
|
||||
{command: "d00b8103011500820281823100",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: ""}},
|
||||
{command: "d0268103011502820281823100051980041704140420041004120421042204120423041904220415",
|
||||
expect: {commandQualifier: 0x02,
|
||||
url: "",
|
||||
|
@ -42,125 +36,10 @@ const TEST_DATA = [
|
|||
iconSelfExplanatory: false,
|
||||
icons : [BASIC_ICON] }
|
||||
}},
|
||||
{command: "d01d8103011502820281823100050c53656c66206578706c616e2e1e020001",
|
||||
expect: {commandQualifier: 0x02,
|
||||
url: "",
|
||||
confirmMessage: { text: "Self explan.",
|
||||
iconSelfExplanatory: true,
|
||||
icons : [BASIC_ICON] }
|
||||
}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2031d004000d00b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 1" }}},
|
||||
{command: "d01a8103011500820281823100050d44656661756c742055524c2032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 2" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2031d004000d01b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 1" }}},
|
||||
{command: "d01a8103011500820281823100050d44656661756c742055524c2032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 2" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2031d004000d02b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 1" }}},
|
||||
{command: "d01a8103011500820281823100050d44656661756c742055524c2032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 2" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2031d004000d04b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 1" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2032d004000d00b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 2" }}},
|
||||
{command: "d01a8103011500820281823100050d44656661756c742055524c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 3" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2031d004000d08b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 1" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2032d004000d00b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 2" }}},
|
||||
{command: "d01a8103011500820281823100050d44656661756c742055524c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 3" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2031d004000d10b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 1" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2032d004000d00b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 2" }}},
|
||||
{command: "d01a8103011500820281823100050d44656661756c742055524c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 3" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2031d004000d20b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 1" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2032d004000d00b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 2" }}},
|
||||
{command: "d01a8103011500820281823100050d44656661756c742055524c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 3" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2031d004000d40b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 1" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2032d004000d00b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 2" }}},
|
||||
{command: "d01a8103011500820281823100050d44656661756c742055524c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 3" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2031d004000d80b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 1" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2032d004000d00b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 2" }}},
|
||||
{command: "d01a8103011500820281823100050d44656661756c742055524c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 3" }}},
|
||||
{command: "d0208103011500820281823100050d44656661756c742055524c2031d004000d00b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 1" }}},
|
||||
{command: "d01a8103011500820281823100050d44656661756c742055524c2032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
confirmMessage: { text: "Default URL 2" }}},
|
||||
{command: "d01281030115028202818231000505804f60597d",
|
||||
expect: {commandQualifier: 0x02,
|
||||
url: "",
|
||||
confirmMessage: { text: "你好" }}},
|
||||
{command: "d010810301150282028182310005038030eb",
|
||||
expect: {commandQualifier: 0x02,
|
||||
url: "",
|
||||
confirmMessage: { text: "ル" }}},
|
||||
{command: "d01281030115008202818230010031001e020001",
|
||||
expect: {commandQualifier: 0x00,
|
||||
url: "",
|
||||
|
|
|
@ -17,31 +17,15 @@ const TEST_DATA = [
|
|||
expect: {commandQualifier: 0x00,
|
||||
title: "LargeMenu2",
|
||||
items: [{identifier: 255, text: "Call Forwarding Unconditional"}, {identifier: 254, text: "Call Forwarding On User Busy"}, {identifier: 253, text: "Call Forwarding On No Reply"}, {identifier: 252, text: "Call Forwarding On User Not Reachable"}, {identifier: 251, text: "Barring Of All Outgoing Calls"}, {identifier: 250, text: "Barring Of All Outgoing International Calls"}, {identifier: 249, text: "CLI Presentation"}]}},
|
||||
{command: "d022810301240082028182850b53656c656374204974656d8f04114f6e658f041254776f",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Select Item",
|
||||
items: [{identifier: 17, text: "One"}, {identifier: 18, text: "Two"}]}},
|
||||
{command: "d081fd8103012400820281828581ed5468652053494d207368616c6c20737570706c79206120736574206f66206974656d732066726f6d207768696368207468652075736572206d61792063686f6f7365206f6e652e2045616368206974656d20636f6d70726973657320612073686f7274206964656e74696669657220287573656420746f20696e646963617465207468652073656c656374696f6e2920616e642061207465787420737472696e672e204f7074696f6e616c6c79207468652053494d206d617920696e636c75646520616e20616c706861206964656e7469666965722e2054686520616c706861206964656e74696669657220698f020159",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "The SIM shall supply a set of items from which the user may choose one. Each item comprises a short identifier (used to indicate the selection) and a text string. Optionally the SIM may include an alpha identifier. The alpha identifier i",
|
||||
items: [{identifier: 1, text: "Y"}]}},
|
||||
{command: "d081f3810301240082028182850a304c617267654d656e758f1dff312043616c6c20466f727761726420556e636f6e646974696f6e616c8f1cfe322043616c6c20466f7277617264204f6e205573657220427573798f1bfd332043616c6c20466f7277617264204f6e204e6f205265706c798f25fc342043616c6c20466f7277617264204f6e2055736572204e6f7420526561636861626c658f20fb352042617272696e67204f6620416c6c204f7574676f696e672043616c6c738f24fa362042617272696e67204f6620416c6c204f7574676f696e6720496e742043616c6c738f13f93720434c492050726573656e746174696f6e",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "0LargeMenu",
|
||||
items: [{identifier: 255, text: "1 Call Forward Unconditional"}, {identifier: 254, text: "2 Call Forward On User Busy"}, {identifier: 253, text: "3 Call Forward On No Reply"}, {identifier: 252, text: "4 Call Forward On User Not Reachable"}, {identifier: 251, text: "5 Barring Of All Outgoing Calls"}, {identifier: 250, text: "6 Barring Of All Outgoing Int Calls"}, {identifier: 249, text: "7 CLI Presentation"}]}},
|
||||
{command: "d039810301240082028182850e546f6f6c6b69742053656c6563748f07014974656d20318f07024974656d20328f07034974656d20331803131026",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}],
|
||||
nextActionList: [MozIccManager.STK_CMD_SEND_SMS, MozIccManager.STK_CMD_SET_UP_CALL, MozIccManager.STK_CMD_PROVIDE_LOCAL_INFO]}},
|
||||
{command: "d037810301240082028182850e546f6f6c6b69742053656c6563748f07014974656d20318f07024974656d20328f07034974656d2033900102",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d034810301248082028182850e546f6f6c6b69742053656c6563748f07014974656d20318f07024974656d20328f07034974656d2033",
|
||||
expect: {commandQualifier: 0x80,
|
||||
title: "Toolkit Select",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d03e810301240082028182850e546f6f6c6b69742053656c6563748f07014974656d20318f07024974656d20328f07034974656d20339e0201019f0401030303",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select",
|
||||
|
@ -62,138 +46,14 @@ const TEST_DATA = [
|
|||
expect: {commandQualifier: 0x03,
|
||||
title: "Toolkit Select",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d034810301240182028182850e546f6f6c6b69742053656c6563748f07014974656d20318f07024974656d20328f07034974656d2033",
|
||||
expect: {commandQualifier: 0x01,
|
||||
title: "Toolkit Select",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d02b810301240482028182850e546f6f6c6b69742053656c6563748f07014974656d20318f07024974656d2032",
|
||||
expect: {commandQualifier: 0x04,
|
||||
title: "Toolkit Select",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d030810301240082028182850a3c54494d452d4f55543e8f07014974656d20318f07024974656d20328f07034974656d2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "<TIME-OUT>",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420318f07014974656d20318f07024974656d2032d004001000b4d108000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d02d8103012400820281828510546f6f6c6b69742053656c65637420328f07014974656d20338f07024974656d2034",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 2",
|
||||
items: [{identifier: 1, text: "Item 3"}, {identifier: 2, text: "Item 4"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420318f07014974656d20318f07024974656d2032d004001001b4d108000601b4000601b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d02d8103012400820281828510546f6f6c6b69742053656c65637420328f07014974656d20338f07024974656d2034",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 2",
|
||||
items: [{identifier: 1, text: "Item 3"}, {identifier: 2, text: "Item 4"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420318f07014974656d20318f07024974656d2032d004001002b4d108000602b4000602b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d02d8103012400820281828510546f6f6c6b69742053656c65637420328f07014974656d20338f07024974656d2034",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 2",
|
||||
items: [{identifier: 1, text: "Item 3"}, {identifier: 2, text: "Item 4"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420318f07014974656d20318f07024974656d2032d004001004b4d108000604b4000604b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420328f07014974656d20338f07024974656d2034d004001000b4d108000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 2",
|
||||
items: [{identifier: 1, text: "Item 3"}, {identifier: 2, text: "Item 4"}]}},
|
||||
{command: "d02d8103012400820281828510546f6f6c6b69742053656c65637420338f07014974656d20358f07024974656d2036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 3",
|
||||
items: [{identifier: 1, text: "Item 5"}, {identifier: 2, text: "Item 6"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420318f07014974656d20318f07024974656d2032d004001008b4d108000608b4000608b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420328f07014974656d20338f07024974656d2034d004001000b4d108000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 2",
|
||||
items: [{identifier: 1, text: "Item 3"}, {identifier: 2, text: "Item 4"}]}},
|
||||
{command: "d02d8103012400820281828510546f6f6c6b69742053656c65637420338f07014974656d20358f07024974656d2036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 3",
|
||||
items: [{identifier: 1, text: "Item 5"}, {identifier: 2, text: "Item 6"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420318f07014974656d20318f07024974656d2032d004001010b4d108000610b4000610b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420328f07014974656d20338f07024974656d2034d004001000b4d108000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 2",
|
||||
items: [{identifier: 1, text: "Item 3"}, {identifier: 2, text: "Item 4"}]}},
|
||||
{command: "d02d8103012400820281828510546f6f6c6b69742053656c65637420338f07014974656d20358f07024974656d2036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 3",
|
||||
items: [{identifier: 1, text: "Item 5"}, {identifier: 2, text: "Item 6"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420318f07014974656d20318f07024974656d2032d004001020b4d108000620b4000620b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420328f07014974656d20338f07024974656d2034d004001000b4d108000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 2",
|
||||
items: [{identifier: 1, text: "Item 3"}, {identifier: 2, text: "Item 4"}]}},
|
||||
{command: "d02d8103012400820281828510546f6f6c6b69742053656c65637420338f07014974656d20358f07024974656d2036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 3",
|
||||
items: [{identifier: 1, text: "Item 5"}, {identifier: 2, text: "Item 6"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420318f07014974656d20318f07024974656d2032d004001040b4d108000640b4000640b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420328f07014974656d20338f07024974656d2034d004001000b4d108000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 2",
|
||||
items: [{identifier: 1, text: "Item 3"}, {identifier: 2, text: "Item 4"}]}},
|
||||
{command: "d02d8103012400820281828510546f6f6c6b69742053656c65637420338f07014974656d20358f07024974656d2036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 3",
|
||||
items: [{identifier: 1, text: "Item 5"}, {identifier: 2, text: "Item 6"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420318f07014974656d20318f07024974656d2032d004001080b4d108000680b4000680b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420328f07014974656d20338f07024974656d2034d004001000b4d108000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 2",
|
||||
items: [{identifier: 1, text: "Item 3"}, {identifier: 2, text: "Item 4"}]}},
|
||||
{command: "d02d8103012400820281828510546f6f6c6b69742053656c65637420338f07014974656d20358f07024974656d2036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 3",
|
||||
items: [{identifier: 1, text: "Item 5"}, {identifier: 2, text: "Item 6"}]}},
|
||||
{command: "d03d8103012400820281828510546f6f6c6b69742053656c65637420318f07014974656d20318f07024974656d2032d004001000b4d108000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d02d8103012400820281828510546f6f6c6b69742053656c65637420328f07014974656d20338f07024974656d2034",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Select 2",
|
||||
items: [{identifier: 1, text: "Item 3"}, {identifier: 2, text: "Item 4"}]}},
|
||||
{command: "d07e8103012400820281828519800417041404200410041204210422041204230419042204158f1c018004170414042004100412042104220412042304190422041500318f1c028004170414042004100412042104220412042304190422041500328f1c03800417041404200410041204210422041204230419042204150033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "ЗДРАВСТВУЙТЕ",
|
||||
items: [{identifier: 1, text: "ЗДРАВСТВУЙТЕ1"}, {identifier: 2, text: "ЗДРАВСТВУЙТЕ2"}, {identifier: 3, text: "ЗДРАВСТВУЙТЕ3"}]}},
|
||||
{command: "d053810301240082028182850f810c089794a09092a1a292a399a2958f1101810d089794a09092a1a292a399a295318f1102810d089794a09092a1a292a399a295328f1103810d089794a09092a1a292a399a29533",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "ЗДРАВСТВУЙТЕ",
|
||||
items: [{identifier: 1, text: "ЗДРАВСТВУЙТЕ1"}, {identifier: 2, text: "ЗДРАВСТВУЙТЕ2"}, {identifier: 3, text: "ЗДРАВСТВУЙТЕ3"}]}},
|
||||
{command: "d0578103012400820281828510820c04108784908082919282938992858f1201820d0410878490808291928293899285318f1202820d0410878490808291928293899285328f1203820d041087849080829192829389928533",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "ЗДРАВСТВУЙТЕ",
|
||||
items: [{identifier: 1, text: "ЗДРАВСТВУЙТЕ1"}, {identifier: 2, text: "ЗДРАВСТВУЙТЕ2"}, {identifier: 3, text: "ЗДРАВСТВУЙТЕ3"}]}},
|
||||
{command: "d03e810301240082028182850b805de551777bb1900962e98f080180987976ee4e008f080280987976ee4e8c8f080380987976ee4e098f080480987976ee56db",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "工具箱选择",
|
||||
items: [{identifier: 1, text: "项目一"}, {identifier: 2, text: "项目二"}, {identifier: 3, text: "项目三"}, {identifier: 4, text: "项目四"}]}},
|
||||
{command: "d0388103012400820281828509800038003030eb00308f0a01800038003030eb00318f0a02800038003030eb00328f0a03800038003030eb0033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "80ル0",
|
||||
|
|
|
@ -13,8 +13,6 @@ const TEST_DATA = [
|
|||
{command: "d0138103011400820281838500ac06c1cccccccc2c",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: ""}},
|
||||
{command: "d011810301140082028183ac06c1cccccccc2c",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d01d810301140082028183850a42617369632049636f6eac02c1f29e020001",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Basic Icon",
|
||||
|
@ -24,80 +22,15 @@ const TEST_DATA = [
|
|||
expect: {commandQualifier: 0x00,
|
||||
iconSelfExplanatory: true,
|
||||
icons: [COLOR_TRANSPARENCY_ICON]}},
|
||||
{command: "d01c810301140082028183850953656e642044544d46ac02c1f29e020101",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF",
|
||||
iconSelfExplanatory: false,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d011810301140082028183ac02c1f29e020105",
|
||||
expect: {commandQualifier: 0x00,
|
||||
iconSelfExplanatory: false,
|
||||
icons: [COLOR_TRANSPARENCY_ICON]}},
|
||||
{command: "d028810301140082028183851980041704140420041004120421042204120423041904220415ac02c1f2",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "ЗДРАВСТВУЙТЕ"}},
|
||||
{command: "d00d810301140082028183ac02c1f2",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d023810301140082028183850b53656e642044544d462031ac052143658709d004000b00b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 1"}},
|
||||
{command: "d016810301140082028183ac052143658709d004000b00b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d01d810301140082028183850b53656e642044544d462032ac052143658709",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 2"}},
|
||||
{command: "d023810301140082028183850b53656e642044544d462031ac052143658709d004000b01b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 1"}},
|
||||
{command: "d016810301140082028183ac052143658709d004000b01b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d023810301140082028183850b53656e642044544d462031ac052143658709d00400b002b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 1"}},
|
||||
{command: "d016810301140082028183ac052143658709d00400b002b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d023810301140082028183850b53656e642044544d462031ac052143658709d004000b04b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 1"}},
|
||||
{command: "d016810301140082028183ac052143658709d004000b04b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d023810301140082028183850b53656e642044544d462032ac052143658709d004000b00b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 2"}},
|
||||
{command: "d01d810301140082028183850b53656e642044544d462033ac052143658709",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 3"}},
|
||||
{command: "d023810301140082028183850b53656e642044544d462031ac052143658709d004000b08b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 1"}},
|
||||
{command: "d016810301140082028183ac052143658709d004000b08b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d023810301140082028183850b53656e642044544d462031ac052143658709d004000b10b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 1"}},
|
||||
{command: "d016810301140082028183ac052143658709d004000b10b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d023810301140082028183850b53656e642044544d462031ac052143658709d004000b20b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 1"}},
|
||||
{command: "d016810301140082028183ac052143658709d004000b20b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d023810301140082028183850b53656e642044544d462031ac052143658709d004000b40b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 1"}},
|
||||
{command: "d016810301140082028183ac052143658709d004000b40b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d023810301140082028183850b53656e642044544d462031ac052143658709d004000b80b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send DTMF 1"}},
|
||||
{command: "d016810301140082028183ac052143658709d004000b80b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d0148103011400820281838505804f60597dac02c1f2",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "你好"}},
|
||||
{command: "d01281030114008202818385038030ebac02c1f2",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "ル"}}
|
||||
];
|
||||
|
||||
function testSendDTMF(aCommand, aExpect) {
|
||||
|
|
|
@ -5,36 +5,19 @@ MARIONETTE_TIMEOUT = 60000;
|
|||
MARIONETTE_HEAD_JS = "head.js";
|
||||
|
||||
const TEST_DATA = [
|
||||
{command: "d037810301130082028183850753656e6420534d86099111223344556677f88b180100099110325476f840f40c54657374204d657373616765",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Send SM"}},
|
||||
{command: "d02e81030113008202818386099111223344556677f88b180100099110325476f840f40c54657374204d657373616765",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d032810301130182028183850753656e6420534d86099111223344556677f88b130100099110325476f840f40753656e6420534d",
|
||||
expect: {commandQualifier: 0x01,
|
||||
text: "Send SM"}},
|
||||
{command: "d02981030113018202818386099111223344556677f88b130100099110325476f840f40753656e6420534d",
|
||||
expect: {commandQualifier: 0x01}},
|
||||
{command: "d03d810301130082028183850d53686f7274204d65737361676586099111223344556677f88b180100099110325476f840f00d53f45b4e0735cbf379f85c06",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Short Message"}},
|
||||
{command: "d02e81030113008202818386099111223344556677f88b180100099110325476f840f00d53f45b4e0735cbf379f85c06",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d081fd810301130182028183853854686520616464726573732064617461206f626a65637420686f6c6473207468652052501144657374696e6174696f6e114164647265737386099111223344556677f88b81ac0100099110325476f840f4a054776f2074797065732061726520646566696e65643a202d20412073686f7274206d65737361676520746f2062652073656e7420746f20746865206e6574776f726b20696e20616e20534d532d5355424d4954206d6573736167652c206f7220616e20534d532d434f4d4d414e44206d6573736167652c20776865726520746865207573657220646174612063616e20626520706173736564207472616e7370",
|
||||
expect: {commandQualifier: 0x01,
|
||||
text: "The address data object holds the RP_Destination_Address"}},
|
||||
{command: "d081c381030113018202818386099111223344556677f88b81ac0100099110325476f840f4a054776f2074797065732061726520646566696e65643a202d20412073686f7274206d65737361676520746f2062652073656e7420746f20746865206e6574776f726b20696e20616e20534d532d5355424d4954206d6573736167652c206f7220616e20534d532d434f4d4d414e44206d6573736167652c20776865726520746865207573657220646174612063616e20626520706173736564207472616e7370",
|
||||
expect: {commandQualifier: 0x01}},
|
||||
{command: "d081e9810301130082028183853854686520616464726573732064617461206f626a65637420686f6c6473207468652052502044657374696e6174696f6e204164647265737386099111223344556677f88b81980100099110325476f840f0a0d4fb1b44cfc3cb7350585e0691cbe6b4bb4cd6815aa020688e7ecbe9a076793e0f9fcb20fa1b242e83e665371d447f83e8e832c85da6dfdff23528ed0685dda06973da9a5685cd2415d42ecfe7e17399057acb41613768da9cb686cf6633e82482dae5f93c7c2eb3407774595e06d1d165507d5e9683c8617a18340ebb41e232081e9ecfcb64105d1e76cfe1",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "The address data object holds the RP Destination Address"}},
|
||||
{command: "d081af81030113008202818386099111223344556677f88b81980100099110325476f840f0a0d4fb1b44cfc3cb7350585e0691cbe6b4bb4cd6815aa020688e7ecbe9a076793e0f9fcb20fa1b242e83e665371d447f83e8e832c85da6dfdff23528ed0685dda06973da9a5685cd2415d42ecfe7e17399057acb41613768da9cb686cf6633e82482dae5f93c7c2eb3407774595e06d1d165507d5e9683c8617a18340ebb41e232081e9ecfcb64105d1e76cfe1",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d081fd8103011300820281838581e654776f2074797065732061726520646566696e65643a202d20412073686f7274206d65737361676520746f2062652073656e7420746f20746865206e6574776f726b20696e20616e20534d532d5355424d4954206d6573736167652c206f7220616e20534d532d434f4d4d414e44206d6573736167652c20776865726520746865207573657220646174612063616e20626520706173736564207472616e73706172656e746c793b202d20412073686f7274206d65737361676520746f2062652073656e7420746f20746865206e6574776f726b20696e20616e20534d532d5355424d4954208b09010002911040f00120",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Two types are defined: - A short message to be sent to the network in an SMS-SUBMIT message, or an SMS-COMMAND message, where the user data can be passed transparently; - A short message to be sent to the network in an SMS-SUBMIT "}},
|
||||
{command: "d0148103011300820281838b09010002911040f00120",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d030810301130082028183850086099111223344556677f88b180100099110325476f840f40c54657374204d657373616765",
|
||||
func: testSendSMS,
|
||||
expect: {commandQualifier: 0x00,
|
||||
|
@ -42,8 +25,6 @@ const TEST_DATA = [
|
|||
{command: "d05581030113008202818385198004170414042004100412042104220412042304190422041586099111223344556677f88b240100099110325476f8400818041704140420041004120421042204120423041904220415",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "ЗДРАВСТВУЙТЕ"}},
|
||||
{command: "d03a81030113008202818386099111223344556677f88b240100099110325476f8400818041704140420041004120421042204120423041904220415",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d04b810301130082028183850f810c089794a09092a1a292a399a29586099111223344556677f88b240100099110325476f8400818041704140420041004120421042204120423041904220415",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "ЗДРАВСТВУЙТЕ"}},
|
||||
|
@ -61,90 +42,18 @@ const TEST_DATA = [
|
|||
text: "Send SM",
|
||||
iconSelfExplanatory: false,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d03281030113008202818386099111223344556677f88b180100099110325476f840f40c54657374204d6573736167651e020101",
|
||||
expect: {commandQualifier: 0x00,
|
||||
iconSelfExplanatory: false,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d02c8103011300820281838510546578742041747472696275746520318b09010002911040f00120d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d01a8103011300820281838b09010002911040f00120d004001000b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d0268103011300820281838510546578742041747472696275746520328b09010002911040f00120",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 2"}},
|
||||
{command: "d02c8103011300820281838510546578742041747472696275746520318b09010002911040f00120d004001001b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d01a8103011300820281838b09010002911040f00120d004001001b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02c8103011300820281838510546578742041747472696275746520318b09010002911040f00120d004001002b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d01a8103011300820281838b09010002911040f00120d004001002b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02c8103011300820281838510546578742041747472696275746520318b09010002911040f00120d004001004b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d01a8103011300820281838b09010002911040f00120d004001004b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02c8103011300820281838510546578742041747472696275746520328b09010002911040f00120d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 2"}},
|
||||
{command: "d0268103011300820281838510546578742041747472696275746520338b09010002911040f00120",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 3"}},
|
||||
{command: "d02c8103011300820281838510546578742041747472696275746520318b09010002911040f00120d004001008b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d01a8103011300820281838b09010002911040f00120d004001008b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02c8103011300820281838510546578742041747472696275746520318b09010002911040f00120d004001010b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d01a8103011300820281838b09010002911040f00120d004001010b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02c8103011300820281838510546578742041747472696275746520318b09010002911040f00120d004001020b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d01a8103011300820281838b09010002911040f00120d004001020b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02c8103011300820281838510546578742041747472696275746520318b09010002911040f00120d004001040b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d01a8103011300820281838b09010002911040f00120d004001040b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02c8103011300820281838510546578742041747472696275746520318b09010002911040f00120d004001080b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d01a8103011300820281838b09010002911040f00120d004001080b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02d8103011300820281838505804e2d4e0086099111223344556677f88b100100099110325476f84008044e2d4e00",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "中一"}},
|
||||
{command: "d02681030113008202818386099111223344556677f88b100100099110325476f84008044e2d4e00",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02d810301130082028183850581029cad8086099111223344556677f88b100100099110325476f84008044e2d4e00",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "中一"}},
|
||||
{command: "d02e810301130082028183850682024e00ad8086099111223344556677f88b100100099110325476f84008044e2d4e00",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "中一"}},
|
||||
{command: "d0358103011300820281838509800038003030eb003086099111223344556677f88b140100099110325476f84008080038003030eb0031",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "80ル0"}},
|
||||
{command: "d02a81030113008202818386099111223344556677f88b140100099110325476f84008080038003030eb0031",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d03381030113008202818385078104613831eb3186099111223344556677f88b140100099110325476f84008080038003030eb0032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "81ル1"}},
|
||||
{command: "d02a81030113008202818386099111223344556677f88b140100099110325476f84008080038003030eb0032",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d0348103011300820281838508820430a03832cb3286099111223344556677f88b140100099110325476f84008080038003030eb0033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "82ル2"}},
|
||||
{command: "d02a81030113008202818386099111223344556677f88b140100099110325476f84008080038003030eb0033",
|
||||
expect: {commandQualifier: 0x00}}
|
||||
];
|
||||
|
||||
function testSendSMS(aCommand, aExpect) {
|
||||
|
|
|
@ -11,17 +11,9 @@ const TEST_DATA = [
|
|||
{command: "d01b810301110082028183891091aa120a214365870921436587a901fb",
|
||||
expect: {name: "send_ss_cmd_1_without_alpha_identifier",
|
||||
commandQualifier: 0x00}},
|
||||
{command: "d02d810301110082028183850c43616c6c20466f7277617264891491aa120a21436587092143658709214365a711fb",
|
||||
expect: {name: "send_ss_cmd_2_with_alpha_identifier",
|
||||
commandQualifier: 0x00,
|
||||
text: "Call Forward"}},
|
||||
{command: "d01f810301110082028183891491aa120a21436587092143658709214365a711fb",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d081fd8103011100820281838581eb4576656e20696620746865204669786564204469616c6c696e67204e756d626572207365727669636520697320656e61626c65642c2074686520737570706c656d656e74617279207365727669636520636f6e74726f6c20737472696e6720696e636c7564656420696e207468652053454e442053532070726f61637469766520636f6d6d616e64207368616c6c206e6f7420626520636865636b656420616761696e73742074686f7365206f66207468652046444e206c6973742e2055706f6e20726563656976696e67207468697320636f6d6d616e642c20746865204d45207368616c6c20646563698904ffba13fb",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "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"}},
|
||||
{command: "d00f8103011100820281838904ffba13fb",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d01d8103011100820281838500891091aa120a214365870921436587a901fb",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: ""}},
|
||||
|
@ -30,91 +22,19 @@ const TEST_DATA = [
|
|||
text: "Basic Icon",
|
||||
iconSelfExplanatory: true,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d01f810301110082028183891091aa120a214365870921436587a901fb9e020001",
|
||||
expect: {commandQualifier: 0x00,
|
||||
iconSelfExplanatory: true,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d02c810301110082028183850b436f6c6f75722049636f6e891091aa120a214365870921436587a901fb9e020003",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Colour Icon",
|
||||
iconSelfExplanatory: true,
|
||||
icons: [COLOR_ICON]}},
|
||||
{command: "d01f810301110082028183891091aa120a214365870921436587a901fb9e020003",
|
||||
expect: {commandQualifier: 0x00,
|
||||
iconSelfExplanatory: true,
|
||||
icons: [COLOR_ICON]}},
|
||||
{command: "d02b810301110082028183850a42617369632049636f6e891091aa120a214365870921436587a901fb9e020101",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Basic Icon",
|
||||
iconSelfExplanatory: false,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d01f810301110082028183891091aa120a214365870921436587a901fb9e020101",
|
||||
expect: {commandQualifier: 0x00,
|
||||
iconSelfExplanatory: false,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d036810301110082028183851980041704140420041004120421042204120423041904220415891091aa120a214365870921436587a901fb",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "ЗДРАВСТВУЙТЕ"}},
|
||||
{command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d021810301110082028183891091aa120a214365870921436587a901fbd004001000b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02d810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fb",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 2"}},
|
||||
{command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001001b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d021810301110082028183891091aa120a214365870921436587a901fbd004001001b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001002b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d021810301110082028183891091aa120a214365870921436587a901fbd004001002b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001004b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d021810301110082028183891091aa120a214365870921436587a901fbd004001004b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d033810301110082028183851054657874204174747269627574652032891091aa120a214365870921436587a901fbd004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 2"}},
|
||||
{command: "d02d810301110082028183851054657874204174747269627574652033891091aa120a214365870921436587a901fb",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 3"}},
|
||||
{command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001008b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d021810301110082028183891091aa120a214365870921436587a901fbd004001008b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001010b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d021810301110082028183891091aa120a214365870921436587a901fbd004001010b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001020b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d021810301110082028183891091aa120a214365870921436587a901fbd004001020b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001040b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d021810301110082028183891091aa120a214365870921436587a901fbd004001040b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d033810301110082028183851054657874204174747269627574652031891091aa120a214365870921436587a901fbd004001080b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d021810301110082028183891091aa120a214365870921436587a901fbd004001080b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d0228103011100820281838505804f60597d891091aa120a214365870921436587a901fb",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "你好"}},
|
||||
{command: "d02081030111008202818385038030eb891091aa120a214365870921436587a901fb",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "ル"}},
|
||||
];
|
||||
|
||||
function testSendSS(aCommand, aExpect) {
|
||||
|
|
|
@ -13,13 +13,9 @@ const TEST_DATA = [
|
|||
{command: "d058810301120082028183850a382d62697420555353448a41444142434445464748494a4b4c4d4e4f505152535455565758595a2d6162636465666768696a6b6c6d6e6f707172737475767778797a2d31323334353637383930",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "8-bit USSD"}},
|
||||
{command: "d04c8103011200820281838a41444142434445464748494a4b4c4d4e4f505152535455565758595a2d6162636465666768696a6b6c6d6e6f707172737475767778797a2d31323334353637383930",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d02f81030112008202818385095543533220555353448a1948041704140420041004120421042204120423041904220415",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "UCS2 USSD"}},
|
||||
{command: "d0248103011200820281838a1948041704140420041004120421042204120423041904220415",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d081fd8103011200820281838581b66f6e636520612052454c4541534520434f4d504c455445206d65737361676520636f6e7461696e696e672074686520555353442052657475726e20526573756c74206d657373616765206e6f7420636f6e7461696e696e6720616e206572726f7220686173206265656e2072656365697665642066726f6d20746865206e6574776f726b2c20746865204d45207368616c6c20696e666f726d207468652053494d20746861742074686520636f6d6d616e64206861738a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "once a RELEASE COMPLETE message containing the USSD Return Result message not containing an error has been received from the network, the ME shall inform the SIM that the command has"}},
|
||||
|
@ -31,28 +27,10 @@ const TEST_DATA = [
|
|||
text: "Basic Icon",
|
||||
iconSelfExplanatory: true,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d0488103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e5609e020001",
|
||||
expect: {commandQualifier: 0x00,
|
||||
iconSelfExplanatory: true,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d054810301120082028183850a436f6c6f722049636f6e8a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e5609e020003",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Color Icon",
|
||||
iconSelfExplanatory: true,
|
||||
icons: [COLOR_ICON]}},
|
||||
{command: "d0488103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e5609e020003",
|
||||
expect: {commandQualifier: 0x00,
|
||||
iconSelfExplanatory: true,
|
||||
icons: [COLOR_ICON]}},
|
||||
{command: "d054810301120082028183850a42617369632049636f6e8a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e5609e020101",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Basic Icon",
|
||||
iconSelfExplanatory: false,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d0488103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e5609e020101",
|
||||
expect: {commandQualifier: 0x00,
|
||||
iconSelfExplanatory: false,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d05f8103011200820281838519800417041404200410041204210422041204230419042204158a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "ЗДРАВСТВУЙТЕ"}},
|
||||
|
@ -61,61 +39,9 @@ const TEST_DATA = [
|
|||
text: "Text Attribute 1"}},
|
||||
{command: "d04a8103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001000b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d0568103011200820281838510546578742041747472696275746520328a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 2"}},
|
||||
{command: "d05c8103011200820281838510546578742041747472696275746520318a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001001b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d04a8103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001001b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d05c8103011200820281838510546578742041747472696275746520318a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001002b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d04a8103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001002b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d05c8103011200820281838510546578742041747472696275746520318a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001004b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d04a8103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001004b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d05c8103011200820281838510546578742041747472696275746520328a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 2"}},
|
||||
{command: "d0568103011200820281838510546578742041747472696275746520338a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 3"}},
|
||||
{command: "d05c8103011200820281838510546578742041747472696275746520318a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001008b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d04a8103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001008b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d05c8103011200820281838510546578742041747472696275746520318a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001010b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d04a8103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001010b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d05c8103011200820281838510546578742041747472696275746520318a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001020b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d04a8103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001020b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d05c8103011200820281838510546578742041747472696275746520318a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001040b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d04a8103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001040b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d05c8103011200820281838510546578742041747472696275746520318a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001080b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Text Attribute 1"}},
|
||||
{command: "d04a8103011200820281838a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560d004001080b4",
|
||||
expect: {commandQualifier: 0x00}},
|
||||
{command: "d04b8103011200820281838505804f60597d8a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "你好"}},
|
||||
{command: "d04981030112008202818385038030eb8a39f041e19058341e9149e592d9743ea151e9945ab55eb1596d2b2c1e93cbe6333aad5eb3dbee373c2e9fd3ebf63b3eaf6fc564335acd76c3e560",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "ル"}},
|
||||
];
|
||||
|
||||
function testSendUSSD(aCommand, aExpect) {
|
||||
|
|
|
@ -28,10 +28,6 @@ const TEST_DATA = [
|
|||
expect: {commandQualifier: 0x01,
|
||||
confirmMessage: { text: "Three types are defined: - set up a call, but only if not currently busy on another call; - set up a call, putting all other calls (if any) on hold; - set up a call, disconnecting all other calls (if any) first. For each of these types, " },
|
||||
address: "+01"}},
|
||||
{command: "d02b810301100082028183850c43616c6c65642070617274798609911032042143651c2c880780509595959595",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "Called party" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02281030110018202818385084475726174696f6e8609911032042143651c2c8402010a",
|
||||
expect: {commandQualifier: 0x01,
|
||||
confirmMessage: { text: "Duration" },
|
||||
|
@ -49,18 +45,6 @@ const TEST_DATA = [
|
|||
iconSelfExplanatory: false,
|
||||
icons: [BASIC_ICON] },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d03081030110008202818385165365742075702063616c6c2049636f6e20332e322e318609911032042143651c2c9e020001",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "Set up call Icon 3.2.1",
|
||||
iconSelfExplanatory: true,
|
||||
icons: [BASIC_ICON] },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d03081030110008202818385165365742075702063616c6c2049636f6e20332e332e318609911032042143651c2c9e020103",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "Set up call Icon 3.3.1",
|
||||
iconSelfExplanatory: false,
|
||||
icons: [COLOR_ICON] },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d04c81030110008202818385165365742075702063616c6c2049636f6e20332e342e318609911032042143651c2c9e02000185165365742075702063616c6c2049636f6e20332e342e329e020001",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "Set up call Icon 3.4.1",
|
||||
|
@ -73,135 +57,6 @@ const TEST_DATA = [
|
|||
confirmMessage: { text: "CONFIRMATION 1" },
|
||||
callMessage: { text: "CALL 1" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02c810301100082028183850e434f4e4649524d4154494f4e20328609911032042143651c2c850643414c4c2032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 2" },
|
||||
callMessage: { text: "CALL 2" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20318609911032042143651c2c850643414c4c2031d004000e01b4d004000601b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 1" },
|
||||
callMessage: { text: "CALL 1" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02c810301100082028183850e434f4e4649524d4154494f4e20328609911032042143651c2c850643414c4c2032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 2" },
|
||||
callMessage: { text: "CALL 2" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20318609911032042143651c2c850643414c4c2031d004000e02b4d004000602b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 1" },
|
||||
callMessage: { text: "CALL 1" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02c810301100082028183850e434f4e4649524d4154494f4e20328609911032042143651c2c850643414c4c2032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 2" },
|
||||
callMessage: { text: "CALL 2" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20318609911032042143651c2c850643414c4c2031d004000e04b4d004000604b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 1" },
|
||||
callMessage: { text: "CALL 1" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20328609911032042143651c2c850643414c4c2032d004000e00b4d004000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 2" },
|
||||
callMessage: { text: "CALL 2" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02c810301100082028183850e434f4e4649524d4154494f4e20338609911032042143651c2c850643414c4c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 3" },
|
||||
callMessage: { text: "CALL 3" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20318609911032042143651c2c850643414c4c2031d004000e08b4d004000608b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 1" },
|
||||
callMessage: { text: "CALL 1" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20328609911032042143651c2c850643414c4c2032d004000e00b4d004000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 2" },
|
||||
callMessage: { text: "CALL 2" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02c810301100082028183850e434f4e4649524d4154494f4e20338609911032042143651c2c850643414c4c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 3" },
|
||||
callMessage: { text: "CALL 3" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20318609911032042143651c2c850643414c4c2031d004000e10b4d004000610b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 1" },
|
||||
callMessage: { text: "CALL 1" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20328609911032042143651c2c850643414c4c2032d004000e00b4d004000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 2" },
|
||||
callMessage: { text: "CALL 2" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02c810301100082028183850e434f4e4649524d4154494f4e20338609911032042143651c2c850643414c4c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 3" },
|
||||
callMessage: { text: "CALL 3" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20318609911032042143651c2c850643414c4c2031d004000e20b4d004000620b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 1" },
|
||||
callMessage: { text: "CALL 1" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20328609911032042143651c2c850643414c4c2032d004000e00b4d004000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 2" },
|
||||
callMessage: { text: "CALL 2" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02c810301100082028183850e434f4e4649524d4154494f4e20338609911032042143651c2c850643414c4c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 3" },
|
||||
callMessage: { text: "CALL 3" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20318609911032042143651c2c850643414c4c2031d004000e40b4d004000640b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 1" },
|
||||
callMessage: { text: "CALL 1" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20328609911032042143651c2c850643414c4c2032d004000e00b4d004000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 2" },
|
||||
callMessage: { text: "CALL 2" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02c810301100082028183850e434f4e4649524d4154494f4e20338609911032042143651c2c850643414c4c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 3" },
|
||||
callMessage: { text: "CALL 3" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20318609911032042143651c2c850643414c4c2031d004000e80b4d004000680b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 1" },
|
||||
callMessage: { text: "CALL 1" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20328609911032042143651c2c850643414c4c2032d004000e00b4d004000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 2" },
|
||||
callMessage: { text: "CALL 2" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02c810301100082028183850e434f4e4649524d4154494f4e20338609911032042143651c2c850643414c4c2033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 3" },
|
||||
callMessage: { text: "CALL 3" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d038810301100082028183850e434f4e4649524d4154494f4e20318609911032042143651c2c850643414c4c2031d004000e00b4d0040006004b",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 1" },
|
||||
callMessage: { text: "CALL 1" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02c810301100082028183850e434f4e4649524d4154494f4e20328609911032042143651c2c850643414c4c2032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "CONFIRMATION 2" },
|
||||
callMessage: { text: "CALL 2" },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d02d810301100082028183851980041704140420041004120421042204120423041904220415860791103204214365",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "ЗДРАВСТВУЙТЕ" },
|
||||
address: "+012340123456"}},
|
||||
{command: "d04c810301100082028183851b800417041404200410041204210422041204230419042204150031860791103204214365851b800417041404200410041204210422041204230419042204150032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "ЗДРАВСТВУЙТЕ1" },
|
||||
|
@ -216,35 +71,6 @@ const TEST_DATA = [
|
|||
confirmMessage: { text: "确定" },
|
||||
callMessage: { text: "打电话" },
|
||||
address: "+012340123456"}},
|
||||
{command: "d01781030110008202818385038030eb860791103204214365",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "ル" },
|
||||
address: "+012340123456"}},
|
||||
{command: "d02081030110008202818385058030eb003186079110320421436585058030eb0032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "ル1" },
|
||||
callMessage: { text: "ル2" },
|
||||
address: "+012340123456"}},
|
||||
{command: "d029810301100482028182050a446973636f6e6e6563748609811032042143651c2c05074d657373616765",
|
||||
expect: {commandQualifier: 0x04,
|
||||
confirmMessage: { text: "Disconnect" },
|
||||
address: "012340123456,1,2",
|
||||
callMessage: { text: "Message"}}},
|
||||
{command: "d02281030110008202818385084E6F7420627573798609911032042143651C2C8402010A",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "Not busy" },
|
||||
address: "+012340123456,1,2",
|
||||
duration: {timeUnit: MozIccManager.STK_TIME_UNIT_SECOND,
|
||||
timeInterval: 0x0A}}},
|
||||
{command: "d04c81030110008202818385165365742075702063616c6c2049636f6e20332e352e318609911032042143651c2c9e02000185165365742075702063616c6c2049636f6e20332e352e329e020103",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { text: "Set up call Icon 3.5.1",
|
||||
iconSelfExplanatory: true,
|
||||
icons: [BASIC_ICON] },
|
||||
callMessage: { text: "Set up call Icon 3.5.2",
|
||||
iconSelfExplanatory: false,
|
||||
icons: [COLOR_ICON] },
|
||||
address: "+012340123456,1,2"}},
|
||||
{command: "d01c8103011000820281838609911032042143651c2c9e0200019e020103",
|
||||
expect: {commandQualifier: 0x00,
|
||||
confirmMessage: { iconSelfExplanatory: true,
|
||||
|
|
|
@ -8,9 +8,6 @@ const TEST_DATA = [
|
|||
{command: "d01a8103012800820281828d0f0449646c65204d6f64652054657874",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text"}},
|
||||
{command: "d0188103012800820281828d0d04546f6f6c6b69742054657374",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Toolkit Test"}},
|
||||
{command: "d081fd8103012800820281828d81f100547419344d3641737498cd06cdeb70383b0f0a83e8653c1d34a7cbd3ee330b7447a7c768d01c1d66b341e232889c9ec3d9e17c990c12e741747419d42c82c27350d80d4a93d96550fb4d2e83e8653c1d943683e8e832a85904a5e7a0b0985d06d1df20f21b94a6bba8e832082e2fcfcb6e7a989e7ebb41737a9e5d06a5e72076d94c0785e7a0b01b946ec3d9e576d94d0fd3d36f37885c1ea7e7e9b71b447f83e8e832a85904b5c3eeba393ca6d7e565b90b444597416932bb0c6abfc96510bd8ca783e6e8309b0d129741e4f41cce0ee7cb6450da0d0a83da61b7bb2c07d1d1613aa8ec9ed7e5e539888e0ed341ee32",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "The SIM shall supply a text string, which shall be displayed by the ME as an idle mode text if the ME is able to do it.The presentation style is left as an implementation decision to the ME manufacturer. The idle mode text shall be displayed in a manner that ensures that ne"}},
|
||||
|
@ -19,11 +16,6 @@ const TEST_DATA = [
|
|||
text: "Idle text",
|
||||
iconSelfExplanatory: true,
|
||||
icons: [BASIC_ICON]}},
|
||||
{command: "d0198103012800820281828d0a0449646c6520746578749e020105",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle text",
|
||||
iconSelfExplanatory: false,
|
||||
icons: [COLOR_TRANSPARENCY_ICON]}},
|
||||
{command: "d0198103012800820281828d0a0449646c6520746578749e020007",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle text",
|
||||
|
@ -35,87 +27,9 @@ const TEST_DATA = [
|
|||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742031d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 1"}},
|
||||
{command: "d01c8103012800820281828d110449646c65204d6f646520546578742032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 2"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742031d004001001b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 1"}},
|
||||
{command: "d01c8103012800820281828d110449646c65204d6f646520546578742032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 2"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742031d004001002b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 1"}},
|
||||
{command: "d01c8103012800820281828d110449646c65204d6f646520546578742032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 2"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742031d004001004b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 1"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742032d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 2"}},
|
||||
{command: "d01c8103012800820281828d110449646c65204d6f646520546578742033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 3"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742031d004001008b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 1"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742032d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 2"}},
|
||||
{command: "d01c8103012800820281828d110449646c65204d6f646520546578742033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 3"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742031d004001010b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 1"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742032d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 2"}},
|
||||
{command: "d01c8103012800820281828d110449646c65204d6f646520546578742033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 3"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742031d004001020b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 1"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742032d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 2"}},
|
||||
{command: "d01c8103012800820281828d110449646c65204d6f646520546578742033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 3"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742031d004001040b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 1"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742032d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 2"}},
|
||||
{command: "d01c8103012800820281828d110449646c65204d6f646520546578742033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 3"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742031d004001080b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 1"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742032d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 2"}},
|
||||
{command: "d01c8103012800820281828d110449646c65204d6f646520546578742033",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 3"}},
|
||||
{command: "d0228103012800820281828d110449646c65204d6f646520546578742031d004001000b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 1"}},
|
||||
{command: "d01c8103012800820281828d110449646c65204d6f646520546578742032",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "Idle Mode Text 2"}},
|
||||
{command: "d0108103012800820281828d05084f60597d",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "你好"}},
|
||||
{command: "d0148103012800820281828d09080038003030eb0030",
|
||||
expect: {commandQualifier: 0x00,
|
||||
text: "80ル0"}},
|
||||
];
|
||||
|
||||
function testSetupIdleModeText(aCommand, aExpect) {
|
||||
|
|
|
@ -5,14 +5,6 @@ MARIONETTE_TIMEOUT = 60000;
|
|||
MARIONETTE_HEAD_JS = "head.js";
|
||||
|
||||
const TEST_DATA = [
|
||||
{command: "d03b810301250082028182850c546f6f6c6b6974204d656e758f07014974656d20318f07024974656d20328f07034974656d20338f07044974656d2034",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}, {identifier: 4, text: "Item 4"}]}},
|
||||
{command: "d023810301250082028182850c546f6f6c6b6974204d656e758f04114f6e658f041254776f",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu",
|
||||
items: [{identifier: 17, text: "One"}, {identifier: 18, text: "Two"}]}},
|
||||
{command: "d081fc810301250082028182850a4c617267654d656e75318f05505a65726f8f044f4f6e658f044e54776f8f064d54687265658f054c466f75728f054b466976658f044a5369788f0649536576656e8f064845696768748f05474e696e658f0646416c7068618f0645427261766f8f0844436861726c69658f064344656c74618f05424563686f8f0941466f782d74726f748f0640426c61636b8f063f42726f776e8f043e5265648f073d4f72616e67658f073c59656c6c6f778f063b477265656e8f053a426c75658f073956696f6c65748f0538477265798f063757686974658f06366d696c6c698f06356d6963726f8f05346e616e6f8f05337069636f",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "LargeMenu1",
|
||||
|
@ -34,14 +26,6 @@ const TEST_DATA = [
|
|||
title: "Toolkit Menu",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}, {identifier: 4, text: "Item 4"}],
|
||||
nextActionList: [MozIccManager.STK_CMD_SEND_SMS, MozIccManager.STK_CMD_SET_UP_CALL, MozIccManager.STK_CMD_LAUNCH_BROWSER, MozIccManager.STK_CMD_PROVIDE_LOCAL_INFO]}},
|
||||
{command: "d03c810301250082028182850c546f6f6c6b6974204d656e758f07014974656d20318f07024974656d20328f07034974656d20339e0201019f0401030303",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu",
|
||||
iconSelfExplanatory: false,
|
||||
icons: [BASIC_ICON],
|
||||
items: [{identifier: 1, text: "Item 1", iconSelfExplanatory: false, icons: [COLOR_ICON]},
|
||||
{identifier: 2, text: "Item 2", iconSelfExplanatory: false, icons: [COLOR_ICON]},
|
||||
{identifier: 3, text: "Item 3", iconSelfExplanatory: false, icons: [COLOR_ICON]}]}},
|
||||
{command: "d03c810301250082028182850c546f6f6c6b6974204d656e758f07014974656d20318f07024974656d20328f07034974656d20339e0200019f0400050505",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu",
|
||||
|
@ -50,103 +34,15 @@ const TEST_DATA = [
|
|||
items: [{identifier: 1, text: "Item 1", iconSelfExplanatory: true, icons: [COLOR_TRANSPARENCY_ICON]},
|
||||
{identifier: 2, text: "Item 2", iconSelfExplanatory: true, icons: [COLOR_TRANSPARENCY_ICON]},
|
||||
{identifier: 3, text: "Item 3", iconSelfExplanatory: true, icons: [COLOR_TRANSPARENCY_ICON]}]}},
|
||||
{command: "d029810301250182028182850c546f6f6c6b6974204d656e758f07014974656d20318f07024974656d2032",
|
||||
expect: {commandQualifier: 0x01,
|
||||
title: "Toolkit Menu",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}]}},
|
||||
{command: "d048810301250082028182850e546f6f6c6b6974204d656e7520318f07014974656d20318f07024974656d20328f07034974656d2033d004000e00b4d10c000600b4000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d034810301250082028182850e546f6f6c6b6974204d656e7520328f07044974656d20348f07054974656d20358f07064974656d2036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 2",
|
||||
items: [{identifier: 4, text: "Item 4"}, {identifier: 5, text: "Item 5"}, {identifier: 6, text: "Item 6"}]}},
|
||||
{command: "d048810301250082028182850e546f6f6c6b6974204d656e7520318f07014974656d20318f07024974656d20328f07034974656d2033d004000e01b4d10c000601b4000601b4000601b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d034810301250082028182850e546f6f6c6b6974204d656e7520328f07044974656d20348f07054974656d20358f07064974656d2036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 2",
|
||||
items: [{identifier: 4, text: "Item 4"}, {identifier: 5, text: "Item 5"}, {identifier: 6, text: "Item 6"}]}},
|
||||
{command: "d048810301250082028182850e546f6f6c6b6974204d656e7520318f07014974656d20318f07024974656d20328f07034974656d2033d004000e02b4d10c000602b4000602b4000602b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d034810301250082028182850e546f6f6c6b6974204d656e7520328f07044974656d20348f07054974656d20358f07064974656d2036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 2",
|
||||
items: [{identifier: 4, text: "Item 4"}, {identifier: 5, text: "Item 5"}, {identifier: 6, text: "Item 6"}]}},
|
||||
{command: "d048810301250082028182850e546f6f6c6b6974204d656e7520318f07014974656d20318f07024974656d20328f07034974656d2033d004000e04b4d10c000604b4000604b4000604b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d048810301250082028182850e546f6f6c6b6974204d656e7520328f07044974656d20348f07054974656d20358f07064974656d2036d004000e00b4d10c000600b4000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 2",
|
||||
items: [{identifier: 4, text: "Item 4"}, {identifier: 5, text: "Item 5"}, {identifier: 6, text: "Item 6"}]}},
|
||||
{command: "d034810301250082028182850e546f6f6c6b6974204d656e7520338f07074974656d20378f07084974656d20388f07094974656d2039",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 3",
|
||||
items: [{identifier: 7, text: "Item 7"}, {identifier: 8, text: "Item 8"}, {identifier: 9, text: "Item 9"}]}},
|
||||
{command: "d048810301250082028182850e546f6f6c6b6974204d656e7520318f07014974656d20318f07024974656d20328f07034974656d2033d004000e08b4d10c000608b4000608b4000608b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d048810301250082028182850e546f6f6c6b6974204d656e7520318f07014974656d20318f07024974656d20328f07034974656d2033d004000e10b4d10c000610b4000610b4000610b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d048810301250082028182850e546f6f6c6b6974204d656e7520318f07014974656d20318f07024974656d20328f07034974656d2033d004000e20b4d10c000620b4000620b4000620b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d048810301250082028182850e546f6f6c6b6974204d656e7520318f07014974656d20318f07024974656d20328f07034974656d2033d004000e40b4d10c000640b4000640b4000640b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d048810301250082028182850e546f6f6c6b6974204d656e7520318f07014974656d20318f07024974656d20328f07034974656d2033d004000e80b4d10c000680b4000680b4000680b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu 1",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d046810301250082028182850c546f6f6c6b6974204d656e758f07014974656d20318f07024974656d20328f07034974656d2033d004000c00b4d10c000600b4000600b4000600b4",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}]}},
|
||||
{command: "d0819c8103012500820281828519800417041404200410041204210422041204230419042204158f1c018004170414042004100412042104220412042304190422041500318f1c028004170414042004100412042104220412042304190422041500328f1c038004170414042004100412042104220412042304190422041500338f1c04800417041404200410041204210422041204230419042204150034",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "ЗДРАВСТВУЙТЕ",
|
||||
items: [{identifier: 1, text: "ЗДРАВСТВУЙТЕ1"}, {identifier: 2, text: "ЗДРАВСТВУЙТЕ2"}, {identifier: 3, text: "ЗДРАВСТВУЙТЕ3"}, {identifier: 4, text: "ЗДРАВСТВУЙТЕ4"}]}},
|
||||
{command: "d0608103012500820281828519800417041404200410041204210422041204230419042204158f1c118004170414042004100412042104220412042304190422041500358f1c12800417041404200410041204210422041204230419042204150036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "ЗДРАВСТВУЙТЕ",
|
||||
items: [{identifier: 17, text: "ЗДРАВСТВУЙТЕ5"}, {identifier: 18, text: "ЗДРАВСТВУЙТЕ6"}]}},
|
||||
{command: "d03c8103012500820281828509805de551777bb153558f080180987976ee4e008f080280987976ee4e8c8f080380987976ee4e098f080480987976ee56db",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "工具箱单",
|
||||
items: [{identifier: 1, text: "项目一"}, {identifier: 2, text: "项目二"}, {identifier: 3, text: "项目三"}, {identifier: 4, text: "项目四"}]}},
|
||||
{command: "d0208103012500820281828509805de551777bb153558f0411804e008f0412804e8c",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "工具箱单",
|
||||
items: [{identifier: 17, text: "一"}, {identifier: 18, text: "二"}]}},
|
||||
{command: "d0448103012500820281828509800038003030eb00308f0a01800038003030eb00318f0a02800038003030eb00328f0a03800038003030eb00338f0a04800038003030eb0034",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "80ル0",
|
||||
items: [{identifier: 1, text: "80ル1"}, {identifier: 2, text: "80ル2"}, {identifier: 3, text: "80ル3"}, {identifier: 4, text: "80ル4"}]}},
|
||||
{command: "d02c8103012500820281828509800038003030eb00308f0a11800038003030eb00358f0a12800038003030eb0036",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "80ル0",
|
||||
items: [{identifier: 17, text: "80ル5"}, {identifier: 18, text: "80ル6"}]}},
|
||||
{command: "d041810301250082028182850c546f6f6c6b6974204d656e758f07014974656d20318f07024974656d20328f07034974656d20338f07044974656d2034180481000000",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}, {identifier: 4, text: "Item 4"}],
|
||||
nextActionList: [MozIccManager.STK_NEXT_ACTION_END_PROACTIVE_SESSION, MozIccManager.STK_NEXT_ACTION_NULL, MozIccManager.STK_NEXT_ACTION_NULL, MozIccManager.STK_NEXT_ACTION_NULL]}},
|
||||
{command:"D03B810301250082028182850C546F6F6C6B6974204D656E758F07014974656D20318F07024974656D20328F07034974656D20338F07044974656D2034",
|
||||
expect: {commandQualifier: 0x00,
|
||||
title: "Toolkit Menu",
|
||||
items: [{identifier: 1, text: "Item 1"}, {identifier: 2, text: "Item 2"}, {identifier: 3, text: "Item 3"}, {identifier: 4, text: "Item 4"}]}},
|
||||
// Test remove setup menu.
|
||||
{command: "D00D81030125008202818285008F00",
|
||||
expect: {commandQualifier: 0x00,
|
||||
|
|
Загрузка…
Ссылка в новой задаче