Bug 814637 - Part 7: Xpcshell test changes. r=hsinyi,allstars.chh

This commit is contained in:
Edgar Chen 2013-11-11 12:18:51 +08:00
parent 5a7cba4ad2
commit 8aad6ad848
2 changed files with 10 additions and 5 deletions

View File

@ -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: [

View File

@ -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);