mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
testing removing objects the timeline doesn't have
should do nothing
This commit is contained in:
parent
45f7360e7d
commit
c5132d226c
1 changed files with 14 additions and 0 deletions
|
@ -75,6 +75,20 @@ define(["Test", "Tone/core/Timeline"], function (Test, Timeline) {
|
|||
sched.dispose();
|
||||
});
|
||||
|
||||
it ("has no effect to remove an object which is not there", function(){
|
||||
var sched = new Timeline();
|
||||
sched.add({
|
||||
"time" : 2
|
||||
});
|
||||
sched.remove({});
|
||||
expect(sched.length).to.equal(1);
|
||||
sched.forEach(function(event){
|
||||
sched.remove({});
|
||||
});
|
||||
expect(sched.length).to.equal(1);
|
||||
sched.dispose();
|
||||
});
|
||||
|
||||
|
||||
it ("can search for events in the timeline by time", function(){
|
||||
var sched = new Timeline();
|
||||
|
|
Loading…
Reference in a new issue