extent and res tests
This commit is contained in:
@@ -133,6 +133,7 @@ describe("ol.Map", function() {
|
|||||||
expect(proj instanceof ol.Projection).toBe(true);
|
expect(proj instanceof ol.Projection).toBe(true);
|
||||||
expect(proj.code()).toBe("EPSG:4326");
|
expect(proj.code()).toBe("EPSG:4326");
|
||||||
|
|
||||||
|
debugger;
|
||||||
map.center([10, 20]);
|
map.center([10, 20]);
|
||||||
|
|
||||||
map.userProjection("EPSG:3857");
|
map.userProjection("EPSG:3857");
|
||||||
@@ -167,9 +168,7 @@ describe("ol.Map", function() {
|
|||||||
|
|
||||||
map.destroy();
|
map.destroy();
|
||||||
|
|
||||||
expect(function() {
|
expect(goog.isDef(map.layers)).toBe(false);
|
||||||
map.center([3, 4]);
|
|
||||||
}).toThrow();
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -186,7 +185,6 @@ describe("ol.Map", function() {
|
|||||||
|
|
||||||
it("resolutions array is mutable", function() {
|
it("resolutions array is mutable", function() {
|
||||||
var map = ol.map();
|
var map = ol.map();
|
||||||
debugger;
|
|
||||||
map.resolutions([1,2,3]);
|
map.resolutions([1,2,3]);
|
||||||
|
|
||||||
var resolutions = map.resolutions();
|
var resolutions = map.resolutions();
|
||||||
|
|||||||
Reference in New Issue
Block a user