message: removing min/maxDecibels and returnType test
diff: @@ -15,14 +15,10 @@ define(["Tone/component/Analyser", "Test", "helper/Basic", "helper/Supports"],
  var anl = new Analyser();
  anl.set({
  "size" : 32,
  - "maxDecibels" : -20,
  - "minDecibels" : -80,
  "smoothing" : 0.2
  });
  var values = anl.get();
  expect(values.size).to.equal(32);
  - expect(values.minDecibels).to.equal(-80);
  - expect(values.maxDecibels).to.equal(-20);
  expect(values.smoothing).to.equal(0.2);
  anl.dispose();
  });
  @@ -35,34 +31,18 @@ define(["Tone/component/Analyser", "Test", "helper/Basic", "helper/Supports"],
  anl.dispose();
  });
  - it("can run fft analysis in both bytes and floats", function(){
  + it("can run fft analysis", function(){
  var anl = new Analyser("fft", 512);
  - anl.returnType = "byte";
  - var analysis = anl.analyse();
  - expect(analysis.length).to.equal(512);
  - var i;
  - for (i = 0; i < analysis.length; i++){
  - expect(analysis[i]).is.within(0, 255);
  - }
  - anl.returnType = "float";
  analysis = anl.analyse();
  expect(analysis.length).to.equal(512);
  for (i = 0; i < analysis.length; i++){
  - expect(analysis[i]).is.lessThan(anl.maxDecibels);
  + expect(analysis[i]).is.lessThan(0);
  }
  anl.dispose();
  });
  - it("can run waveform analysis in both bytes and floats", function(){
  + it("can run waveform analysis", function(){
  var anl = new Analyser("waveform", 256);
  - anl.returnType = "byte";
  - var analysis = anl.analyse();
  - expect(analysis.length).to.equal(256);
  - var i;
  - for (i = 0; i < analysis.length; i++){
  - expect(analysis[i]).is.within(0, 255);
  - }
  - anl.returnType = "float";
  analysis = anl.analyse();
  expect(analysis.length).to.equal(256);
  for (i = 0; i < analysis.length; i++){
  @@ -71,5 +51,13 @@ define(["Tone/component/Analyser", "Test", "helper/Basic", "helper/Supports"],
  anl.dispose();
  });
  + it("throws an error if an invalid type is set", function(){
  + var anl = new Analyser("fft", 512);
  + expect(function(){
  + anl.type = "invalid";
  + }).to.throw(Error);
  + anl.dispose();
  + });
  +
  });
  });
  \ No newline at end of file
  