@@ -41,7 +41,7 @@ describe('mapboxgl_WebMap', () => {
4141 mapboxgl . proj4 = undefined ;
4242 window . jsonsql = undefined ;
4343 } ) ;
44- xit ( 'initialize_TIANDITU_VEC' , ( done ) => {
44+ it ( 'initialize_TIANDITU_VEC' , ( done ) => {
4545 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
4646 if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
4747 return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -72,7 +72,7 @@ describe('mapboxgl_WebMap', () => {
7272 } ) ;
7373 } ) ;
7474
75- xit ( 'resize' , ( done ) => {
75+ it ( 'resize' , ( done ) => {
7676 let options = {
7777 server : server
7878 } ;
@@ -93,7 +93,7 @@ describe('mapboxgl_WebMap', () => {
9393 done ( ) ;
9494 } ) ;
9595 } ) ;
96- xit ( 'setMapId' , ( done ) => {
96+ it ( 'setMapId' , ( done ) => {
9797 let options = {
9898 server : server
9999 } ;
@@ -116,7 +116,7 @@ describe('mapboxgl_WebMap', () => {
116116 } ) ;
117117 } ) ;
118118 } ) ;
119- xit ( 'jsonsql' , ( done ) => {
119+ it ( 'jsonsql' , ( done ) => {
120120 let options = {
121121 server : server
122122 } ;
@@ -139,7 +139,7 @@ describe('mapboxgl_WebMap', () => {
139139 } ) ;
140140 } ) ;
141141
142- xit ( 'setWebMapOptions' , ( done ) => {
142+ it ( 'setWebMapOptions' , ( done ) => {
143143 let options = {
144144 server : server
145145 } ;
@@ -167,7 +167,7 @@ describe('mapboxgl_WebMap', () => {
167167 } ) ;
168168 } ) ;
169169
170- xit ( 'setMapOptions' , ( done ) => {
170+ it ( 'setMapOptions' , ( done ) => {
171171 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
172172 if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
173173 return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -203,7 +203,7 @@ describe('mapboxgl_WebMap', () => {
203203 } ) ;
204204 } ) ;
205205
206- xit ( 'initialize_TIANDITU_IMAGE' , ( done ) => {
206+ it ( 'initialize_TIANDITU_IMAGE' , ( done ) => {
207207 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
208208 if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
209209 return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -232,7 +232,7 @@ describe('mapboxgl_WebMap', () => {
232232 } ) ;
233233 } ) ;
234234
235- xit ( 'initialize_TIANDITU_TER' , ( done ) => {
235+ it ( 'initialize_TIANDITU_TER' , ( done ) => {
236236 let options = {
237237 server : server
238238 } ;
@@ -254,7 +254,7 @@ describe('mapboxgl_WebMap', () => {
254254 } ) ;
255255 } ) ;
256256
257- xit ( 'initialize_OPENSTREET' , ( done ) => {
257+ it ( 'initialize_OPENSTREET' , ( done ) => {
258258 let options = {
259259 server : server
260260 } ;
@@ -282,7 +282,7 @@ describe('mapboxgl_WebMap', () => {
282282 } ) ;
283283 } ) ;
284284
285- xit ( 'initialize_FAILD mapcreatefailed' , ( done ) => {
285+ it ( 'initialize_FAILD mapcreatefailed' , ( done ) => {
286286 let options = {
287287 server : server
288288 } ;
@@ -303,7 +303,7 @@ describe('mapboxgl_WebMap', () => {
303303 } ) ;
304304 } ) ;
305305
306- xit ( 'initialize_FAILD getmapfailed' , ( done ) => {
306+ it ( 'initialize_FAILD getmapfailed' , ( done ) => {
307307 let options = {
308308 server : server
309309 } ;
@@ -324,7 +324,7 @@ describe('mapboxgl_WebMap', () => {
324324 } ) ;
325325 } ) ;
326326
327- xit ( 'initialize_CLOUD mapcreatesucceeded' , ( done ) => {
327+ it ( 'initialize_CLOUD mapcreatesucceeded' , ( done ) => {
328328 let options = {
329329 server : server
330330 } ;
@@ -351,7 +351,7 @@ describe('mapboxgl_WebMap', () => {
351351 } ) ;
352352 } ) ;
353353
354- xit ( 'initialize_CLOUD addlayerssucceeded' , ( done ) => {
354+ it ( 'initialize_CLOUD addlayerssucceeded' , ( done ) => {
355355 let options = {
356356 server : server
357357 } ;
@@ -378,7 +378,7 @@ describe('mapboxgl_WebMap', () => {
378378 } ) ;
379379 } ) ;
380380
381- xit ( 'initialize_GOOGLE' , ( done ) => {
381+ it ( 'initialize_GOOGLE' , ( done ) => {
382382 let options = {
383383 server : server
384384 } ;
@@ -406,7 +406,7 @@ describe('mapboxgl_WebMap', () => {
406406 } ) ;
407407 } ) ;
408408
409- xit ( 'createThemeLayer_Vector_Basis' , ( done ) => {
409+ it ( 'createThemeLayer_Vector_Basis' , ( done ) => {
410410 let options = {
411411 server : server
412412 } ;
@@ -438,7 +438,7 @@ describe('mapboxgl_WebMap', () => {
438438 } ) ;
439439 } ) ;
440440
441- xit ( 'createThemeLayer_Vector_Basis_Line' , ( done ) => {
441+ it ( 'createThemeLayer_Vector_Basis_Line' , ( done ) => {
442442 let options = {
443443 server : server
444444 } ;
@@ -469,7 +469,7 @@ describe('mapboxgl_WebMap', () => {
469469 } ) ;
470470 } ) ;
471471
472- xit ( 'createThemeLayer_Vector_IMAGE' , ( done ) => {
472+ it ( 'createThemeLayer_Vector_IMAGE' , ( done ) => {
473473 let options = {
474474 server : server
475475 } ;
@@ -509,7 +509,7 @@ describe('mapboxgl_WebMap', () => {
509509 } ) ;
510510 } ) ;
511511
512- xit ( 'createThemeLayer_Unique' , ( done ) => {
512+ it ( 'createThemeLayer_Unique' , ( done ) => {
513513 let options = {
514514 server : server
515515 } ;
@@ -540,7 +540,7 @@ describe('mapboxgl_WebMap', () => {
540540 } ) ;
541541 } ) ;
542542
543- xit ( 'createThemeLayer_Range' , ( done ) => {
543+ it ( 'createThemeLayer_Range' , ( done ) => {
544544 let options = {
545545 server : server
546546 } ;
@@ -574,7 +574,7 @@ describe('mapboxgl_WebMap', () => {
574574 } ) ;
575575 } ) ;
576576
577- xit ( 'createThemeLayer_Heat' , ( done ) => {
577+ it ( 'createThemeLayer_Heat' , ( done ) => {
578578 //插件里面i未定义报错
579579 let options = {
580580 server : server
@@ -606,7 +606,7 @@ describe('mapboxgl_WebMap', () => {
606606 } ) ;
607607 } ) ;
608608
609- xit ( 'createThemeLayer_Marker' , ( done ) => {
609+ it ( 'createThemeLayer_Marker' , ( done ) => {
610610 let options = {
611611 server : server
612612 } ;
@@ -637,7 +637,7 @@ describe('mapboxgl_WebMap', () => {
637637 } ) ;
638638 } ) ;
639639
640- xit ( 'createThemeLayer_SUPERMAP_MAP_datasource' , ( done ) => {
640+ it ( 'createThemeLayer_SUPERMAP_MAP_datasource' , ( done ) => {
641641 let options = {
642642 server : server
643643 } ;
@@ -671,7 +671,7 @@ describe('mapboxgl_WebMap', () => {
671671 } ) ;
672672 } ) ;
673673
674- xit ( 'createThemeLayer_SUPERMAP_MAP' , ( done ) => {
674+ it ( 'createThemeLayer_SUPERMAP_MAP' , ( done ) => {
675675 let options = {
676676 server : server
677677 } ;
@@ -700,7 +700,7 @@ describe('mapboxgl_WebMap', () => {
700700 } ) ;
701701 } ) ;
702702
703- xit ( 'createThemeLayer_SUPERMAPREST_DATA' , ( done ) => {
703+ it ( 'createThemeLayer_SUPERMAPREST_DATA' , ( done ) => {
704704 let options = {
705705 server : server
706706 } ;
@@ -732,7 +732,7 @@ describe('mapboxgl_WebMap', () => {
732732 } ) ;
733733 } ) ;
734734
735- xit ( 'WMS' , ( done ) => {
735+ it ( 'WMS' , ( done ) => {
736736 let options = {
737737 server : server
738738 } ;
@@ -761,7 +761,7 @@ describe('mapboxgl_WebMap', () => {
761761 } ) ;
762762 } ) ;
763763
764- xit ( 'getRangeStyleGroup' , ( done ) => {
764+ it ( 'getRangeStyleGroup' , ( done ) => {
765765 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
766766 if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
767767 return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -800,7 +800,7 @@ describe('mapboxgl_WebMap', () => {
800800 } ) ;
801801 } ) ;
802802
803- xit ( 'dashStyle' , ( done ) => {
803+ it ( 'dashStyle' , ( done ) => {
804804 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
805805 if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
806806 return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -837,7 +837,7 @@ describe('mapboxgl_WebMap', () => {
837837 } ) ;
838838 } ) ;
839839
840- xit ( 'vector_svg' , ( done ) => {
840+ it ( 'vector_svg' , ( done ) => {
841841 let options = {
842842 server : server
843843 } ;
@@ -875,7 +875,7 @@ describe('mapboxgl_WebMap', () => {
875875 done ( ) ;
876876 } ) ;
877877 } ) ;
878- xit ( 'vector_symbol' , ( done ) => {
878+ it ( 'vector_symbol' , ( done ) => {
879879 let options = {
880880 server : server
881881 } ;
@@ -899,7 +899,7 @@ describe('mapboxgl_WebMap', () => {
899899 done ( ) ;
900900 } ) ;
901901 } ) ;
902- xit ( '_getFiterFeatures' , ( done ) => {
902+ it ( '_getFiterFeatures' , ( done ) => {
903903 let options = {
904904 server : server
905905 } ;
@@ -925,7 +925,7 @@ describe('mapboxgl_WebMap', () => {
925925 done ( ) ;
926926 } ) ;
927927 } ) ;
928- xit ( 'datavizWebMap_WMTS' , ( done ) => {
928+ it ( 'datavizWebMap_WMTS' , ( done ) => {
929929 let options = {
930930 server : server
931931 } ;
@@ -945,7 +945,7 @@ describe('mapboxgl_WebMap', () => {
945945 done ( ) ;
946946 } ) ;
947947 } ) ;
948- xit ( 'datavizWebMap_WMTS_Custom' , ( done ) => {
948+ it ( 'datavizWebMap_WMTS_Custom' , ( done ) => {
949949 let options = {
950950 server : server
951951 } ;
@@ -972,7 +972,7 @@ describe('mapboxgl_WebMap', () => {
972972 } ) ;
973973 } ) ;
974974
975- xit ( 'initialize_MVT' , ( done ) => {
975+ it ( 'initialize_MVT' , ( done ) => {
976976 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
977977 if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
978978 return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -1017,7 +1017,7 @@ describe('mapboxgl_WebMap', () => {
10171017 } , 1000 ) ;
10181018 } ) ;
10191019 } ) ;
1020- xit ( 'createMarkerLayer_svg' , ( done ) => {
1020+ it ( 'createMarkerLayer_svg' , ( done ) => {
10211021 let options = {
10221022 server : server
10231023 } ;
@@ -1044,7 +1044,7 @@ describe('mapboxgl_WebMap', () => {
10441044 } ) ;
10451045 } ) ;
10461046
1047- xit ( 'switch map and reset center zoom CRS' , ( done ) => {
1047+ it ( 'switch map and reset center zoom CRS' , ( done ) => {
10481048 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
10491049 if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
10501050 return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -1155,7 +1155,7 @@ describe('mapboxgl_WebMap', () => {
11551155 datavizWebmap . once ( 'mapcreatesucceeded' , callback ) ;
11561156 } ) ;
11571157
1158- xit ( 'copy layer' , ( done ) => {
1158+ it ( 'copy layer' , ( done ) => {
11591159 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
11601160 if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
11611161 return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -1209,7 +1209,7 @@ describe('mapboxgl_WebMap', () => {
12091209 } ) ;
12101210 } ) ;
12111211
1212- xit ( 'test mapstyle checkSameLayer' , ( done ) => {
1212+ it ( 'test mapstyle checkSameLayer' , ( done ) => {
12131213 const commonOption = {
12141214 server : 'http://fack:8190/iportal/' ,
12151215 target : 'map' ,
@@ -1260,7 +1260,7 @@ describe('mapboxgl_WebMap', () => {
12601260 datavizWebmap . once ( 'mapcreatesucceeded' , callback ) ;
12611261 } ) ;
12621262
1263- xit ( 'toggle mapstyle layers visible' , ( done ) => {
1263+ it ( 'toggle mapstyle layers visible' , ( done ) => {
12641264 const commonOption = {
12651265 server : 'http://fack:8190/iportal/' ,
12661266 target : 'map' ,
@@ -1285,7 +1285,7 @@ describe('mapboxgl_WebMap', () => {
12851285 datavizWebmap . once ( 'mapcreatesucceeded' , callback ) ;
12861286 } ) ;
12871287
1288- xit ( 'rectifyLayersOrder' , ( done ) => {
1288+ it ( 'rectifyLayersOrder' , ( done ) => {
12891289 const commonOption = {
12901290 server : 'http://fack:8190/iportal/' ,
12911291 target : 'map' ,
@@ -1304,7 +1304,7 @@ describe('mapboxgl_WebMap', () => {
13041304 datavizWebmap . once ( 'mapcreatesucceeded' , callback ) ;
13051305 } ) ;
13061306
1307- xit ( 'getWebMapType' , ( done ) => {
1307+ it ( 'getWebMapType' , ( done ) => {
13081308 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
13091309 if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
13101310 return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -1341,7 +1341,7 @@ describe('mapboxgl_WebMap', () => {
13411341 datavizWebmap . once ( 'mapcreatesucceeded' , callback ) ;
13421342 } ) ;
13431343
1344- xit ( 'when builtIn crs was defined, dont set repeat' , ( done ) => {
1344+ it ( 'when builtIn crs was defined, dont set repeat' , ( done ) => {
13451345 const originCrs = mapboxgl . CRS . get ( 'EPSG:3857' ) ;
13461346 const crsSetSpy = spyOn ( mapboxgl . CRS , 'set' ) . and . callThrough ( ) ;
13471347 const commonOption = {
@@ -1358,7 +1358,7 @@ describe('mapboxgl_WebMap', () => {
13581358 } ) ;
13591359 } ) ;
13601360
1361- xit ( 'when uncommon crs was defined, dont set repeat' , ( done ) => {
1361+ it ( 'when uncommon crs was defined, dont set repeat' , ( done ) => {
13621362 const wkt_4222 = 'GEOGCS["Beijing 1954",DATUM["Beijing_1954",SPHEROID["Krassowsky 1940",6378245,298.3],TOWGS84[15.8,-154.4,-82.3,0,0,0,0]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4222"]]' ;
13631363 const epsgCode = 'EPSG:4222' ;
13641364 const originCrs = mapboxgl . CRS . get ( epsgCode ) ;
@@ -1409,7 +1409,7 @@ describe('mapboxgl_WebMap', () => {
14091409 } ) ;
14101410 } ) ;
14111411
1412- xit ( 'test transformRequest when url includes iportalproxy' , ( done ) => {
1412+ it ( 'test transformRequest when url includes iportalproxy' , ( done ) => {
14131413 const iportalServiceProxyUrl = 'http://localhost:8195/portalproxy' ;
14141414 const tileCustomRequestHeaders = { 'Authorization' : 'test token' } ;
14151415 const commonOption = {
0 commit comments