mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 773068 - Part 4: Marionette unit tests for Voicemail phone number API. r=vicamo
This commit is contained in:
parent
fc0032e7fb
commit
0b4c6a5665
@ -17,3 +17,4 @@ qemu = true
|
||||
#expectedfailure = true
|
||||
[test_outgoing_reject.js]
|
||||
[test_voicemail_statuschanged.py]
|
||||
[test_voicemail_number.js]
|
||||
|
18
dom/telephony/test/marionette/test_voicemail_number.js
Normal file
18
dom/telephony/test/marionette/test_voicemail_number.js
Normal 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();
|
Loading…
Reference in New Issue
Block a user