message: testing clockSource
diff: define(["Test", "Tone/core/Context", "Tone/core/Tone", "helper/Offline"],
  function (Test, Context, Tone, Offline) {
  - context("Context", function(){
  + describe("Context", function(){
  +
  + context("AudioContext", function(){
  +
  it ("extends the AudioContext methods", function(){
  var ctx = new Context();
  expect(ctx).to.have.property("createGain");
  @@ -29,6 +32,49 @@ define(["Test", "Tone/core/Context", "Tone/core/Tone", "helper/Offline"],
  });
  });
  + context("clockSource", function(){
  +
  + it ("defaults to 'worker'", function(){
  + var ctx = new Context();
  + expect(ctx.clockSource).to.equal("worker");
  + ctx.dispose();
  + });
  +
  + it ("provides callback", function(done){
  + var ctx = new Context();
  + expect(ctx.clockSource).to.equal("worker");
  + ctx.setTimeout(function(){
  + ctx.dispose();
  + done();
  + }, 0.1);
  + });
  +
  + it ("can be set to 'timeout'", function(done){
  + var ctx = new Context();
  + ctx.clockSource = "timeout";
  + expect(ctx.clockSource).to.equal("timeout");
  + ctx.setTimeout(function(){
  + ctx.dispose();
  + done();
  + }, 0.1);
  + });
  +
  + it ("can be set to 'offline'", function(done){
  + var ctx = new Context();
  + ctx.clockSource = "offline";
  + expect(ctx.clockSource).to.equal("offline");
  + //provides no callback
  + ctx.setTimeout(function(){
  + throw new Error("shouldn't be called");
  + }, 0.1);
  +
  + setTimeout(function(){
  + ctx.dispose();
  + done();
  + }, 200);
  + });
  + });
  +
  context("setTimeout", function(){
  it ("can set a timeout", function(done){
  @@ -140,7 +186,7 @@ define(["Test", "Tone/core/Context", "Tone/core/Tone", "helper/Offline"],
  expect(ctx.lookAhead).to.be.closeTo(0.01, 0.05);
  expect(ctx.updateInterval).to.be.closeTo(0.01, 0.05);
  // test all other latency hints
  - var latencyHints = ["interactive", "playback", "balanced"]
  + var latencyHints = ["interactive", "playback", "balanced", 0.2]
  latencyHints.forEach(function(hint){
  ctx.latencyHint = hint;
  expect(ctx.latencyHint).to.equal(hint);
  @@ -168,5 +214,6 @@ define(["Test", "Tone/core/Context", "Tone/core/Tone", "helper/Offline"],
  });
  });
  + });
  });
  \ No newline at end of file
  