Bug 814581 - Part 7/8: fix test cases. r=yoshi

This commit is contained in:
Vicamo Yang 2013-07-02 17:36:55 +08:00
parent 41483888fb
commit 15cc9183c7

View File

@ -6,16 +6,21 @@ MARIONETTE_TIMEOUT = 10000;
let Cc = SpecialPowers.Cc;
let Ci = SpecialPowers.Ci;
// Get RadioIntefaceLayer interface.
let RIL = Cc["@mozilla.org/ril;1"].getService(Ci.nsIRadioInterfaceLayer);
ok(RIL);
// Get RadioInterfaceLayer interface.
let radioInterfaceLayer =
Cc["@mozilla.org/ril;1"].getService(Ci.nsIRadioInterfaceLayer);
ok(radioInterfaceLayer);
// Get RadioInterface.
let radioInterface = radioInterfaceLayer.getRadioInterface(0);
ok(radioInterface);
// Check voicemail information accessible.
ok(RIL.voicemailInfo);
ok(RIL.voicemailInfo.number);
ok(RIL.voicemailInfo.displayName);
ok(radioInterface.voicemailInfo);
ok(radioInterface.voicemailInfo.number);
ok(radioInterface.voicemailInfo.displayName);
// These are the emulator's hard coded voicemail number and alphaId.
is(RIL.voicemailInfo.number, "+15552175049");
is(RIL.voicemailInfo.displayName, "Voicemail");
is(radioInterface.voicemailInfo.number, "+15552175049");
is(radioInterface.voicemailInfo.displayName, "Voicemail");
finish();