diff --git a/dom/system/gonk/tests/test_ril_worker_icc.js b/dom/system/gonk/tests/test_ril_worker_icc.js index 4aed5a3cb748..7201b84e2f3d 100644 --- a/dom/system/gonk/tests/test_ril_worker_icc.js +++ b/dom/system/gonk/tests/test_ril_worker_icc.js @@ -1719,8 +1719,11 @@ add_test(function test_personalization_state() { let worker = newUint8Worker(); let ril = worker.RIL; + worker.ICCRecordHelper.readICCID = function fakeReadICCID() {}; + function testPersonalization(cardPersoState, geckoCardState) { let iccStatus = { + cardState: CARD_STATE_PRESENT, gsmUmtsSubscriptionAppIndex: 0, apps: [ { @@ -1758,8 +1761,11 @@ add_test(function test_card_app_state() { let worker = newUint8Worker(); let ril = worker.RIL; + worker.ICCRecordHelper.readICCID = function fakeReadICCID() {}; + function testCardAppState(cardAppState, geckoCardState) { let iccStatus = { + cardState: CARD_STATE_PRESENT, gsmUmtsSubscriptionAppIndex: 0, apps: [ { @@ -1794,8 +1800,11 @@ add_test(function test_icc_permanent_blocked() { let worker = newUint8Worker(); let ril = worker.RIL; + worker.ICCRecordHelper.readICCID = function fakeReadICCID() {}; + function testPermanentBlocked(pin1_replaced, universalPINState, pin1) { let iccStatus = { + cardState: CARD_STATE_PRESENT, gsmUmtsSubscriptionAppIndex: 0, universalPINState: universalPINState, apps: [ diff --git a/dom/system/gonk/tests/test_ril_worker_ruim.js b/dom/system/gonk/tests/test_ril_worker_ruim.js index c80ed4014eac..47fb987a973e 100644 --- a/dom/system/gonk/tests/test_ril_worker_ruim.js +++ b/dom/system/gonk/tests/test_ril_worker_ruim.js @@ -78,10 +78,6 @@ add_test(function test_fetch_ruim_recodes() { function testFetchRuimRecordes(expectCalled) { let ifCalled = []; - iccHelper.readICCID = function () { - ifCalled.push("readICCID"); - }; - ruimHelper.getIMSI_M = function () { ifCalled.push("getIMSI_M"); }; @@ -108,7 +104,7 @@ add_test(function test_fetch_ruim_recodes() { } } - let expectCalled = ["readICCID", "getIMSI_M", "readCST", "readCDMAHome", + let expectCalled = ["getIMSI_M", "readCST", "readCDMAHome", "getCdmaSubscription"]; testFetchRuimRecordes(expectCalled);