Bug 966066 - Correct tests that depend on this. r=jib

This commit is contained in:
Martin Thomson 2014-04-25 10:33:00 -04:00
Родитель d2fec57ae8
Коммит 21d09d72b7
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -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);
}
}