mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 898445 - Part 7: RIL xpcshell test changes. r=hsinyi
This commit is contained in:
parent
70f27a9a95
commit
2ea7c9026b
@ -83,8 +83,8 @@ add_test(function test_setCallForward_unconditional() {
|
||||
};
|
||||
|
||||
context.RIL.setCallForward({
|
||||
action: Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_ACTION_REGISTRATION,
|
||||
reason: Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_UNCONDITIONAL,
|
||||
action: CALL_FORWARD_ACTION_REGISTRATION,
|
||||
reason: CALL_FORWARD_REASON_UNCONDITIONAL,
|
||||
serviceClass: ICC_SERVICE_CLASS_VOICE,
|
||||
number: "666222333",
|
||||
timeSeconds: 10
|
||||
@ -122,7 +122,7 @@ add_test(function test_queryCallForwardStatus_unconditional() {
|
||||
0, // rules.timeSeconds
|
||||
145, // rules.toa
|
||||
49, // rules.serviceClass
|
||||
Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_UNCONDITIONAL, // rules.reason
|
||||
CALL_FORWARD_REASON_UNCONDITIONAL, // rules.reason
|
||||
1, // rules.active
|
||||
1 // rulesLength
|
||||
];
|
||||
@ -132,8 +132,8 @@ add_test(function test_queryCallForwardStatus_unconditional() {
|
||||
};
|
||||
|
||||
context.RIL.queryCallForwardStatus({
|
||||
action: Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_ACTION_QUERY_STATUS,
|
||||
reason: Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_UNCONDITIONAL,
|
||||
action: CALL_FORWARD_ACTION_QUERY_STATUS,
|
||||
reason: CALL_FORWARD_REASON_UNCONDITIONAL,
|
||||
serviceClass: ICC_SERVICE_CLASS_VOICE,
|
||||
number: "666222333",
|
||||
timeSeconds: 10
|
||||
@ -147,8 +147,7 @@ add_test(function test_queryCallForwardStatus_unconditional() {
|
||||
do_print(postedMessage.rules.length);
|
||||
do_check_eq(postedMessage.rules.length, 1);
|
||||
do_check_true(postedMessage.rules[0].active);
|
||||
do_check_eq(postedMessage.rules[0].reason,
|
||||
Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_UNCONDITIONAL);
|
||||
do_check_eq(postedMessage.rules[0].reason, CALL_FORWARD_REASON_UNCONDITIONAL);
|
||||
do_check_eq(postedMessage.rules[0].number, "+34666222333");
|
||||
run_next_test();
|
||||
});
|
||||
|
@ -453,7 +453,7 @@ add_test(function test_sendMMI_call_forwarding_interrogation() {
|
||||
0, // rules.timeSeconds
|
||||
145, // rules.toa
|
||||
49, // rules.serviceClass
|
||||
Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_UNCONDITIONAL, // rules.reason
|
||||
CALL_FORWARD_REASON_UNCONDITIONAL, // rules.reason
|
||||
1, // rules.active
|
||||
1 // rulesLength
|
||||
];
|
||||
@ -472,8 +472,7 @@ add_test(function test_sendMMI_call_forwarding_interrogation() {
|
||||
do_check_true(Array.isArray(postedMessage.rules));
|
||||
do_check_eq(postedMessage.rules.length, 1);
|
||||
do_check_true(postedMessage.rules[0].active);
|
||||
do_check_eq(postedMessage.rules[0].reason,
|
||||
Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_UNCONDITIONAL);
|
||||
do_check_eq(postedMessage.rules[0].reason, CALL_FORWARD_REASON_UNCONDITIONAL);
|
||||
do_check_eq(postedMessage.rules[0].number, "+34666222333");
|
||||
run_next_test();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user