@@ -38,7 +38,7 @@ afterEach(() => {
3838
3939test ( "touch1" , ( ) => {
4040 interaction . processEvent ( createTouchEvent ( "touchstart" , 3 , canvas , 11 , 23 , 11 , 23 ) ) ;
41- expect ( interaction . fsm . getConccurFSMs ( )
41+ expect ( interaction . fsm . conccurFSMs
4242 . filter ( fsm => fsm . started ) ) . toHaveLength ( 1 ) ;
4343 expect ( interaction . isRunning ( ) ) . toBeFalsy ( ) ;
4444 expect ( handler . fsmStarts ) . not . toHaveBeenCalled ( ) ;
@@ -57,7 +57,7 @@ test("touch1 data", () => {
5757test ( "touch2" , ( ) => {
5858 interaction . processEvent ( createTouchEvent ( "touchstart" , 1 , canvas , 11 , 23 , 11 , 23 ) ) ;
5959 interaction . processEvent ( createTouchEvent ( "touchstart" , 2 , canvas , 11 , 23 , 11 , 23 ) ) ;
60- expect ( interaction . fsm . getConccurFSMs ( )
60+ expect ( interaction . fsm . conccurFSMs
6161 . filter ( fsm => fsm . started ) ) . toHaveLength ( 2 ) ;
6262 expect ( interaction . isRunning ( ) ) . toBeFalsy ( ) ;
6363 expect ( handler . fsmStarts ) . not . toHaveBeenCalled ( ) ;
@@ -80,7 +80,7 @@ test("touch3", () => {
8080 interaction . processEvent ( createTouchEvent ( "touchstart" , 1 , canvas , 11 , 23 , 11 , 23 ) ) ;
8181 interaction . processEvent ( createTouchEvent ( "touchstart" , 3 , canvas , 21 , 13 , 21 , 13 ) ) ;
8282 interaction . processEvent ( createTouchEvent ( "touchstart" , 2 , canvas , 210 , 130 , 210 , 130 ) ) ;
83- expect ( interaction . fsm . getConccurFSMs ( )
83+ expect ( interaction . fsm . conccurFSMs
8484 . filter ( fsm => fsm . started ) ) . toHaveLength ( 3 ) ;
8585 expect ( interaction . isRunning ( ) ) . toBeTruthy ( ) ;
8686 expect ( handler . fsmStarts ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -106,8 +106,7 @@ test("touch3 with one error event", () => {
106106 interaction . processEvent ( createTouchEvent ( "touchstart" , 1 , canvas , 11 , 23 , 11 , 23 ) ) ;
107107 interaction . processEvent ( createTouchEvent ( "touchstart" , 3 , canvas , 21 , 13 , 21 , 13 ) ) ;
108108 interaction . processEvent ( createTouchEvent ( "touchstart" , 3 , canvas , 210 , 130 , 210 , 130 ) ) ;
109- expect ( interaction . fsm . getConccurFSMs ( )
110- . filter ( fsm => fsm . started ) ) . toHaveLength ( 2 ) ;
109+ expect ( interaction . fsm . conccurFSMs . filter ( fsm => fsm . started ) ) . toHaveLength ( 2 ) ;
111110 expect ( interaction . isRunning ( ) ) . toBeFalsy ( ) ;
112111 expect ( handler . fsmStarts ) . not . toHaveBeenCalled ( ) ;
113112 expect ( handler . fsmUpdates ) . not . toHaveBeenCalled ( ) ;
@@ -218,9 +217,9 @@ test("touch starts", () => {
218217 . touchstart ( { } , [ { "identifier" : 1 , "screenX" : 50 , "screenY" : 20 , "clientX" : 100 , "clientY" : 200 } ] , 5000 )
219218 . touchstart ( { } , [ { "identifier" : 2 , "screenX" : 50 , "screenY" : 20 , "clientX" : 100 , "clientY" : 200 } ] , 5000 ) ;
220219
221- expect ( interaction . fsm . getConccurFSMs ( ) [ 0 ] . started ) . toBeTruthy ( ) ;
222- expect ( interaction . fsm . getConccurFSMs ( ) [ 1 ] . started ) . toBeTruthy ( ) ;
223- expect ( interaction . fsm . getConccurFSMs ( ) [ 2 ] . started ) . toBeTruthy ( ) ;
220+ expect ( interaction . fsm . conccurFSMs [ 0 ] . started ) . toBeTruthy ( ) ;
221+ expect ( interaction . fsm . conccurFSMs [ 1 ] . started ) . toBeTruthy ( ) ;
222+ expect ( interaction . fsm . conccurFSMs [ 2 ] . started ) . toBeTruthy ( ) ;
224223 expect ( interaction . fsm . started ) . toBeTruthy ( ) ;
225224} ) ;
226225
@@ -238,9 +237,9 @@ test("touchs not all started", () => {
238237 robot ( canvas )
239238 . touchstart ( { } , [ { "identifier" : 3 , "screenX" : 50 , "screenY" : 20 , "clientX" : 100 , "clientY" : 200 } ] , 5000 ) ;
240239
241- expect ( interaction . fsm . getConccurFSMs ( ) [ 0 ] . started ) . toBeTruthy ( ) ;
242- expect ( interaction . fsm . getConccurFSMs ( ) [ 1 ] . started ) . toBeFalsy ( ) ;
243- expect ( interaction . fsm . getConccurFSMs ( ) [ 2 ] . started ) . toBeFalsy ( ) ;
240+ expect ( interaction . fsm . conccurFSMs [ 0 ] . started ) . toBeTruthy ( ) ;
241+ expect ( interaction . fsm . conccurFSMs [ 1 ] . started ) . toBeFalsy ( ) ;
242+ expect ( interaction . fsm . conccurFSMs [ 2 ] . started ) . toBeFalsy ( ) ;
244243 expect ( interaction . fsm . started ) . toBeFalsy ( ) ;
245244} ) ;
246245
0 commit comments