Tone.js/test/source/Microphone.js
Yotam Mann 8a7195e962 canGetUserMedia -> supported
also handling MediaStream.stop deprecation
2015-09-30 13:47:42 -04:00

17 lines
No EOL
465 B
JavaScript

define(["Tone/source/Microphone", "helper/Basic", "Tone/source/ExternalInput"],
function (Microphone, Basic, ExternalInput) {
describe("Microphone", function(){
Basic(Microphone);
it ("extends ExternalInput", function(){
var mic = new Microphone();
expect(mic).to.be.instanceOf(ExternalInput);
mic.dispose();
});
it ("indicates if the browser has UserMedia support", function(){
expect(Microphone.supported).to.be.a.boolean;
});
});
});