mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 814581 - Part 7/8: fix test cases. r=yoshi
This commit is contained in:
parent
735be04011
commit
e4a92675a9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user