@@ -730,8 +730,8 @@ describe('ResponderEventPlugin', function() {
730
730
731
731
// Parent is responder, and responder is transferred by a second touch start
732
732
config . startShouldSetResponder . captured . grandParent = { order : 0 , returnVal : true } ;
733
- config . responderTerminationRequest . parent = { order : 1 , returnVal : true } ;
734
- config . responderGrant . grandParent = { order : 2 } ;
733
+ config . responderGrant . grandParent = { order : 1 } ;
734
+ config . responderTerminationRequest . parent = { order : 2 , returnVal : true } ;
735
735
config . responderTerminate . parent = { order : 3 } ;
736
736
config . responderStart . grandParent = { order : 4 } ;
737
737
run ( config , three , startConfig ( three . child , [ three . child , three . child ] , [ 1 ] ) ) ;
@@ -899,10 +899,11 @@ describe('ResponderEventPlugin', function() {
899
899
config . moveShouldSetResponder . captured . grandParent = { order : 0 , returnVal : false } ;
900
900
config . moveShouldSetResponder . captured . parent = { order : 1 , returnVal : false } ;
901
901
config . moveShouldSetResponder . bubbled . parent = { order : 2 , returnVal : true } ;
902
- config . responderTerminationRequest . child = { order : 3 , returnVal : false } ;
903
- config . responderReject . parent = { order : 4 } ;
902
+ config . responderGrant . parent = { order : 3 } ;
903
+ config . responderTerminationRequest . child = { order : 4 , returnVal : false } ;
904
+ config . responderReject . parent = { order : 5 } ;
904
905
// The start/move should occur on the original responder if new one is rejected
905
- config . responderMove . child = { order : 5 } ;
906
+ config . responderMove . child = { order : 6 } ;
906
907
907
908
var touchConfig =
908
909
moveConfig ( three . child , [ three . child ] , [ 0 ] ) ;
@@ -913,10 +914,11 @@ describe('ResponderEventPlugin', function() {
913
914
config . startShouldSetResponder . captured . grandParent = { order : 0 , returnVal : false } ;
914
915
config . startShouldSetResponder . captured . parent = { order : 1 , returnVal : false } ;
915
916
config . startShouldSetResponder . bubbled . parent = { order : 2 , returnVal : true } ;
916
- config . responderTerminationRequest . child = { order : 3 , returnVal : false } ;
917
- config . responderReject . parent = { order : 4 } ;
917
+ config . responderGrant . parent = { order : 3 } ;
918
+ config . responderTerminationRequest . child = { order : 4 , returnVal : false } ;
919
+ config . responderReject . parent = { order : 5 } ;
918
920
// The start/move should occur on the original responder if new one is rejected
919
- config . responderStart . child = { order : 5 } ;
921
+ config . responderStart . child = { order : 6 } ;
920
922
921
923
touchConfig =
922
924
startConfig ( three . child , [ three . child , three . child ] , [ 1 ] ) ;
@@ -946,8 +948,9 @@ describe('ResponderEventPlugin', function() {
946
948
config . scrollShouldSetResponder . captured . grandParent = { order : 0 , returnVal : false } ;
947
949
config . scrollShouldSetResponder . captured . parent = { order : 1 , returnVal : false } ;
948
950
config . scrollShouldSetResponder . bubbled . parent = { order : 2 , returnVal : true } ;
949
- config . responderTerminationRequest . child = { order : 3 , returnVal : false } ;
950
- config . responderReject . parent = { order : 4 } ;
951
+ config . responderGrant . parent = { order : 3 } ;
952
+ config . responderTerminationRequest . child = { order : 4 , returnVal : false } ;
953
+ config . responderReject . parent = { order : 5 } ;
951
954
952
955
run ( config , three , {
953
956
topLevelType : topLevelTypes . topScroll ,
@@ -962,8 +965,8 @@ describe('ResponderEventPlugin', function() {
962
965
config . scrollShouldSetResponder . captured . grandParent = { order : 0 , returnVal : false } ;
963
966
config . scrollShouldSetResponder . captured . parent = { order : 1 , returnVal : false } ;
964
967
config . scrollShouldSetResponder . bubbled . parent = { order : 2 , returnVal : true } ;
965
- config . responderTerminationRequest . child = { order : 3 , returnVal : true } ;
966
- config . responderGrant . parent = { order : 4 } ;
968
+ config . responderGrant . parent = { order : 3 } ;
969
+ config . responderTerminationRequest . child = { order : 4 , returnVal : true } ;
967
970
config . responderTerminate . child = { order : 5 } ;
968
971
969
972
run ( config , three , {
0 commit comments