2012-07-20 17:19:38 -07:00
|
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
|
|
|
|
MARIONETTE_TIMEOUT = 10000;
|
|
|
|
|
2012-08-23 16:31:02 -07:00
|
|
|
SpecialPowers.addPermission("voicemail", true, document);
|
2012-07-20 17:19:38 -07:00
|
|
|
|
|
|
|
let voicemail = window.navigator.mozVoicemail;
|
|
|
|
ok(voicemail instanceof MozVoicemail);
|
|
|
|
|
2013-10-29 02:40:44 -07:00
|
|
|
let serviceId = 0;
|
|
|
|
|
2012-07-20 17:19:38 -07:00
|
|
|
// These are the emulator's hard coded voicemail number and alphaId
|
2013-10-29 02:40:44 -07:00
|
|
|
is(voicemail.getNumber(serviceId), "+15552175049");
|
|
|
|
is(voicemail.getDisplayName(serviceId), "Voicemail");
|
|
|
|
|
|
|
|
is(voicemail.getNumber(), "+15552175049");
|
|
|
|
is(voicemail.getDisplayName(), "Voicemail");
|
2012-07-20 17:19:38 -07:00
|
|
|
|
2012-08-23 16:31:02 -07:00
|
|
|
SpecialPowers.removePermission("voicemail", document);
|
2012-07-20 17:19:38 -07:00
|
|
|
finish();
|