зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1247056 - Added test for cannot-initialize-pulseaudio - r=Gijs
MozReview-Commit-ID: 1dsUYkPMkY5 --HG-- extra : rebase_source : d316d851d9e3fe554bb6423b5ca3f3b051e71e4a
This commit is contained in:
Родитель
4a25a0e109
Коммит
bdaa245af6
|
@ -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"});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче