Better setup/teardown for ol.proj tests

This commit is contained in:
Éric Lemoine
2013-09-15 14:46:49 +02:00
committed by Tim Schaub
parent 3dc2b69615
commit ecd82297a0
2 changed files with 12 additions and 14 deletions
@@ -3,6 +3,14 @@ goog.provide('ol.test.proj.EPSG3857');
describe('ol.proj.EPSG3857', function() {
beforeEach(function() {
ol.proj.common.add();
});
afterEach(function() {
ol.proj.clearAllProjections();
});
describe('getPointResolution', function() {
it('returns the correct point scale at the equator', function() {
@@ -44,4 +52,5 @@ describe('ol.proj.EPSG3857', function() {
goog.require('ol.proj');
goog.require('ol.proj.common');
goog.require('ol.proj.EPSG3857');