2015-08-21 21:03:14 +00:00
|
|
|
define(["Test", "Tone/core/Tone"], function (Test, Tone) {
|
|
|
|
|
2015-08-24 21:28:23 +00:00
|
|
|
return function(Constr, args){
|
2015-08-21 21:03:14 +00:00
|
|
|
|
|
|
|
context("Basic", function(){
|
|
|
|
|
|
|
|
it ("can be created and disposed", function(){
|
2015-08-24 21:28:23 +00:00
|
|
|
var instance = new Constr(args);
|
2015-08-21 21:03:14 +00:00
|
|
|
instance.dispose();
|
|
|
|
Test.wasDisposed(instance);
|
|
|
|
});
|
|
|
|
|
|
|
|
it ("extends Tone", function(){
|
2015-08-24 21:28:23 +00:00
|
|
|
var instance = new Constr(args);
|
2015-08-21 21:03:14 +00:00
|
|
|
expect(instance).to.be.an.instanceof(Tone);
|
|
|
|
instance.dispose();
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
});
|