Add test for #3008
This commit is contained in:
parent
82934f95d9
commit
d2871e68e5
@ -58,6 +58,7 @@
|
|||||||
<!-- /layer -->
|
<!-- /layer -->
|
||||||
<script type="text/javascript" src="suites/layer/FeatureGroupSpec.js"></script>
|
<script type="text/javascript" src="suites/layer/FeatureGroupSpec.js"></script>
|
||||||
<script type="text/javascript" src="suites/layer/GeoJSONSpec.js"></script>
|
<script type="text/javascript" src="suites/layer/GeoJSONSpec.js"></script>
|
||||||
|
<script type="text/javascript" src="suites/layer/ImageOverlaySpec.js"></script>
|
||||||
<script type="text/javascript" src="suites/layer/LayerGroupSpec.js"></script>
|
<script type="text/javascript" src="suites/layer/LayerGroupSpec.js"></script>
|
||||||
<script type="text/javascript" src="suites/layer/PopupSpec.js"></script>
|
<script type="text/javascript" src="suites/layer/PopupSpec.js"></script>
|
||||||
|
|
||||||
|
8
spec/suites/layer/ImageOverlaySpec.js
Normal file
8
spec/suites/layer/ImageOverlaySpec.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
describe('ImageOverlay', function () {
|
||||||
|
describe('#setStyle', function () {
|
||||||
|
it('sets opacity', function () {
|
||||||
|
var overlay = L.imageOverlay().setStyle({opacity: 0.5});
|
||||||
|
expect(overlay.options.opacity).to.equal(0.5);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user