2012-10-15 16:39:07 +08:00
|
|
|
describe('Circle', function () {
|
|
|
|
describe('#getBounds', function () {
|
|
|
|
|
|
|
|
var circle;
|
|
|
|
|
|
|
|
beforeEach(function () {
|
|
|
|
circle = L.circle([50, 30], 200);
|
|
|
|
});
|
|
|
|
|
2013-02-20 04:41:48 +08:00
|
|
|
it('returns bounds', function () {
|
2012-10-15 16:39:07 +08:00
|
|
|
var bounds = circle.getBounds();
|
|
|
|
|
2013-03-02 05:49:20 +08:00
|
|
|
expect(bounds.getSouthWest().equals([49.998203369, 29.997204939])).to.be.ok();
|
|
|
|
expect(bounds.getNorthEast().equals([50.001796631, 30.002795061])).to.be.ok();
|
2012-10-15 16:39:07 +08:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|