[Pkg-javascript-commits] [leaflet] 15/301: add getMinZoom test for #1866

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 7c744d06e6ea056b53463a5b778b597bec28f398
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Thu Jul 25 12:44:55 2013 +0300

    add getMinZoom test for #1866
    
    [skip ci]
---
 spec/suites/map/MapSpec.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/spec/suites/map/MapSpec.js b/spec/suites/map/MapSpec.js
index 762594e..1c90699 100644
--- a/spec/suites/map/MapSpec.js
+++ b/spec/suites/map/MapSpec.js
@@ -121,6 +121,13 @@ describe("Map", function () {
 	});
 
 	describe("#getMinZoom and #getMaxZoom", function () {
+		describe('#getMinZoom', function () {
+			it('returns 0 if not set by Map options or TileLayer options', function () {
+				var map = L.map(document.createElement('div'));
+				expect(map.getMinZoom()).to.be(0);
+			});
+		});
+
 		it("minZoom and maxZoom options overrides any minZoom and maxZoom set on layers", function () {
 
 			var map = L.map(document.createElement('div'), {minZoom: 2, maxZoom: 20});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list