@@ -659,7 +659,7 @@ describe('Scrollbar Chart ', () => {
659659 let thumbEle : Element = document . getElementById ( 'container_scrollBarThumb_primaryXAxis' ) ;
660660 let thumbX : string = ( parseFloat ( thumbEle . getAttribute ( 'x' ) ) . toFixed ( 2 ) ) . toString ( ) ;
661661 let thumbWidth : string = Math . round ( ( parseFloat ( thumbEle . getAttribute ( 'width' ) ) ) ) . toLocaleString ( ) ;
662- expect ( thumbX === '324.56' || thumbX === '209.10' ) . toBe ( true ) ;
662+ expect ( thumbX === '324.56' || thumbX === '209.10' || thumbX === '306.23' ) . toBe ( true ) ;
663663 expect ( thumbWidth === '74' || thumbWidth === '60' || thumbWidth === '49' ) . toBe ( true ) ;
664664 done ( ) ;
665665 } ;
@@ -686,7 +686,7 @@ describe('Scrollbar Chart ', () => {
686686 let thumbEle : Element = document . getElementById ( 'container_scrollBarThumb_primaryXAxis' ) ;
687687 let thumbX : string = ( parseFloat ( thumbEle . getAttribute ( 'x' ) ) . toFixed ( 2 ) ) . toString ( ) ;
688688 let thumbWidth : string = Math . round ( ( parseFloat ( thumbEle . getAttribute ( 'width' ) ) ) ) . toLocaleString ( ) ;
689- expect ( thumbX === '210.95' || thumbX === '334.66' ) . toBe ( true ) ;
689+ expect ( thumbX === '210.95' || thumbX === '334.66' || thumbX === '315.77' ) . toBe ( true ) ;
690690 expect ( thumbWidth === '40' ) . toBe ( true ) ;
691691 done ( ) ;
692692 } ;
@@ -712,7 +712,7 @@ describe('Scrollbar Chart ', () => {
712712 let thumbEle : Element = document . getElementById ( 'container_scrollBarThumb_primaryXAxis' ) ;
713713 let thumbX : string = ( parseFloat ( thumbEle . getAttribute ( 'x' ) ) . toFixed ( 2 ) ) . toString ( ) ;
714714 let thumbWidth : string = Math . round ( ( parseFloat ( thumbEle . getAttribute ( 'width' ) ) ) ) . toLocaleString ( ) ;
715- expect ( thumbX === '212.76' || thumbX === '217.16' || thumbX === '337.73' ) . toBe ( true ) ;
715+ expect ( thumbX === '212.76' || thumbX === '217.16' || thumbX === '337.73' || thumbX === '318.67' ) . toBe ( true ) ;
716716 expect ( thumbWidth === '40' ) . toBe ( true ) ;
717717 done ( ) ;
718718 } ;
@@ -1200,7 +1200,7 @@ describe('Scrollbar Chart ', () => {
12001200 } ;
12011201 chartObj . axisCollections [ 0 ] . zoomingScrollBar . scrollMouseWheel ( < WheelEvent > wheelArgs ) ;
12021202 let thumbEle : Element = document . getElementById ( 'container_scrollBarThumb_primaryXAxis' ) ;
1203- expect ( thumbEle . getAttribute ( 'x' ) === '345.36905390315076' || thumbEle . getAttribute ( 'x' ) === '345.000412371134' || thumbEle . getAttribute ( 'x' ) === '17.699999999999996' ) . toBe ( true ) ;
1203+ expect ( thumbEle . getAttribute ( 'x' ) === '345.36905390315076' || thumbEle . getAttribute ( 'x' ) === '345.000412371134' || thumbEle . getAttribute ( 'x' ) === '17.699999999999996' || thumbEle . getAttribute ( 'x' ) === '16.70169204737732' ) . toBe ( true ) ;
12041204 expect ( thumbEle . getAttribute ( 'width' ) === '99.89999999999999' || thumbEle . getAttribute ( 'width' ) === '100.38' ) . toBe ( true ) ;
12051205 done ( ) ;
12061206 } ;
@@ -1649,3 +1649,4 @@ describe('Inversed Scrollbar ', function () {
16491649 } ) ;
16501650
16511651} ) ;
1652+
0 commit comments