Verify that removing random extent nodes also works

This commit is contained in:
ahocevar
2013-12-13 18:27:33 +01:00
parent d3cc822f98
commit 67d2cddb84

View File

@@ -299,6 +299,20 @@ describe('ol.structs.RBush', function() {
});
describe('#remove', function() {
it('can remove all 2000 objects', function() {
var objs = rBush.getAll();
var i, value;
for (i = objs.length - 1; i >= 0; --i) {
value = objs[i];
rBush.remove(value);
}
expect(rBush.isEmpty()).to.be(true);
});
});
});
});