Started user control

This commit is contained in:
TheGreyDiamond
2021-05-25 23:50:46 +02:00
parent 1fc78a3b44
commit 6e3104eef3
175 changed files with 121801 additions and 214 deletions

View File

@@ -0,0 +1,21 @@
describe('distance grid', function () {
it('addObject', function () {
var grid = new L.DistanceGrid(100),
obj = {};
expect(grid.addObject(obj, { x: 0, y: 0 })).to.eql(undefined);
expect(grid.removeObject(obj, { x: 0, y: 0 })).to.eql(true);
});
it('eachObject', function (done) {
var grid = new L.DistanceGrid(100),
obj = {};
expect(grid.addObject(obj, { x: 0, y: 0 })).to.eql(undefined);
grid.eachObject(function(o) {
expect(o).to.eql(obj);
done();
});
});
});