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:
Éric Lemoine
2013-01-31 10:04:41 +01:00
parent bef1b9aea5
commit b6ed5f2164
22 changed files with 87 additions and 45 deletions

View File

@@ -1,6 +1,4 @@
goog.require('goog.dom');
goog.require('ol.Map');
goog.require('ol.control.Control');
goog.provide('ol.test.control.Control');
describe('ol.control.Control', function() {
var map, control;
@@ -25,3 +23,7 @@ describe('ol.control.Control', function() {
});
});
});
goog.require('goog.dom');
goog.require('ol.Map');
goog.require('ol.control.Control');