@@ -18,7 +18,7 @@ describe('leaflet_SpatialAnalystService_interpolationAnalysis', function () {
1818 } ) ;
1919
2020 var resultDataset = "Interpolation_UnvsKriging_lfTest" ;
21- it ( 'interpolationAnalysis_Kriging_Universal' , function ( done ) {
21+ it ( 'interpolationAnalysis_Kriging_Universal' , function ( ) {
2222 var interpolationAnalystParameters = new SuperMap . InterpolationKrigingAnalystParameters ( {
2323 // 用于做插值分析的数据源中数据集的名称
2424 dataset : "SamplesP@Interpolation" ,
@@ -53,8 +53,6 @@ describe('leaflet_SpatialAnalystService_interpolationAnalysis', function () {
5353 var interpolationAnalystService = L . supermap . spatialAnalystService ( spatialAnalystURL , options ) ;
5454 interpolationAnalystService . interpolationAnalysis ( interpolationAnalystParameters , function ( result ) {
5555 serviceResult = result ;
56- } ) ;
57- setTimeout ( function ( ) {
5856 try {
5957 expect ( interpolationAnalystService ) . not . toBeNull ( ) ;
6058 expect ( serviceResult ) . not . toBeNull ( ) ;
@@ -64,14 +62,12 @@ describe('leaflet_SpatialAnalystService_interpolationAnalysis', function () {
6462 expect ( serviceResult . result . dataset ) . toContain ( "@Interpolation" ) ;
6563 expect ( serviceResult . result . succeed ) . toBe ( true ) ;
6664 interpolationAnalystService . destroy ( ) ;
67- done ( ) ;
6865 } catch ( exception ) {
6966 console . log ( "'leaflet_interpolationAnalystService_Kriging_Universal'案例失败" + exception . name + ":" + exception . message ) ;
7067 interpolationAnalystService . destroy ( ) ;
7168 expect ( false ) . toBeTruthy ( ) ;
72- done ( ) ;
7369 }
74- } , 10000 ) ;
70+ } ) ;
7571 } ) ;
7672
7773 // 删除测试过程中产生的测试数据集
0 commit comments