Use named exports from ol/index.js
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import _ol_ from '../../../../src/ol/index.js';
|
||||
import {getUid} from '../../../../src/ol/index.js';
|
||||
import _ol_style_ from '../../../../src/ol/style.js';
|
||||
import _ol_style_Icon_ from '../../../../src/ol/style/Icon.js';
|
||||
import _ol_style_IconImage_ from '../../../../src/ol/style/IconImage.js';
|
||||
@@ -18,7 +18,7 @@ describe('ol.style.Icon', function() {
|
||||
imgSize: size
|
||||
});
|
||||
expect(_ol_style_IconImage_.get(
|
||||
canvas, _ol_.getUid(canvas), size, '').getImage()).to.eql(canvas);
|
||||
canvas, getUid(canvas), size, '').getImage()).to.eql(canvas);
|
||||
});
|
||||
|
||||
it('imgSize overrides img.width and img.height', function(done) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import _ol_ from '../../../../src/ol/index.js';
|
||||
import {nullFunction} from '../../../../src/ol/index.js';
|
||||
import _ol_events_ from '../../../../src/ol/events.js';
|
||||
import _ol_style_ from '../../../../src/ol/style.js';
|
||||
import _ol_style_IconImage_ from '../../../../src/ol/style/IconImage.js';
|
||||
@@ -46,15 +46,13 @@ describe('ol.style.IconImageCache', function() {
|
||||
|
||||
src = '0';
|
||||
iconImage = new _ol_style_IconImage_(null, src);
|
||||
_ol_events_.listen(iconImage, 'change',
|
||||
_ol_.nullFunction, false);
|
||||
_ol_events_.listen(iconImage, 'change', nullFunction, false);
|
||||
cache.set(src, null, null, iconImage);
|
||||
expect(cache.cacheSize_).to.eql(4);
|
||||
|
||||
src = '4';
|
||||
iconImage = new _ol_style_IconImage_(null, src);
|
||||
_ol_events_.listen(iconImage, 'change',
|
||||
_ol_.nullFunction, false);
|
||||
_ol_events_.listen(iconImage, 'change', nullFunction, false);
|
||||
cache.set(src, null, null, iconImage);
|
||||
expect(cache.cacheSize_).to.eql(5);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user