Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test setZoomRange()

  • Loading branch information...
commit 85d2aae6c80f82227c1977e008213396874ea457 1 parent c3dfdb9
@tmcw tmcw authored
Showing with 12 additions and 2 deletions.
  1. +12 −2 test/browser/spec/Map.js
View
14 test/browser/spec/Map.js
@@ -23,8 +23,18 @@ describe('Map', function() {
expect(map.parent).toEqual(div);
});
- it('has set a proper zoom level', function() {
- expect(map.getZoom()).toEqual(0);
+ describe('zoom restrictions and ranges', function() {
+
+ it('has set a proper zoom level', function() {
+ expect(map.getZoom()).toEqual(0);
+ });
+
+ it('can restrict its zoomlevel', function() {
+ map.setZoomRange(5, 6);
+ map.setZoom(7);
+ expect(map.getZoom()).toEqual(6);
+ });
+
});
it('has a center coordinate', function() {
Please sign in to comment.
Something went wrong with that request. Please try again.