@@ -44,7 +44,7 @@ suite('cursor', function () {
4444 assert . ok ( el . is ( 'cursor-hovering' ) ) ;
4545 assert . ok ( intersectedEl . is ( 'cursor-hovered' ) ) ;
4646 el . removeAttribute ( 'cursor' ) ;
47- process . nextTick ( function ( ) {
47+ setTimeout ( function ( ) {
4848 assert . notOk ( el . is ( 'cursor-hovering' ) ) ;
4949 assert . notOk ( intersectedEl . is ( 'cursor-hovered' ) ) ;
5050 done ( ) ;
@@ -59,15 +59,15 @@ suite('cursor', function () {
5959 } ) ;
6060 assert . ok ( el . is ( 'cursor-fusing' ) ) ;
6161 el . removeAttribute ( 'cursor' ) ;
62- process . nextTick ( function ( ) {
62+ setTimeout ( function ( ) {
6363 assert . notOk ( el . is ( 'cursor-fusing' ) ) ;
6464 done ( ) ;
6565 } ) ;
6666 } ) ;
6767
6868 test ( 'removes intersection listener' , function ( done ) {
6969 el . removeAttribute ( 'cursor' ) ;
70- process . nextTick ( function ( ) {
70+ setTimeout ( function ( ) {
7171 el . emit ( 'raycaster-intersection' , {
7272 intersections : [ intersection ] ,
7373 els : [ intersectedEl ]
@@ -262,7 +262,7 @@ suite('cursor', function () {
262262 els : [ furtherIntersectedEl ]
263263 } ) ;
264264
265- process . nextTick ( function ( ) {
265+ setTimeout ( function ( ) {
266266 assert . equal ( el . components . cursor . intersectedEl , nearerIntersectedEl ) ;
267267 done ( ) ;
268268 } ) ;
@@ -405,7 +405,7 @@ suite('cursor', function () {
405405 event . clientY = 5 ;
406406 el . setAttribute ( 'cursor' , 'rayOrigin' , 'mouse' ) ;
407407 el . sceneEl . canvas . dispatchEvent ( event ) ;
408- process . nextTick ( function ( ) {
408+ setTimeout ( function ( ) {
409409 var raycaster = el . getAttribute ( 'raycaster' ) ;
410410 assert . notEqual ( raycaster . direction . x , 0 ) ;
411411 done ( ) ;
@@ -417,7 +417,7 @@ suite('cursor', function () {
417417 event . touches = { item : function ( ) { return { clientX : 5 , clientY : 5 } ; } } ;
418418 el . setAttribute ( 'cursor' , 'rayOrigin' , 'mouse' ) ;
419419 el . sceneEl . canvas . dispatchEvent ( event ) ;
420- process . nextTick ( function ( ) {
420+ setTimeout ( function ( ) {
421421 var raycaster = el . getAttribute ( 'raycaster' ) ;
422422 assert . notEqual ( raycaster . direction . x , 0 ) ;
423423 done ( ) ;
0 commit comments