Pass options to the base class

This commit is contained in:
Frederic Junod
2013-06-25 12:12:03 +02:00
parent a427719a22
commit cd13e700ac
2 changed files with 15 additions and 7 deletions

View File

@@ -60,7 +60,8 @@ describe('ol.layer.Layer', function() {
hue: 180,
opacity: 0.5,
saturation: 5,
visible: false
visible: false,
foo: 42
});
expect(layer.getBrightness()).to.be(0.5);
@@ -69,6 +70,7 @@ describe('ol.layer.Layer', function() {
expect(layer.getOpacity()).to.be(0.5);
expect(layer.getSaturation()).to.be(5);
expect(layer.getVisible()).to.be(false);
expect(layer.get('foo')).to.be(42);
goog.dispose(layer);
});