mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-29 01:00:41 +00:00
Bug 814637 - Part 7: Xpcshell test changes. r=hsinyi,allstars.chh
This commit is contained in:
parent
5a7cba4ad2
commit
8aad6ad848
@ -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: [
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user