@@ -137,7 +137,7 @@ describe('Provide in Sources', function () {
137
137
assert . equal ( textures [ 0 ] . extent . row , 511 ) ;
138
138
assert . equal ( textures [ 0 ] . extent . col , 512 ) ;
139
139
done ( ) ;
140
- } , done ) ;
140
+ } ) . catch ( done ) ;
141
141
} ) ;
142
142
143
143
it ( 'should get wmts texture elevation with DataSourceProvider' , ( done ) => {
@@ -167,7 +167,7 @@ describe('Provide in Sources', function () {
167
167
assert . equal ( textures [ 0 ] . extent . row , 511 ) ;
168
168
assert . equal ( textures [ 0 ] . extent . col , 512 ) ;
169
169
done ( ) ;
170
- } , done ) ;
170
+ } ) . catch ( done ) ;
171
171
} ) ;
172
172
it ( 'should get wms texture with DataSourceProvider' , ( done ) => {
173
173
colorlayer . source = new WMSSource ( {
@@ -200,7 +200,7 @@ describe('Provide in Sources', function () {
200
200
assert . equal ( e . north , tile . extent . north ) ;
201
201
assert . equal ( e . south , tile . extent . south ) ;
202
202
done ( ) ;
203
- } , done ) ;
203
+ } ) . catch ( done ) ;
204
204
} ) ;
205
205
it ( 'should get 4 TileMesh from TileProvider' , ( done ) => {
206
206
const tile = new TileMesh ( geom , material , planarlayer , extent , zoom ) ;
@@ -217,7 +217,7 @@ describe('Provide in Sources', function () {
217
217
assert . equal ( tiles [ 0 ] . extent . north , tile . extent . north ) ;
218
218
assert . equal ( tiles [ 0 ] . extent . south , tile . extent . north * 0.5 ) ;
219
219
done ( ) ;
220
- } , done ) ;
220
+ } ) . catch ( done ) ;
221
221
} ) ;
222
222
it ( 'should get 3 meshs with WFS source and DataSourceProvider' , ( done ) => {
223
223
const tile = new TileMesh ( geom , material , planarlayer , extent , featureLayer . zoom . min ) ;
@@ -234,7 +234,7 @@ describe('Provide in Sources', function () {
234
234
. then ( ( features ) => {
235
235
assert . equal ( features [ 0 ] . meshes . children . length , 4 ) ;
236
236
done ( ) ;
237
- } , done ) ;
237
+ } ) . catch ( done ) ;
238
238
} ) ;
239
239
240
240
it ( 'should get 1 mesh with WFS source and DataSourceProvider and mergeFeatures == true' , ( done ) => {
@@ -260,7 +260,7 @@ describe('Provide in Sources', function () {
260
260
assert . equal ( features [ 0 ] . meshes . children [ 1 ] . children . length , 0 ) ;
261
261
assert . equal ( featureCountByCb , 2 ) ;
262
262
done ( ) ;
263
- } , done ) ;
263
+ } ) . catch ( done ) ;
264
264
} ) ;
265
265
it ( 'should get 1 texture with WFS source and DataSourceProvider' , ( done ) => {
266
266
const tile = new TileMesh (
@@ -299,7 +299,7 @@ describe('Provide in Sources', function () {
299
299
assert . equal ( textures . length , 1 ) ;
300
300
assert . ok ( textures [ 0 ] . isTexture ) ;
301
301
done ( ) ;
302
- } , done ) ;
302
+ } ) . catch ( done ) ;
303
303
} ) ;
304
304
305
305
it ( 'should get updated RasterLayer' , ( done ) => {
@@ -331,6 +331,6 @@ describe('Provide in Sources', function () {
331
331
tile . material . updateLayersUniforms ( ) ;
332
332
assert . equal ( tile . material . uniforms . colorTextures . value [ 0 ] . extent . zoom , 10 ) ;
333
333
done ( ) ;
334
- } , done ) ;
334
+ } ) . catch ( done ) ;
335
335
} ) ;
336
336
} ) ;
0 commit comments