зеркало из https://github.com/mozilla/gecko-dev.git
Bug 591847 - Don't test audio write API when the audio hardware is disabled. a=test-fix
This commit is contained in:
Родитель
316f3633c3
Коммит
7225c147d6
|
@ -21,7 +21,13 @@ var rate = 44100;
|
|||
|
||||
function runTests() {
|
||||
var a1 = new Audio();
|
||||
a1.mozSetup(channels, rate);
|
||||
try {
|
||||
a1.mozSetup(channels, rate);
|
||||
} catch (ex) {
|
||||
todo(false, "Audio hardware is disabled, can't test audio write API");
|
||||
SimpleTest.finish();
|
||||
return;
|
||||
}
|
||||
|
||||
is(a1.mozChannels, channels, "mozChannels should be " + channels + ".");
|
||||
is(a1.mozSampleRate, rate, "mozSampleRate should be " + rate + ".");
|
||||
|
|
Загрузка…
Ссылка в новой задаче