@@ -40,7 +40,6 @@ describe('created with ReactFabric called with ReactNative', () => {
4040require ( 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface' ) . getNativeTagFromPublicInstance ;
4141} ) ;
4242
43- // @gate !disableLegacyMode
4443it ( 'find Fabric instances with the RN renderer' , ( ) => {
4544const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
4645validAttributes : { title : true } ,
@@ -61,7 +60,6 @@ describe('created with ReactFabric called with ReactNative', () => {
6160expect ( getNativeTagFromPublicInstance ( instance ) ) . toBe ( 2 ) ;
6261} ) ;
6362
64- // @gate !disableLegacyMode
6563it ( 'find Fabric nodes with the RN renderer' , ( ) => {
6664const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
6765validAttributes : { title : true } ,
@@ -82,7 +80,6 @@ describe('created with ReactFabric called with ReactNative', () => {
8280expect ( handle ) . toBe ( 2 ) ;
8381} ) ;
8482
85- // @gate !disableLegacyMode
8683it ( 'dispatches commands on Fabric nodes with the RN renderer' , ( ) => {
8784nativeFabricUIManager . dispatchCommand . mockClear ( ) ;
8885const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
@@ -104,7 +101,6 @@ describe('created with ReactFabric called with ReactNative', () => {
104101expect ( UIManager . dispatchViewManagerCommand ) . not . toBeCalled ( ) ;
105102} ) ;
106103
107- // @gate !disableLegacyMode
108104it ( 'dispatches sendAccessibilityEvent on Fabric nodes with the RN renderer' , ( ) => {
109105nativeFabricUIManager . sendAccessibilityEvent . mockClear ( ) ;
110106const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
@@ -147,7 +143,6 @@ describe('created with ReactNative called with ReactFabric', () => {
147143. ReactNativeViewConfigRegistry . register ;
148144} ) ;
149145
150- // @gate !disableLegacyMode
151146it ( 'find Paper instances with the Fabric renderer' , ( ) => {
152147const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
153148validAttributes : { title : true } ,
@@ -168,7 +163,6 @@ describe('created with ReactNative called with ReactFabric', () => {
168163expect ( instance . _nativeTag ) . toBe ( 3 ) ;
169164} ) ;
170165
171- // @gate !disableLegacyMode
172166it ( 'find Paper nodes with the Fabric renderer' , ( ) => {
173167const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
174168validAttributes : { title : true } ,
@@ -189,7 +183,6 @@ describe('created with ReactNative called with ReactFabric', () => {
189183expect ( handle ) . toBe ( 3 ) ;
190184} ) ;
191185
192- // @gate !disableLegacyMode
193186it ( 'dispatches commands on Paper nodes with the Fabric renderer' , ( ) => {
194187UIManager . dispatchViewManagerCommand . mockReset ( ) ;
195188const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
@@ -212,7 +205,6 @@ describe('created with ReactNative called with ReactFabric', () => {
212205expect ( nativeFabricUIManager . dispatchCommand ) . not . toBeCalled ( ) ;
213206} ) ;
214207
215- // @gate !disableLegacyMode
216208it ( 'dispatches sendAccessibilityEvent on Paper nodes with the Fabric renderer' , ( ) => {
217209ReactNativePrivateInterface . legacySendAccessibilityEvent . mockReset ( ) ;
218210const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
0 commit comments