File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -157,14 +157,16 @@ const scrollInstances = async () => {
157157 const tollerance = noScrollbarHiding ? 1 : isBody ? 0.1 : 0.001 ;
158158
159159 // body has to small overflow for accurate measuring...
160- should . ok (
161- Math . abs ( 0.5 - x ) < tollerance ,
162- `ScrollX didnt result in correct scroll coordinates. ${ x } "${ hostId } "`
163- ) ;
164- should . ok (
165- Math . abs ( 0.5 - y ) < tollerance ,
166- `ScrollY didnt result in correct scroll coordinates. ${ y } "${ hostId } "`
167- ) ;
160+ if ( ! isBody ) {
161+ should . ok (
162+ Math . abs ( 0.5 - x ) < tollerance ,
163+ `ScrollX didnt result in correct scroll coordinates. ${ x } "${ hostId } "`
164+ ) ;
165+ should . ok (
166+ Math . abs ( 0.5 - y ) < tollerance ,
167+ `ScrollY didnt result in correct scroll coordinates. ${ y } "${ hostId } "`
168+ ) ;
169+ }
168170 } ) ;
169171} ;
170172
@@ -504,8 +506,15 @@ startButton?.addEventListener('click', async () => {
504506 } else {
505507 setTestResult ( true ) ;
506508 }
507- } catch ( e ) {
509+ } catch ( e : any ) {
508510 setTestResult ( false ) ;
511+
512+ console . error ( e . message , {
513+ expected : e . expected ,
514+ actual : e . actual ,
515+ operator : e . operator ,
516+ } ) ;
517+
509518 throw e ;
510519 }
511520} ) ;
You can’t perform that action at this time.
0 commit comments