Skip to content

Commit 7bd6866

Browse files
committed
【fix】UT
1 parent 3ea86c8 commit 7bd6866

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

dist/mapboxgl/include-mapboxgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
inputScript(libsurl+ '/mapboxgl-l7-render/index.js');
6767
}
6868
if (inArray(includes, 'g2')) {
69-
inputScript('https://cdnjs.cloudflare.com/ajax/libs/antv-g2/4.2.8/g2.min.js');
69+
inputScript(libsurl + '/antv/g2/4.2.8/g2.min.js');
7070
}
7171
if (inArray(includes, 'g6')) {
7272
inputScript(libsurl + '/antv/g6/4.3.2/g6.min.js');

dist/maplibregl/include-maplibregl.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050

5151
//加载类库资源文件
5252
function load(config) {
53-
var libsurl = '../../web/libs';
53+
var libsurl = config.libsurl;
54+
var disturl = config.disturl;
5455
var includes = (targetScript.getAttribute('include') || '').split(',');
5556
var excludes = (targetScript.getAttribute('exclude') || '').split(',');
5657
if (!inArray(excludes, 'maplibregl')) {
@@ -61,7 +62,7 @@
6162
inputScript(libsurl + '/maplibregl-l7-render/index.js');
6263
}
6364
if (inArray(includes, 'g2')) {
64-
inputScript('https://cdnjs.cloudflare.com/ajax/libs/antv-g2/4.2.8/g2.min.js');
65+
inputScript(libsurl + '/antv/g2/4.2.8/g2.min.js');
6566
}
6667
if (inArray(includes, 'turf')) {
6768
inputScript(libsurl + '/turf/6.5.0/turf.min.js');
@@ -188,15 +189,16 @@
188189
}
189190
if (!inArray(excludes, 'iclient-maplibregl')) {
190191
if (supportES6()) {
191-
inputScript('../../dist/maplibregl/iclient-maplibregl-es6.min.js');
192+
inputScript(disturl + '/maplibregl/iclient-maplibregl-es6.min.js');
192193
} else {
193-
inputScript('../../dist/maplibregl/iclient-maplibregl.min.js');
194+
inputScript(disturl + '/maplibregl/iclient-maplibregl.min.js');
194195
}
195196
}
196197
}
197198

198199
load({
199-
libsurl: 'https://iclient.supermap.io/web/libs'
200+
libsurl: 'https://iclient.supermap.io/web/libs',
201+
disturl: '../../dist'
200202
});
201203
window.isLocal = false;
202204
window.server = document.location.toString().match(/file:\/\//)

test/mapboxgl/overlay/L7LayerSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { L7Layer } from '../../../src/mapboxgl/overlay/L7Layer';
66

77
var url = GlobeParameter.ChinaURL + '/zxyTileImage.png?z={z}&x={x}&y={y}';
88

9-
describe('L7Layer', () => {
9+
describe('mapboxgl L7Layer', () => {
1010
var originalTimeout;
1111
var testDiv, map, getL7Scene, setLayoutProperty;
1212
var data = [

test/maplibregl/core/MapExtendSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import '../../../src/maplibregl/core/MapExtend';
22
import maplibregl from 'maplibre-gl';
33
import { L7Layer } from '../../../src/maplibregl/overlay';
44

5-
describe('MapExtend', () => {
5+
describe('maplibregl MapExtend', () => {
66
var url = 'http://supermapiserver:8090/iserver/services/map-china400/rest/maps/China';
77
var testDiv, map;
88
beforeAll(() => {

test/maplibregl/overlay/L7LayerSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { L7Layer } from '../../../src/maplibregl/overlay/L7Layer';
66

77
var url = GlobeParameter.ChinaURL + '/zxyTileImage.png?z={z}&x={x}&y={y}';
88

9-
describe('L7Layer', () => {
9+
describe('maplibregl L7Layer', () => {
1010
var originalTimeout;
1111
var testDiv, map, getL7Scene, setLayoutProperty;
1212
var data = [

0 commit comments

Comments
 (0)