Fix use of dispose in ol.Map tests
This commit is contained in:
@@ -61,7 +61,7 @@ describe('ol.Map', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('removes the viewport from its parent', function() {
|
it('removes the viewport from its parent', function() {
|
||||||
map.dispose();
|
goog.dispose(map);
|
||||||
expect(goog.dom.getParentElement(map.getViewport())).to.be(null);
|
expect(goog.dom.getParentElement(map.getViewport())).to.be(null);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -223,6 +223,7 @@ describe('ol.Map', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
goog.require('goog.async.AnimationDelay');
|
goog.require('goog.async.AnimationDelay');
|
||||||
|
goog.require('goog.dispose');
|
||||||
goog.require('goog.dom');
|
goog.require('goog.dom');
|
||||||
goog.require('ol.Collection');
|
goog.require('ol.Collection');
|
||||||
goog.require('ol.Map');
|
goog.require('ol.Map');
|
||||||
|
|||||||
Reference in New Issue
Block a user