mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 20:22:00 +00:00
Bug 900900 - Fix test_ril_worker_clir.js. r=hsinyi
--- dom/system/gonk/tests/test_ril_worker_clir.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
This commit is contained in:
parent
97c214b56c
commit
4aea830dd1
@ -41,6 +41,7 @@ add_test(function test_setCLIR_success() {
|
||||
|
||||
worker.RIL.setCLIR = function fakeSetCLIR(options) {
|
||||
worker.RIL[REQUEST_SET_CLIR](0, {
|
||||
rilMessageType: "setCLIR",
|
||||
rilRequestError: ERROR_SUCCESS
|
||||
});
|
||||
};
|
||||
@ -63,6 +64,7 @@ add_test(function test_setCLIR_generic_failure() {
|
||||
|
||||
worker.RIL.setCLIR = function fakeSetCLIR(options) {
|
||||
worker.RIL[REQUEST_SET_CLIR](0, {
|
||||
rilMessageType: "setCLIR",
|
||||
rilRequestError: ERROR_GENERIC_FAILURE
|
||||
});
|
||||
};
|
||||
@ -90,11 +92,12 @@ add_test(function test_getCLIR_n0_m1() {
|
||||
worker.RIL.getCLIR = function fakeGetCLIR(options) {
|
||||
worker.Buf.int32Array = [
|
||||
1, // Presentation indicator is used according to the subscription
|
||||
// of the CLIR service.
|
||||
// of the CLIR service.
|
||||
0, // CLIR provisioned in permanent mode.
|
||||
2 // Length.
|
||||
];
|
||||
worker.RIL[REQUEST_GET_CLIR](1, {
|
||||
rilMessageType: "setCLIR",
|
||||
rilRequestError: ERROR_SUCCESS
|
||||
});
|
||||
};
|
||||
@ -121,11 +124,12 @@ add_test(function test_getCLIR_error_generic_failure_invalid_length() {
|
||||
worker.RIL.getCLIR = function fakeGetCLIR(options) {
|
||||
worker.Buf.int32Array = [
|
||||
1, // Presentation indicator is used according to the subscription
|
||||
// of the CLIR service.
|
||||
// of the CLIR service.
|
||||
0, // CLIR provisioned in permanent mode.
|
||||
0 // Length (invalid one).
|
||||
];
|
||||
worker.RIL[REQUEST_GET_CLIR](1, {
|
||||
rilMessageType: "setCLIR",
|
||||
rilRequestError: ERROR_SUCCESS
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user