mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
testing that clear
can handle times before the first event
This commit is contained in:
parent
e5b0fb49d3
commit
375d60d2f1
1 changed files with 2 additions and 2 deletions
|
@ -148,11 +148,11 @@ define(["Test", "Tone/core/Timeline"], function (Test, Timeline) {
|
|||
|
||||
it ("can clear items after the given time", function(){
|
||||
var sched = new Timeline();
|
||||
for (var i = 0; i < 100; i++){
|
||||
for (var i = 5; i < 100; i++){
|
||||
sched.addEvent({"time" : i});
|
||||
}
|
||||
sched.clear(10);
|
||||
expect(sched.length).to.equal(10);
|
||||
expect(sched.length).to.equal(5);
|
||||
sched.clear(0);
|
||||
expect(sched.length).to.equal(0);
|
||||
sched.dispose();
|
||||
|
|
Loading…
Reference in a new issue