Bug 1247056 - Added test for cannot-initialize-pulseaudio - r=Gijs

MozReview-Commit-ID: 1dsUYkPMkY5

--HG--
extra : rebase_source : d316d851d9e3fe554bb6423b5ca3f3b051e71e4a
This commit is contained in:
Gerald Squelart 2016-09-26 02:14:35 -07:00
Родитель 4a25a0e109
Коммит bdaa245af6
1 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -37,7 +37,8 @@ function* test_decoder_doctor_notification(type, notificationMessage, options) {
"notification button should have accesskey");
let baseURL = Services.urlFormatter.formatURLPref("app.support.baseURL");
let url = baseURL + "fix-video-audio-problems-firefox-windows";
let url = baseURL + ((options && options.sumo) ||
"fix-video-audio-problems-firefox-windows");
let awaitNewTab = BrowserTestUtils.waitForNewTab(gBrowser, url);
button.click();
let sumoTab = yield awaitNewTab;
@ -95,3 +96,15 @@ add_task(function* test_platform_decoder_not_found() {
message,
{noLearnMoreButton: isLinux});
});
add_task(function* test_cannot_initialize_pulseaudio() {
// This is only sent on Linux.
if (AppConstants.platform != "linux") {
return;
}
let message = gNavigatorBundle.getString("decoder.noPulseAudio.message");
yield test_decoder_doctor_notification("cannot-initialize-pulseaudio",
message,
{sumo: "fix-common-audio-and-video-issues"});
});