@@ -58,40 +58,40 @@ suite('grabbable', function () {
5858 } )
5959 test ( 'position updates during grab' , function ( ) {
6060 const myGrabbable = this . el . components . grabbable
61- assert . deepEqual ( this . el . getAttribute ( 'position' ) , coord ( '0 0 0' ) )
61+ assert . isTrue ( this . el . getAttribute ( 'position' ) . equals ( coord ( '0 0 0' ) ) )
6262 myGrabbable . start ( { detail : { hand : this . hand } } )
6363 /* with render loop stubbed out, need to force ticks */
6464 myGrabbable . tick ( )
6565 this . hand . setAttribute ( 'position' , '1 1 1' )
6666 myGrabbable . tick ( )
67- assert . deepEqual ( this . el . getAttribute ( 'position' ) , coord ( '1 1 1' ) )
67+ assert . isTrue ( this . el . getAttribute ( 'position' ) . equals ( coord ( '1 1 1' ) ) )
6868 } )
6969 test (
7070 'position does not update during grab when usePhysics set to "only"' ,
7171 function ( ) {
7272 const posStub = this . sinon . stub ( this . hand , 'getAttribute' )
7373 const myGrabbable = this . el . components . grabbable
74- assert . deepEqual ( this . el . getAttribute ( 'position' ) , coord ( '0 0 0' ) )
74+ assert . isTrue ( this . el . getAttribute ( 'position' ) . equals ( coord ( '0 0 0' ) ) )
7575 posStub . withArgs ( 'position' )
7676 . onFirstCall ( ) . returns ( coord ( '0 0 0' ) )
7777 . onSecondCall ( ) . returns ( coord ( '1 1 1' ) )
7878 myGrabbable . data . usePhysics = 'only'
7979 myGrabbable . start ( { detail : { hand : this . hand } } )
8080 myGrabbable . tick ( )
81- assert . deepEqual ( this . el . getAttribute ( 'position' ) , coord ( '0 0 0' ) )
81+ assert . isTrue ( this . el . getAttribute ( 'position' ) . equals ( coord ( '0 0 0' ) ) )
8282 } )
8383 test ( 'updates cease on release event' , function ( ) {
8484 const posStub = this . sinon . stub ( this . hand , 'getAttribute' )
8585 const myGrabbable = this . el . components . grabbable
86- assert . deepEqual ( this . el . getAttribute ( 'position' ) , coord ( '0 0 0' ) )
86+ assert . isTrue ( this . el . getAttribute ( 'position' ) . equals ( coord ( '0 0 0' ) ) )
8787 posStub . withArgs ( 'position' )
8888 . onFirstCall ( ) . returns ( coord ( '0 0 0' ) )
8989 . onSecondCall ( ) . returns ( coord ( '1 1 1' ) )
9090 myGrabbable . start ( { detail : { hand : this . hand } } )
9191 myGrabbable . tick ( )
9292 myGrabbable . end ( { detail : { hand : this . hand } } )
9393 myGrabbable . tick ( )
94- assert . deepEqual ( this . el . getAttribute ( 'position' ) , coord ( '0 0 0' ) )
94+ assert . isTrue ( this . el . getAttribute ( 'position' ) . equals ( coord ( '0 0 0' ) ) )
9595 assert . notOk ( this . el . is ( myGrabbable . GRABBED_STATE ) )
9696 assert . notOk ( myGrabbable . grabbed )
9797 assert . notOk ( myGrabbable . grabber )
0 commit comments