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,4 +1,4 @@
|
||||
goog.require('ol.View2D');
|
||||
goog.provide('ol.test.View2D');
|
||||
|
||||
describe('ol.View2D', function() {
|
||||
describe('create constraints', function() {
|
||||
@@ -51,3 +51,5 @@ describe('ol.View2D', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.View2D');
|
||||
|
||||
Reference in New Issue
Block a user