@@ -440,7 +440,7 @@ describe('gl tests', () => {
440440 return ;
441441 }
442442 hit = true ;
443- expect ( altitude ) . to . be . eql ( [ 3655.46240234375 , 1 ] ) ;
443+ expect ( altitude ) . to . be . eql ( [ 3653.89990234375 , 1 ] ) ;
444444 done ( ) ;
445445 }
446446
@@ -733,7 +733,7 @@ describe('gl tests', () => {
733733 const pixel = ctx . getImageData ( canvas . width / 2 , canvas . height / 2 , 1 , 1 ) ;
734734 expect ( pixel ) . to . be . eql ( { data : { '0' : 136 , '1' : 140 , '2' : 141 , '3' : 255 } } ) ;
735735 const altitude = group . queryTerrain ( map . getCenter ( ) ) ;
736- expect ( altitude ) . to . be . eql ( [ 3655.46240234375 , 1 ] ) ;
736+ expect ( altitude ) . to . be . eql ( [ 3653.89990234375 , 1 ] ) ;
737737 done ( ) ;
738738 } ) ;
739739 } ) ;
@@ -968,7 +968,6 @@ describe('gl tests', () => {
968968 } )
969969 ] ;
970970 const terrain = {
971- zoomOffset : - 1 ,
972971 fadeAnimation : false ,
973972 maxAvailableZoom : 14 ,
974973 type : 'cesium' ,
@@ -983,7 +982,7 @@ describe('gl tests', () => {
983982 const canvas = map . getRenderer ( ) . canvas ;
984983 const ctx = canvas . getContext ( '2d' ) ;
985984 const pixel = ctx . getImageData ( canvas . width / 2 , canvas . height / 2 , 1 , 1 ) ;
986- expect ( pixel ) . to . be . eql ( { data : { '0' : 90 , '1' : 92 , '2' : 95 , '3' : 255 } } ) ;
985+ expect ( pixel ) . to . be . eql ( { data : { '0' : 91 , '1' : 93 , '2' : 96 , '3' : 255 } } ) ;
987986 done ( ) ;
988987 } ) ;
989988 } ) ;
@@ -1129,7 +1128,7 @@ describe('gl tests', () => {
11291128 const canvas = map . getRenderer ( ) . canvas ;
11301129 const ctx = canvas . getContext ( '2d' ) ;
11311130 const pixel = ctx . getImageData ( canvas . width / 2 , canvas . height / 2 , 1 , 1 ) ;
1132- expect ( pixel ) . to . be . eql ( { data : { '0' : 184 , '1' : 83 , '2' : 104 , '3' : 255 } } ) ;
1131+ expect ( pixel ) . to . be . eql ( { data : { '0' : 194 , '1' : 98 , '2' : 117 , '3' : 255 } } ) ;
11331132 done ( ) ;
11341133 } ) ;
11351134 } ) ;
@@ -1151,8 +1150,6 @@ describe('gl tests', () => {
11511150 } )
11521151 ] ;
11531152 const terrain = {
1154- tileSystem : [ 1 , 1 , - 180 , - 90 ] ,
1155- zoomOffset : - 1 ,
11561153 type : 'cesium' ,
11571154 terrainWidth : 65 ,
11581155 urlTemplate : '#' ,
@@ -1250,7 +1247,7 @@ describe('gl tests', () => {
12501247 return ;
12511248 }
12521249 hit = true ;
1253- expect ( pickCoord . toArray ( ) ) . to . be . eql ( [ 91.07362103971157 , 29.75172649078853 , 4322.98890674798 ] ) ;
1250+ expect ( pickCoord . toArray ( ) ) . to . be . eql ( [ 91.07367661817864 , 29.751498692202283 , 4328.393288386729 ] ) ;
12541251 done ( ) ;
12551252 }
12561253 } ) ;
@@ -1374,7 +1371,7 @@ describe('gl tests', () => {
13741371 measuretool . fire ( 'drawstart' , { coordinate : center , containerPoint } ) ;
13751372 measuretool . fire ( 'mousemove' , { coordinate : center . add ( 0.001 , 0 ) , containerPoint : containerPoint . add ( 10 , 0 ) } ) ;
13761373 const result = measuretool . getMeasureResult ( ) ;
1377- expect ( result . toFixed ( 2 ) ) . to . be . eql ( 737.28 ) ;
1374+ expect ( result . toFixed ( 2 ) ) . to . be . above ( 700 ) ;
13781375 measuretool . clear ( ) ;
13791376 done ( ) ;
13801377 }
0 commit comments