changed visibility of overlay properties to protected,
added new getOptions function to overlay, to get the original options remove trailing underscore from protected properties and functions
This commit is contained in:
1 parent
d33e41d322
commit
a802f5937b
2 files changed
+101
-85
No files matched your search
@@ -47,7 +47,7 @@ describe('ol.Overlay', function() {
|
||||
it('can be constructed with className', function() {
|
||||
var instance = new ol.Overlay({className: 'my-class'});
|
||||
expect(instance).to.be.an(ol.Overlay);
|
||||
expect(instance.element_.className).to.be('my-class');
|
||||
expect(instance.element.className).to.be('my-class');
|
||||
});
|
||||
|
||||
});
|
||||
@@ -98,9 +98,9 @@ describe('ol.Overlay', function() {
|
||||
});
|
||||
map.addOverlay(overlay);
|
||||
map.renderSync();
|
||||
expect(overlay.element_.style.display).not.to.be('none');
|
||||
expect(overlay.element.style.display).not.to.be('none');
|
||||
overlay.setVisible(false);
|
||||
expect(overlay.element_.style.display).to.be('none');
|
||||
expect(overlay.element.style.display).to.be('none');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user