@@ -3,14 +3,14 @@ import {
33} from '../../../src/openlayers/overlay/VectorTileSuperMapRest' ;
44import {
55 FetchRequest
6- } from '../../../src/ common/util/FetchRequest' ;
6+ } from '@supermap/iclient- common/util/FetchRequest' ;
77import Map from 'ol/Map' ;
88import View from 'ol/View' ;
99import MVT from 'ol/format/MVT' ;
1010import Feature from 'ol/Feature' ;
1111import VectorTileLayer from 'ol/layer/VectorTile' ;
1212
13- describe ( 'openlayers_VectorTileSuperMapRest ' , ( ) => {
13+ describe ( 'openlayers_VectorTileSuperMapRest_mapboxStyle ' , ( ) => {
1414 var url = GlobeParameter . californiaURL
1515 var originalTimeout ;
1616 var testDiv , map , vectorLayer ;
@@ -71,9 +71,9 @@ describe('openlayers_VectorTileSuperMapRest', () => {
7171 format : format
7272 } )
7373 } ) ;
74- spyOn ( vectorLayer . getSource ( ) , 'tileUrlFunction ' ) . and . callThrough ( ) ;
74+ spyOn ( vectorLayer . getSource ( ) , 'tileLoadFunction ' ) . and . callThrough ( ) ;
7575 setTimeout ( ( ) => {
76- expect ( vectorLayer . getSource ( ) . tileUrlFunction . calls . count ( ) ) . toEqual ( 8 )
76+ expect ( vectorLayer . getSource ( ) . tileLoadFunction . calls . count ( ) ) . toEqual ( 4 )
7777 done ( ) ;
7878 } , 2000 ) ;
7979 map . addLayer ( vectorLayer ) ;
@@ -92,10 +92,10 @@ describe('openlayers_VectorTileSuperMapRest', () => {
9292 format : format
9393 } )
9494 } ) ;
95- spyOn ( vectorLayer . getSource ( ) , 'tileUrlFunction ' ) . and . callThrough ( ) ;
95+ spyOn ( vectorLayer . getSource ( ) , 'tileLoadFunction ' ) . and . callThrough ( ) ;
9696 setTimeout ( ( ) => {
9797 expect ( vectorLayer . getSource ( ) . _tileUrl ) . toContain ( "California" ) ;
98- expect ( vectorLayer . getSource ( ) . tileUrlFunction . calls . count ( ) ) . toEqual ( 8 )
98+ expect ( vectorLayer . getSource ( ) . tileLoadFunction . calls . count ( ) ) . toEqual ( 4 )
9999 done ( ) ;
100100 } , 2000 ) ;
101101 map . addLayer ( vectorLayer ) ;
0 commit comments