mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
- iD.Context -> iD.coreContext - iD.Graph -> iD.coreGraph - iD.Node -> iD.osmNode - iD.Way -> iD.osmWay - iD.Relation -> iD.osmRelation
25 lines
614 B
JavaScript
25 lines
614 B
JavaScript
describe('iD.TileLayer', function() {
|
|
var context, d, c;
|
|
|
|
beforeEach(function() {
|
|
context = iD.coreContext();
|
|
d = d3.select(document.createElement('div'));
|
|
c = iD.TileLayer(context).projection(d3.geoMercator());
|
|
});
|
|
|
|
afterEach(function() {
|
|
d.remove();
|
|
});
|
|
|
|
describe('iD.TileLayer', function() {
|
|
it('is instantiated', function() {
|
|
expect(c).to.be.ok;
|
|
});
|
|
|
|
it('#dimensions', function() {
|
|
expect(c.dimensions([100, 100])).to.equal(c);
|
|
expect(c.dimensions()).to.eql([100,100]);
|
|
});
|
|
});
|
|
});
|