Sha256: f4e6ec5df613978ba25687d25b396cf155b9e702842770958b62f9f8f5cf389b

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

describe('Circle', function () {
	describe('#getBounds', function () {

		var circle;

		beforeEach(function () {
			circle = L.circle([50, 30], 200);
		});

		it('returns bounds', function () {
			var bounds = circle.getBounds();

			expect(bounds.getSouthWest().equals([49.998203369, 29.997204939])).to.be.ok();
			expect(bounds.getNorthEast().equals([50.001796631, 30.002795061])).to.be.ok();
		});
	});
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
leaflet-js-0.7.0.4 lib/leaflet/spec/suites/layer/vector/CircleSpec.js
leaflet-js-0.7.0.3 lib/leaflet/spec/suites/layer/vector/CircleSpec.js
leaflet-js-0.7.0.2 lib/leaflet/spec/suites/layer/vector/CircleSpec.js
leaflet-js-0.7.0.1 lib/leaflet/spec/suites/layer/vector/CircleSpec.js
leaflet-js-0.7.0 lib/leaflet/spec/suites/layer/vector/CircleSpec.js
leaflet-js-0.6.beta4 lib/leaflet/spec/suites/layer/vector/CircleSpec.js