Assert that render box is a disposable
This commit is contained in:
@@ -27,6 +27,12 @@ describe('ol.render.Box', function() {
|
||||
});
|
||||
|
||||
describe('constructor', function() {
|
||||
it('creates an instance', function() {
|
||||
var obj = new ol.render.Box('test-box');
|
||||
expect(obj).to.be.a(ol.render.Box);
|
||||
expect(obj).to.be.a(ol.Disposable);
|
||||
obj.dispose();
|
||||
})
|
||||
it('creates an absolutely positioned DIV with a className', function() {
|
||||
expect(box.element_).to.be.a(HTMLDivElement);
|
||||
expect(box.element_.style.position).to.be('absolute');
|
||||
@@ -62,6 +68,7 @@ describe('ol.render.Box', function() {
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.Disposable');
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.View');
|
||||
goog.require('ol.geom.Polygon');
|
||||
|
||||
Reference in New Issue
Block a user