@@ -137,7 +137,7 @@ describe('Provide in Sources', function () {
137137 assert . equal ( textures [ 0 ] . extent . row , 511 ) ;
138138 assert . equal ( textures [ 0 ] . extent . col , 512 ) ;
139139 done ( ) ;
140- } , done ) ;
140+ } ) . catch ( done ) ;
141141 } ) ;
142142
143143 it ( 'should get wmts texture elevation with DataSourceProvider' , ( done ) => {
@@ -167,7 +167,7 @@ describe('Provide in Sources', function () {
167167 assert . equal ( textures [ 0 ] . extent . row , 511 ) ;
168168 assert . equal ( textures [ 0 ] . extent . col , 512 ) ;
169169 done ( ) ;
170- } , done ) ;
170+ } ) . catch ( done ) ;
171171 } ) ;
172172 it ( 'should get wms texture with DataSourceProvider' , ( done ) => {
173173 colorlayer . source = new WMSSource ( {
@@ -200,7 +200,7 @@ describe('Provide in Sources', function () {
200200 assert . equal ( e . north , tile . extent . north ) ;
201201 assert . equal ( e . south , tile . extent . south ) ;
202202 done ( ) ;
203- } , done ) ;
203+ } ) . catch ( done ) ;
204204 } ) ;
205205 it ( 'should get 4 TileMesh from TileProvider' , ( done ) => {
206206 const tile = new TileMesh ( geom , material , planarlayer , extent , zoom ) ;
@@ -217,7 +217,7 @@ describe('Provide in Sources', function () {
217217 assert . equal ( tiles [ 0 ] . extent . north , tile . extent . north ) ;
218218 assert . equal ( tiles [ 0 ] . extent . south , tile . extent . north * 0.5 ) ;
219219 done ( ) ;
220- } , done ) ;
220+ } ) . catch ( done ) ;
221221 } ) ;
222222 it ( 'should get 3 meshs with WFS source and DataSourceProvider' , ( done ) => {
223223 const tile = new TileMesh ( geom , material , planarlayer , extent , featureLayer . zoom . min ) ;
@@ -234,7 +234,7 @@ describe('Provide in Sources', function () {
234234 . then ( ( features ) => {
235235 assert . equal ( features [ 0 ] . meshes . children . length , 4 ) ;
236236 done ( ) ;
237- } , done ) ;
237+ } ) . catch ( done ) ;
238238 } ) ;
239239
240240 it ( 'should get 1 mesh with WFS source and DataSourceProvider and mergeFeatures == true' , ( done ) => {
@@ -260,7 +260,7 @@ describe('Provide in Sources', function () {
260260 assert . equal ( features [ 0 ] . meshes . children [ 1 ] . children . length , 0 ) ;
261261 assert . equal ( featureCountByCb , 2 ) ;
262262 done ( ) ;
263- } , done ) ;
263+ } ) . catch ( done ) ;
264264 } ) ;
265265 it ( 'should get 1 texture with WFS source and DataSourceProvider' , ( done ) => {
266266 const tile = new TileMesh (
@@ -299,7 +299,7 @@ describe('Provide in Sources', function () {
299299 assert . equal ( textures . length , 1 ) ;
300300 assert . ok ( textures [ 0 ] . isTexture ) ;
301301 done ( ) ;
302- } , done ) ;
302+ } ) . catch ( done ) ;
303303 } ) ;
304304
305305 it ( 'should get updated RasterLayer' , ( done ) => {
@@ -331,6 +331,6 @@ describe('Provide in Sources', function () {
331331 tile . material . updateLayersUniforms ( ) ;
332332 assert . equal ( tile . material . uniforms . colorTextures . value [ 0 ] . extent . zoom , 10 ) ;
333333 done ( ) ;
334- } , done ) ;
334+ } ) . catch ( done ) ;
335335 } ) ;
336336} ) ;
0 commit comments