@@ -41,7 +41,7 @@ describe('mapboxgl_WebMap', () => {
41
41
mapboxgl . proj4 = undefined ;
42
42
window . jsonsql = undefined ;
43
43
} ) ;
44
- xit ( 'initialize_TIANDITU_VEC' , ( done ) => {
44
+ it ( 'initialize_TIANDITU_VEC' , ( done ) => {
45
45
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
46
46
if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
47
47
return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -72,7 +72,7 @@ describe('mapboxgl_WebMap', () => {
72
72
} ) ;
73
73
} ) ;
74
74
75
- xit ( 'resize' , ( done ) => {
75
+ it ( 'resize' , ( done ) => {
76
76
let options = {
77
77
server : server
78
78
} ;
@@ -93,7 +93,7 @@ describe('mapboxgl_WebMap', () => {
93
93
done ( ) ;
94
94
} ) ;
95
95
} ) ;
96
- xit ( 'setMapId' , ( done ) => {
96
+ it ( 'setMapId' , ( done ) => {
97
97
let options = {
98
98
server : server
99
99
} ;
@@ -116,7 +116,7 @@ describe('mapboxgl_WebMap', () => {
116
116
} ) ;
117
117
} ) ;
118
118
} ) ;
119
- xit ( 'jsonsql' , ( done ) => {
119
+ it ( 'jsonsql' , ( done ) => {
120
120
let options = {
121
121
server : server
122
122
} ;
@@ -139,7 +139,7 @@ describe('mapboxgl_WebMap', () => {
139
139
} ) ;
140
140
} ) ;
141
141
142
- xit ( 'setWebMapOptions' , ( done ) => {
142
+ it ( 'setWebMapOptions' , ( done ) => {
143
143
let options = {
144
144
server : server
145
145
} ;
@@ -167,7 +167,7 @@ describe('mapboxgl_WebMap', () => {
167
167
} ) ;
168
168
} ) ;
169
169
170
- xit ( 'setMapOptions' , ( done ) => {
170
+ it ( 'setMapOptions' , ( done ) => {
171
171
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
172
172
if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
173
173
return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -203,7 +203,7 @@ describe('mapboxgl_WebMap', () => {
203
203
} ) ;
204
204
} ) ;
205
205
206
- xit ( 'initialize_TIANDITU_IMAGE' , ( done ) => {
206
+ it ( 'initialize_TIANDITU_IMAGE' , ( done ) => {
207
207
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
208
208
if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
209
209
return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -232,7 +232,7 @@ describe('mapboxgl_WebMap', () => {
232
232
} ) ;
233
233
} ) ;
234
234
235
- xit ( 'initialize_TIANDITU_TER' , ( done ) => {
235
+ it ( 'initialize_TIANDITU_TER' , ( done ) => {
236
236
let options = {
237
237
server : server
238
238
} ;
@@ -254,7 +254,7 @@ describe('mapboxgl_WebMap', () => {
254
254
} ) ;
255
255
} ) ;
256
256
257
- xit ( 'initialize_OPENSTREET' , ( done ) => {
257
+ it ( 'initialize_OPENSTREET' , ( done ) => {
258
258
let options = {
259
259
server : server
260
260
} ;
@@ -282,7 +282,7 @@ describe('mapboxgl_WebMap', () => {
282
282
} ) ;
283
283
} ) ;
284
284
285
- xit ( 'initialize_FAILD mapcreatefailed' , ( done ) => {
285
+ it ( 'initialize_FAILD mapcreatefailed' , ( done ) => {
286
286
let options = {
287
287
server : server
288
288
} ;
@@ -303,7 +303,7 @@ describe('mapboxgl_WebMap', () => {
303
303
} ) ;
304
304
} ) ;
305
305
306
- xit ( 'initialize_FAILD getmapfailed' , ( done ) => {
306
+ it ( 'initialize_FAILD getmapfailed' , ( done ) => {
307
307
let options = {
308
308
server : server
309
309
} ;
@@ -324,7 +324,7 @@ describe('mapboxgl_WebMap', () => {
324
324
} ) ;
325
325
} ) ;
326
326
327
- xit ( 'initialize_CLOUD mapcreatesucceeded' , ( done ) => {
327
+ it ( 'initialize_CLOUD mapcreatesucceeded' , ( done ) => {
328
328
let options = {
329
329
server : server
330
330
} ;
@@ -351,7 +351,7 @@ describe('mapboxgl_WebMap', () => {
351
351
} ) ;
352
352
} ) ;
353
353
354
- xit ( 'initialize_CLOUD addlayerssucceeded' , ( done ) => {
354
+ it ( 'initialize_CLOUD addlayerssucceeded' , ( done ) => {
355
355
let options = {
356
356
server : server
357
357
} ;
@@ -378,7 +378,7 @@ describe('mapboxgl_WebMap', () => {
378
378
} ) ;
379
379
} ) ;
380
380
381
- xit ( 'initialize_GOOGLE' , ( done ) => {
381
+ it ( 'initialize_GOOGLE' , ( done ) => {
382
382
let options = {
383
383
server : server
384
384
} ;
@@ -406,7 +406,7 @@ describe('mapboxgl_WebMap', () => {
406
406
} ) ;
407
407
} ) ;
408
408
409
- xit ( 'createThemeLayer_Vector_Basis' , ( done ) => {
409
+ it ( 'createThemeLayer_Vector_Basis' , ( done ) => {
410
410
let options = {
411
411
server : server
412
412
} ;
@@ -438,7 +438,7 @@ describe('mapboxgl_WebMap', () => {
438
438
} ) ;
439
439
} ) ;
440
440
441
- xit ( 'createThemeLayer_Vector_Basis_Line' , ( done ) => {
441
+ it ( 'createThemeLayer_Vector_Basis_Line' , ( done ) => {
442
442
let options = {
443
443
server : server
444
444
} ;
@@ -469,7 +469,7 @@ describe('mapboxgl_WebMap', () => {
469
469
} ) ;
470
470
} ) ;
471
471
472
- xit ( 'createThemeLayer_Vector_IMAGE' , ( done ) => {
472
+ it ( 'createThemeLayer_Vector_IMAGE' , ( done ) => {
473
473
let options = {
474
474
server : server
475
475
} ;
@@ -509,7 +509,7 @@ describe('mapboxgl_WebMap', () => {
509
509
} ) ;
510
510
} ) ;
511
511
512
- xit ( 'createThemeLayer_Unique' , ( done ) => {
512
+ it ( 'createThemeLayer_Unique' , ( done ) => {
513
513
let options = {
514
514
server : server
515
515
} ;
@@ -540,7 +540,7 @@ describe('mapboxgl_WebMap', () => {
540
540
} ) ;
541
541
} ) ;
542
542
543
- xit ( 'createThemeLayer_Range' , ( done ) => {
543
+ it ( 'createThemeLayer_Range' , ( done ) => {
544
544
let options = {
545
545
server : server
546
546
} ;
@@ -574,7 +574,7 @@ describe('mapboxgl_WebMap', () => {
574
574
} ) ;
575
575
} ) ;
576
576
577
- xit ( 'createThemeLayer_Heat' , ( done ) => {
577
+ it ( 'createThemeLayer_Heat' , ( done ) => {
578
578
//插件里面i未定义报错
579
579
let options = {
580
580
server : server
@@ -606,7 +606,7 @@ describe('mapboxgl_WebMap', () => {
606
606
} ) ;
607
607
} ) ;
608
608
609
- xit ( 'createThemeLayer_Marker' , ( done ) => {
609
+ it ( 'createThemeLayer_Marker' , ( done ) => {
610
610
let options = {
611
611
server : server
612
612
} ;
@@ -637,7 +637,7 @@ describe('mapboxgl_WebMap', () => {
637
637
} ) ;
638
638
} ) ;
639
639
640
- xit ( 'createThemeLayer_SUPERMAP_MAP_datasource' , ( done ) => {
640
+ it ( 'createThemeLayer_SUPERMAP_MAP_datasource' , ( done ) => {
641
641
let options = {
642
642
server : server
643
643
} ;
@@ -671,7 +671,7 @@ describe('mapboxgl_WebMap', () => {
671
671
} ) ;
672
672
} ) ;
673
673
674
- xit ( 'createThemeLayer_SUPERMAP_MAP' , ( done ) => {
674
+ it ( 'createThemeLayer_SUPERMAP_MAP' , ( done ) => {
675
675
let options = {
676
676
server : server
677
677
} ;
@@ -700,7 +700,7 @@ describe('mapboxgl_WebMap', () => {
700
700
} ) ;
701
701
} ) ;
702
702
703
- xit ( 'createThemeLayer_SUPERMAPREST_DATA' , ( done ) => {
703
+ it ( 'createThemeLayer_SUPERMAPREST_DATA' , ( done ) => {
704
704
let options = {
705
705
server : server
706
706
} ;
@@ -732,7 +732,7 @@ describe('mapboxgl_WebMap', () => {
732
732
} ) ;
733
733
} ) ;
734
734
735
- xit ( 'WMS' , ( done ) => {
735
+ it ( 'WMS' , ( done ) => {
736
736
let options = {
737
737
server : server
738
738
} ;
@@ -761,7 +761,7 @@ describe('mapboxgl_WebMap', () => {
761
761
} ) ;
762
762
} ) ;
763
763
764
- xit ( 'getRangeStyleGroup' , ( done ) => {
764
+ it ( 'getRangeStyleGroup' , ( done ) => {
765
765
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
766
766
if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
767
767
return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -800,7 +800,7 @@ describe('mapboxgl_WebMap', () => {
800
800
} ) ;
801
801
} ) ;
802
802
803
- xit ( 'dashStyle' , ( done ) => {
803
+ it ( 'dashStyle' , ( done ) => {
804
804
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
805
805
if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
806
806
return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -837,7 +837,7 @@ describe('mapboxgl_WebMap', () => {
837
837
} ) ;
838
838
} ) ;
839
839
840
- xit ( 'vector_svg' , ( done ) => {
840
+ it ( 'vector_svg' , ( done ) => {
841
841
let options = {
842
842
server : server
843
843
} ;
@@ -875,7 +875,7 @@ describe('mapboxgl_WebMap', () => {
875
875
done ( ) ;
876
876
} ) ;
877
877
} ) ;
878
- xit ( 'vector_symbol' , ( done ) => {
878
+ it ( 'vector_symbol' , ( done ) => {
879
879
let options = {
880
880
server : server
881
881
} ;
@@ -899,7 +899,7 @@ describe('mapboxgl_WebMap', () => {
899
899
done ( ) ;
900
900
} ) ;
901
901
} ) ;
902
- xit ( '_getFiterFeatures' , ( done ) => {
902
+ it ( '_getFiterFeatures' , ( done ) => {
903
903
let options = {
904
904
server : server
905
905
} ;
@@ -925,7 +925,7 @@ describe('mapboxgl_WebMap', () => {
925
925
done ( ) ;
926
926
} ) ;
927
927
} ) ;
928
- xit ( 'datavizWebMap_WMTS' , ( done ) => {
928
+ it ( 'datavizWebMap_WMTS' , ( done ) => {
929
929
let options = {
930
930
server : server
931
931
} ;
@@ -945,7 +945,7 @@ describe('mapboxgl_WebMap', () => {
945
945
done ( ) ;
946
946
} ) ;
947
947
} ) ;
948
- xit ( 'datavizWebMap_WMTS_Custom' , ( done ) => {
948
+ it ( 'datavizWebMap_WMTS_Custom' , ( done ) => {
949
949
let options = {
950
950
server : server
951
951
} ;
@@ -972,7 +972,7 @@ describe('mapboxgl_WebMap', () => {
972
972
} ) ;
973
973
} ) ;
974
974
975
- xit ( 'initialize_MVT' , ( done ) => {
975
+ it ( 'initialize_MVT' , ( done ) => {
976
976
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
977
977
if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
978
978
return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -1017,7 +1017,7 @@ describe('mapboxgl_WebMap', () => {
1017
1017
} , 1000 ) ;
1018
1018
} ) ;
1019
1019
} ) ;
1020
- xit ( 'createMarkerLayer_svg' , ( done ) => {
1020
+ it ( 'createMarkerLayer_svg' , ( done ) => {
1021
1021
let options = {
1022
1022
server : server
1023
1023
} ;
@@ -1044,7 +1044,7 @@ describe('mapboxgl_WebMap', () => {
1044
1044
} ) ;
1045
1045
} ) ;
1046
1046
1047
- xit ( 'switch map and reset center zoom CRS' , ( done ) => {
1047
+ it ( 'switch map and reset center zoom CRS' , ( done ) => {
1048
1048
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
1049
1049
if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
1050
1050
return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -1155,7 +1155,7 @@ describe('mapboxgl_WebMap', () => {
1155
1155
datavizWebmap . once ( 'mapcreatesucceeded' , callback ) ;
1156
1156
} ) ;
1157
1157
1158
- xit ( 'copy layer' , ( done ) => {
1158
+ it ( 'copy layer' , ( done ) => {
1159
1159
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
1160
1160
if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
1161
1161
return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -1209,7 +1209,7 @@ describe('mapboxgl_WebMap', () => {
1209
1209
} ) ;
1210
1210
} ) ;
1211
1211
1212
- xit ( 'test mapstyle checkSameLayer' , ( done ) => {
1212
+ it ( 'test mapstyle checkSameLayer' , ( done ) => {
1213
1213
const commonOption = {
1214
1214
server : 'http://fack:8190/iportal/' ,
1215
1215
target : 'map' ,
@@ -1260,7 +1260,7 @@ describe('mapboxgl_WebMap', () => {
1260
1260
datavizWebmap . once ( 'mapcreatesucceeded' , callback ) ;
1261
1261
} ) ;
1262
1262
1263
- xit ( 'toggle mapstyle layers visible' , ( done ) => {
1263
+ it ( 'toggle mapstyle layers visible' , ( done ) => {
1264
1264
const commonOption = {
1265
1265
server : 'http://fack:8190/iportal/' ,
1266
1266
target : 'map' ,
@@ -1285,7 +1285,7 @@ describe('mapboxgl_WebMap', () => {
1285
1285
datavizWebmap . once ( 'mapcreatesucceeded' , callback ) ;
1286
1286
} ) ;
1287
1287
1288
- xit ( 'rectifyLayersOrder' , ( done ) => {
1288
+ it ( 'rectifyLayersOrder' , ( done ) => {
1289
1289
const commonOption = {
1290
1290
server : 'http://fack:8190/iportal/' ,
1291
1291
target : 'map' ,
@@ -1304,7 +1304,7 @@ describe('mapboxgl_WebMap', () => {
1304
1304
datavizWebmap . once ( 'mapcreatesucceeded' , callback ) ;
1305
1305
} ) ;
1306
1306
1307
- xit ( 'getWebMapType' , ( done ) => {
1307
+ it ( 'getWebMapType' , ( done ) => {
1308
1308
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
1309
1309
if ( url . indexOf ( 'web/config/portal.json' ) > - 1 ) {
1310
1310
return Promise . resolve ( new Response ( JSON . stringify ( iportal_serviceProxy ) ) ) ;
@@ -1341,7 +1341,7 @@ describe('mapboxgl_WebMap', () => {
1341
1341
datavizWebmap . once ( 'mapcreatesucceeded' , callback ) ;
1342
1342
} ) ;
1343
1343
1344
- xit ( 'when builtIn crs was defined, dont set repeat' , ( done ) => {
1344
+ it ( 'when builtIn crs was defined, dont set repeat' , ( done ) => {
1345
1345
const originCrs = mapboxgl . CRS . get ( 'EPSG:3857' ) ;
1346
1346
const crsSetSpy = spyOn ( mapboxgl . CRS , 'set' ) . and . callThrough ( ) ;
1347
1347
const commonOption = {
@@ -1358,7 +1358,7 @@ describe('mapboxgl_WebMap', () => {
1358
1358
} ) ;
1359
1359
} ) ;
1360
1360
1361
- xit ( 'when uncommon crs was defined, dont set repeat' , ( done ) => {
1361
+ it ( 'when uncommon crs was defined, dont set repeat' , ( done ) => {
1362
1362
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"]]' ;
1363
1363
const epsgCode = 'EPSG:4222' ;
1364
1364
const originCrs = mapboxgl . CRS . get ( epsgCode ) ;
@@ -1409,7 +1409,7 @@ describe('mapboxgl_WebMap', () => {
1409
1409
} ) ;
1410
1410
} ) ;
1411
1411
1412
- xit ( 'test transformRequest when url includes iportalproxy' , ( done ) => {
1412
+ it ( 'test transformRequest when url includes iportalproxy' , ( done ) => {
1413
1413
const iportalServiceProxyUrl = 'http://localhost:8195/portalproxy' ;
1414
1414
const tileCustomRequestHeaders = { 'Authorization' : 'test token' } ;
1415
1415
const commonOption = {
0 commit comments