mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-29 04:53:10 +00:00
ed71d8141b
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
31 lines
780 B
JavaScript
31 lines
780 B
JavaScript
import Test from "helper/Test";
|
|
import TransportEvent from "Tone/core/TransportEvent";
|
|
import Tone from "Tone/core/Tone";
|
|
import Offline from "helper/Offline";
|
|
import PassAudio from "helper/PassAudio";
|
|
import Oscillator from "Tone/source/Oscillator";
|
|
import AudioNode from "Tone/core/AudioNode";
|
|
|
|
describe("TransportEvent", function(){
|
|
|
|
it("can be created and disposed", function(){
|
|
return Offline(function(Transport){
|
|
var event = new TransportEvent(Transport, {
|
|
"time" : 0
|
|
});
|
|
event.dispose();
|
|
Test.wasDisposed(event);
|
|
});
|
|
});
|
|
|
|
it("generates a unique event ID", function(){
|
|
return Offline(function(Transport){
|
|
var event = new TransportEvent(Transport, {
|
|
"time" : 0
|
|
});
|
|
expect(event.id).to.be.a("number");
|
|
event.dispose();
|
|
});
|
|
});
|
|
});
|
|
|