Bug 773068 - Part 4: Marionette unit tests for Voicemail phone number API. r=vicamo

This commit is contained in:
Marshall Culpepper 2012-07-20 20:19:38 -04:00
parent fc0032e7fb
commit 0b4c6a5665
2 changed files with 19 additions and 0 deletions

View File

@ -17,3 +17,4 @@ qemu = true
#expectedfailure = true
[test_outgoing_reject.js]
[test_voicemail_statuschanged.py]
[test_voicemail_number.js]

View File

@ -0,0 +1,18 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
MARIONETTE_TIMEOUT = 10000;
const WHITELIST_PREF = "dom.voicemail.whitelist";
let uriPrePath = window.location.protocol + "//" + window.location.host;
SpecialPowers.setCharPref(WHITELIST_PREF, uriPrePath);
let voicemail = window.navigator.mozVoicemail;
ok(voicemail instanceof MozVoicemail);
// These are the emulator's hard coded voicemail number and alphaId
is(voicemail.number, "+15552175049");
is(voicemail.displayName, "Voicemail");
SpecialPowers.clearUserPref(WHITELIST_PREF);
finish();