Skip to content

Commit a27deb5

Browse files
author
caoxinke@supermap.com
committed
fix 失败的测试案例。
1 parent 37c5f57 commit a27deb5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

test/mapboxgl/overlay/MapvLayerSpec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var mapboxgl = require('mapbox-gl');
22
var mapv = require('mapv');
33
window.mapv = mapv;
4+
window.mapboxgl = mapboxgl;
45
require('../../../src/mapboxgl/overlay/MapvLayer');
56

67
var url = GlobeParameter.ChinaURL + '/zxyTileImage.png?z={z}&x={x}&y={y}';
@@ -88,7 +89,7 @@ describe('mapboxgl_MapVLayer', function () {
8889
});
8990

9091
it('constructor test', function (done) {
91-
setTimeout(function(){
92+
setTimeout(function () {
9293
expect(mapvLayer).not.toBeNull();
9394
expect(mapvLayer.canvas).not.toBeNull();
9495
expect(mapvLayer.map).not.toBeNull();
@@ -98,7 +99,7 @@ describe('mapboxgl_MapVLayer', function () {
9899
expect(mapvLayer.renderer).not.toBeNull();
99100
expect(mapvLayer.renderer.context).toBe("2d");
100101
done();
101-
},6000);
102+
}, 6000);
102103
});
103104

104105
it('getTopLeft test', function () {

test/openlayers/services/SpatialAnalystServiceSpec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe('openlayers_SpatialAnalystService', function () {
129129
expect(serviceResults.type).toBe('processCompleted');
130130
expect(serviceResults.result.dataset).not.toBeNull();
131131
done();
132-
}, 15000);
132+
}, 30000);
133133
});
134134
//反距离加权插值分析
135135
it('interpolationAnalysis_IDW_dataset test', function (done) {
@@ -159,7 +159,7 @@ describe('openlayers_SpatialAnalystService', function () {
159159
expect(serviceResults.type).toBe('processCompleted');
160160
expect(serviceResults.result.dataset).not.toBeNull();
161161
done();
162-
}, 15000);
162+
}, 30000);
163163
});
164164
//离散点插值分析
165165
it('interpolationAnalysis_IDW_geometry test', function (done) {
@@ -221,7 +221,7 @@ describe('openlayers_SpatialAnalystService', function () {
221221
expect(serviceResults.type).toBe('processCompleted');
222222
expect(serviceResults.result.dataset).not.toBeNull();
223223
done();
224-
}, 15000);
224+
}, 30000);
225225
});
226226
});
227227

0 commit comments

Comments
 (0)