Use namespaces for tests
With this commit test files provide namespaces (using goog.provide). This fixes the issue reported by @bartvde where goog objects cannot be used in Jasmine "describe" functions. It also frees us from having to add script tags for the test files in test/ol.html.
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
goog.require('goog.async.AnimationDelay');
|
||||
goog.require('goog.dom');
|
||||
goog.require('ol.Collection');
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.RendererHint');
|
||||
goog.require('ol.View2D');
|
||||
goog.require('ol.layer.TileLayer');
|
||||
goog.require('ol.source.XYZ');
|
||||
goog.provide('ol.test.Map');
|
||||
goog.provide('ol.test.RendererHints');
|
||||
|
||||
describe('ol.RendererHints', function() {
|
||||
|
||||
@@ -241,3 +234,13 @@ describe('ol.Map', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('goog.async.AnimationDelay');
|
||||
goog.require('goog.dom');
|
||||
goog.require('ol.Collection');
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.RendererHint');
|
||||
goog.require('ol.View2D');
|
||||
goog.require('ol.layer.TileLayer');
|
||||
goog.require('ol.source.XYZ');
|
||||
|
||||
Reference in New Issue
Block a user