mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 09:42:56 +00:00
25 lines
627 B
JavaScript
25 lines
627 B
JavaScript
describe("iD.behavior.Lasso", function () {
|
|
var lasso, context;
|
|
|
|
beforeEach(function () {
|
|
context = iD().imagery(iD.data.imagery);
|
|
context.container(d3.select(document.createElement('div')));
|
|
|
|
// Neuter connection
|
|
context.connection().loadTiles = function () {};
|
|
|
|
lasso = iD.behavior.Lasso(context);
|
|
|
|
d3.select(document.createElement('div'))
|
|
.call(context.map());
|
|
});
|
|
|
|
afterEach(function () {
|
|
lasso.off(context.surface());
|
|
});
|
|
|
|
it('can be initialized', function () {
|
|
expect(context.surface().call(lasso)).to.be.ok;
|
|
});
|
|
});
|