From 826321aca4fef84f8ef74d00e75c224bbe508010 Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Thu, 23 Oct 2014 00:23:18 -0400 Subject: [PATCH] Bus audio passing test --- test/tests/Core.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/tests/Core.js b/test/tests/Core.js index f364b29f..edc4ce12 100644 --- a/test/tests/Core.js +++ b/test/tests/Core.js @@ -137,6 +137,25 @@ define(["chai", "Tone/core/Tone", "Tone/core/Master", "Tone/core/Bus", expect(Tone.prototype.send).is.a("function"); expect(Tone.prototype.receive).is.a("function"); }); + + it ("passes audio from a send to a receive with the same name", function(done){ + var send, recv; + Test.passesAudio(function(input, output){ + //make them pass through nodes + send = new Tone(); + recv = new Tone(); + send.input.connect(send.output); + recv.input.connect(recv.output); + input.connect(send); + recv.connect(output); + send.send("test"); + recv.receive("test"); + }, function(){ + send.dispose(); + recv.dispose(); + done(); + }); + }); }); describe("Tone.Buffer", function(){