extent and res tests

This commit is contained in:
Mike Adair
2012-06-20 04:33:18 -04:00
committed by Mike Adair
parent 2c7e308960
commit 4161595c85

View File

@@ -133,6 +133,7 @@ describe("ol.Map", function() {
expect(proj instanceof ol.Projection).toBe(true);
expect(proj.code()).toBe("EPSG:4326");
debugger;
map.center([10, 20]);
map.userProjection("EPSG:3857");
@@ -167,9 +168,7 @@ describe("ol.Map", function() {
map.destroy();
expect(function() {
map.center([3, 4]);
}).toThrow();
expect(goog.isDef(map.layers)).toBe(false);
});
@@ -186,7 +185,6 @@ describe("ol.Map", function() {
it("resolutions array is mutable", function() {
var map = ol.map();
debugger;
map.resolutions([1,2,3]);
var resolutions = map.resolutions();