Add tests for ol.Map.prototype.disposeInternal
This commit is contained in:
@@ -1,7 +1,23 @@
|
||||
goog.require('ol.Map');
|
||||
goog.require('goog.dom');
|
||||
|
||||
describe('ol.Map', function() {
|
||||
|
||||
describe('dispose', function() {
|
||||
var map;
|
||||
|
||||
beforeEach(function() {
|
||||
map = new ol.Map({
|
||||
target: document.getElementById('map')
|
||||
});
|
||||
});
|
||||
|
||||
it('removes the viewport from its parent', function() {
|
||||
map.dispose();
|
||||
expect(goog.dom.getParentElement(map.getViewport())).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
describe('create constraints', function() {
|
||||
|
||||
describe('create resolution constraint', function() {
|
||||
|
||||
Reference in New Issue
Block a user