@@ -32,7 +32,7 @@ describe('ReactLegacyUpdates', () => {
32
32
assertLog = InternalTestUtils . assertLog ;
33
33
} ) ;
34
34
35
- // @gate !disableLegacyMode
35
+ // @gate !disableLegacyMode && classic
36
36
it ( 'should batch state when updating state twice' , ( ) => {
37
37
let updateCount = 0 ;
38
38
@@ -63,7 +63,7 @@ describe('ReactLegacyUpdates', () => {
63
63
expect ( updateCount ) . toBe ( 1 ) ;
64
64
} ) ;
65
65
66
- // @gate !disableLegacyMode
66
+ // @gate !disableLegacyMode && classic
67
67
it ( 'should batch state when updating two different state keys' , ( ) => {
68
68
let updateCount = 0 ;
69
69
@@ -97,7 +97,7 @@ describe('ReactLegacyUpdates', () => {
97
97
expect ( updateCount ) . toBe ( 1 ) ;
98
98
} ) ;
99
99
100
- // @gate !disableLegacyMode
100
+ // @gate !disableLegacyMode && classic
101
101
it ( 'should batch state and props together' , ( ) => {
102
102
let updateCount = 0 ;
103
103
@@ -131,7 +131,7 @@ describe('ReactLegacyUpdates', () => {
131
131
expect ( updateCount ) . toBe ( 1 ) ;
132
132
} ) ;
133
133
134
- // @gate !disableLegacyMode
134
+ // @gate !disableLegacyMode && classic
135
135
it ( 'should batch parent/child state updates together' , ( ) => {
136
136
let parentUpdateCount = 0 ;
137
137
@@ -187,7 +187,7 @@ describe('ReactLegacyUpdates', () => {
187
187
expect ( childUpdateCount ) . toBe ( 1 ) ;
188
188
} ) ;
189
189
190
- // @gate !disableLegacyMode
190
+ // @gate !disableLegacyMode && classic
191
191
it ( 'should batch child/parent state updates together' , ( ) => {
192
192
let parentUpdateCount = 0 ;
193
193
@@ -245,7 +245,7 @@ describe('ReactLegacyUpdates', () => {
245
245
expect ( childUpdateCount ) . toBe ( 1 ) ;
246
246
} ) ;
247
247
248
- // @gate !disableLegacyMode
248
+ // @gate !disableLegacyMode && classic
249
249
it ( 'should support chained state updates' , ( ) => {
250
250
let updateCount = 0 ;
251
251
@@ -286,7 +286,7 @@ describe('ReactLegacyUpdates', () => {
286
286
expect ( updateCount ) . toBe ( 2 ) ;
287
287
} ) ;
288
288
289
- // @gate !disableLegacyMode
289
+ // @gate !disableLegacyMode && classic
290
290
it ( 'should batch forceUpdate together' , ( ) => {
291
291
let shouldUpdateCount = 0 ;
292
292
let updateCount = 0 ;
@@ -548,7 +548,7 @@ describe('ReactLegacyUpdates', () => {
548
548
) ;
549
549
} ) ;
550
550
551
- // @gate !disableLegacyMode
551
+ // @gate !disableLegacyMode && classic
552
552
it ( 'should queue mount-ready handlers across different roots' , ( ) => {
553
553
// We'll define two components A and B, then update both of them. When A's
554
554
// componentDidUpdate handlers is called, B's DOM should already have been
@@ -849,7 +849,7 @@ describe('ReactLegacyUpdates', () => {
849
849
expect ( callbackCount ) . toBe ( 1 ) ;
850
850
} ) ;
851
851
852
- // @gate !disableLegacyMode
852
+ // @gate !disableLegacyMode && classic
853
853
it ( 'does not call render after a component as been deleted' , ( ) => {
854
854
let renderCount = 0 ;
855
855
let componentB = null ;
0 commit comments