Add test for #3008

This commit is contained in:
John Firebaugh 2014-11-12 10:53:26 -08:00
parent 82934f95d9
commit d2871e68e5
2 changed files with 9 additions and 0 deletions

View File

@ -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>

View 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);
});
});
});