зеркало из https://github.com/mozilla/gecko-dev.git
Bug 966066 - Correct tests that depend on this. r=jib
This commit is contained in:
Родитель
d2fec57ae8
Коммит
21d09d72b7
|
@ -34,7 +34,8 @@
|
|||
}, 200);
|
||||
return function cancel() {
|
||||
if (interval) {
|
||||
ok(false, 'timed out waiting for audio check');
|
||||
ok(false, type + ' (' + successMessage + ')' +
|
||||
' failed after waiting full duration');
|
||||
clearInterval(interval);
|
||||
done();
|
||||
}
|
||||
|
@ -56,8 +57,6 @@
|
|||
analyser.getByteTimeDomainData(view);
|
||||
|
||||
var silent = check(constraintApplied, isSilence(view), 'be silence for audio');
|
||||
// TODO: silence cross origin input to webaudio, bug 966066
|
||||
silent = constraintApplied ? !silent : silent;
|
||||
return sampleCount > 0 && silent;
|
||||
}
|
||||
return periodicCheck('audio', testAudio,
|
||||
|
@ -101,7 +100,8 @@
|
|||
ctx.getImageData(0, 0, 1, 1);
|
||||
return check(constraintApplied, false, 'throw on getImageData for video');
|
||||
} catch (e) {
|
||||
return check(constraintApplied, e.name === 'SecurityError', 'get a security error');
|
||||
return check(constraintApplied, e.name === 'SecurityError',
|
||||
'get a security error: ' + e.name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче