removing redundant reverse test

already exists in player and buffer
This commit is contained in:
Yotam Mann 2016-07-05 21:55:17 -04:00
parent 7dbae675fd
commit b06f50e9c6

View file

@ -67,33 +67,6 @@ define(["helper/Basic", "Tone/source/GrainPlayer", "helper/Offline", "helper/Sou
});
context("Reverse", function(){
it("can be played in reverse", function(done){
var player;
var offline = new Offline();
var audioBuffer = buffer.get().getChannelData(0);
var lastSample = audioBuffer[audioBuffer.length - 1];
offline.before(function(dest){
player = new GrainPlayer(buffer.get()).connect(dest);
player.reverse = true;
player.start(0);
});
offline.test(function(sample, time){
if (time === 0){
expect(sample).to.equal(lastSample);
}
});
offline.after(function(){
player.dispose();
buffer.reverse = false;
done();
});
offline.run();
});
});
context("Looping", function(){
beforeEach(function(done){