@@ -49,31 +49,31 @@ public async Task UIManagerModule_CustomEvents_Constants()
49
49
var module = await DispatcherHelpers . CallOnDispatcherAsync (
50
50
( ) => new UIManagerModule ( context , viewManagers , uiImplementationProvider , actionQueue ) ) ;
51
51
52
- var constants = module . Constants ;
53
-
54
- Assert . AreEqual ( "onSelect" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topSelect" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
55
- Assert . AreEqual ( "onSelectCapture" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topSelect" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
56
- Assert . AreEqual ( "onChange" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topChange" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
57
- Assert . AreEqual ( "onChangeCapture" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topChange" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
58
- Assert . AreEqual ( "onTouchStart" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topTouchStart" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
59
- Assert . AreEqual ( "onTouchStartCapture" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topTouchStart" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
60
- Assert . AreEqual ( "onTouchMove" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topTouchMove" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
61
- Assert . AreEqual ( "onTouchMoveCapture" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topTouchMove" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
62
- Assert . AreEqual ( "onTouchEnd" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topTouchEnd" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
63
- Assert . AreEqual ( "onTouchEndCapture" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topTouchEnd" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
64
- Assert . AreEqual ( "onMouseOver" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topMouseOver" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
65
- Assert . AreEqual ( "onMouseOverCapture" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topMouseOver" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
66
- Assert . AreEqual ( "onMouseOut" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topMouseOut" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
67
- Assert . AreEqual ( "onMouseOutCapture" , constants . GetMap ( "genericBubblingEventTypes " ) . GetMap ( "topMouseOut" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
68
-
69
- Assert . AreEqual ( "onSelectionChange" , constants . GetMap ( "genericDirectEventTypes " ) . GetMap ( "topSelectionChange" ) . GetValue ( "registrationName" ) ) ;
70
- Assert . AreEqual ( "onLoadingStart" , constants . GetMap ( "genericDirectEventTypes " ) . GetMap ( "topLoadingStart" ) . GetValue ( "registrationName" ) ) ;
71
- Assert . AreEqual ( "onLoadingFinish" , constants . GetMap ( "genericDirectEventTypes " ) . GetMap ( "topLoadingFinish" ) . GetValue ( "registrationName" ) ) ;
72
- Assert . AreEqual ( "onLoadingError" , constants . GetMap ( "genericDirectEventTypes " ) . GetMap ( "topLoadingError" ) . GetValue ( "registrationName" ) ) ;
73
- Assert . AreEqual ( "onLayout" , constants . GetMap ( "genericDirectEventTypes " ) . GetMap ( "topLayout" ) . GetValue ( "registrationName" ) ) ;
74
- Assert . AreEqual ( "onMouseEnter" , constants . GetMap ( "genericDirectEventTypes " ) . GetMap ( "topMouseEnter" ) . GetValue ( "registrationName" ) ) ;
75
- Assert . AreEqual ( "onMouseLeave" , constants . GetMap ( "genericDirectEventTypes " ) . GetMap ( "topMouseLeave" ) . GetValue ( "registrationName" ) ) ;
76
- Assert . AreEqual ( "onMessage" , constants . GetMap ( "genericDirectEventTypes " ) . GetMap ( "topMessage" ) . GetValue ( "registrationName" ) ) ;
52
+ var constants = module . Constants . GetMap ( "Test" ) ;
53
+
54
+ Assert . AreEqual ( "onSelect" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topSelect" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
55
+ Assert . AreEqual ( "onSelectCapture" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topSelect" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
56
+ Assert . AreEqual ( "onChange" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topChange" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
57
+ Assert . AreEqual ( "onChangeCapture" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topChange" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
58
+ Assert . AreEqual ( "onTouchStart" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topTouchStart" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
59
+ Assert . AreEqual ( "onTouchStartCapture" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topTouchStart" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
60
+ Assert . AreEqual ( "onTouchMove" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topTouchMove" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
61
+ Assert . AreEqual ( "onTouchMoveCapture" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topTouchMove" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
62
+ Assert . AreEqual ( "onTouchEnd" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topTouchEnd" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
63
+ Assert . AreEqual ( "onTouchEndCapture" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topTouchEnd" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
64
+ Assert . AreEqual ( "onMouseOver" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topMouseOver" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
65
+ Assert . AreEqual ( "onMouseOverCapture" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topMouseOver" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
66
+ Assert . AreEqual ( "onMouseOut" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topMouseOut" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "bubbled" ) ) ;
67
+ Assert . AreEqual ( "onMouseOutCapture" , constants . GetMap ( "bubblingEventTypes " ) . GetMap ( "topMouseOut" ) . GetMap ( "phasedRegistrationNames" ) . GetValue ( "captured" ) ) ;
68
+
69
+ Assert . AreEqual ( "onSelectionChange" , constants . GetMap ( "directEventTypes " ) . GetMap ( "topSelectionChange" ) . GetValue ( "registrationName" ) ) ;
70
+ Assert . AreEqual ( "onLoadingStart" , constants . GetMap ( "directEventTypes " ) . GetMap ( "topLoadingStart" ) . GetValue ( "registrationName" ) ) ;
71
+ Assert . AreEqual ( "onLoadingFinish" , constants . GetMap ( "directEventTypes " ) . GetMap ( "topLoadingFinish" ) . GetValue ( "registrationName" ) ) ;
72
+ Assert . AreEqual ( "onLoadingError" , constants . GetMap ( "directEventTypes " ) . GetMap ( "topLoadingError" ) . GetValue ( "registrationName" ) ) ;
73
+ Assert . AreEqual ( "onLayout" , constants . GetMap ( "directEventTypes " ) . GetMap ( "topLayout" ) . GetValue ( "registrationName" ) ) ;
74
+ Assert . AreEqual ( "onMouseEnter" , constants . GetMap ( "directEventTypes " ) . GetMap ( "topMouseEnter" ) . GetValue ( "registrationName" ) ) ;
75
+ Assert . AreEqual ( "onMouseLeave" , constants . GetMap ( "directEventTypes " ) . GetMap ( "topMouseLeave" ) . GetValue ( "registrationName" ) ) ;
76
+ Assert . AreEqual ( "onMessage" , constants . GetMap ( "directEventTypes " ) . GetMap ( "topMessage" ) . GetValue ( "registrationName" ) ) ;
77
77
}
78
78
}
79
79
0 commit comments