mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
8a7195e962
also handling MediaStream.stop deprecation
17 lines
No EOL
465 B
JavaScript
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;
|
|
});
|
|
});
|
|
}); |