@@ -30,7 +30,7 @@ describe('ReactOffscreen', () => { |
30 | 30 | return <span prop={props.text} />; |
31 | 31 | } |
32 | 32 |
|
33 | | - // @gate www |
| 33 | + // @gate enableLegacyHidden |
34 | 34 | it('unstable-defer-without-hiding should never toggle the visibility of its children', async () => { |
35 | 35 | function App({mode}) { |
36 | 36 | return ( |
@@ -180,7 +180,7 @@ describe('ReactOffscreen', () => { |
180 | 180 | ); |
181 | 181 | }); |
182 | 182 |
|
183 | | - // @gate experimental || www |
| 183 | + // @gate enableOffscreen |
184 | 184 | it('mounts without layout effects when hidden', async () => { |
185 | 185 | function Child({text}) { |
186 | 186 | useLayoutEffect(() => { |
@@ -218,7 +218,7 @@ describe('ReactOffscreen', () => { |
218 | 218 | expect(root).toMatchRenderedOutput(<span prop="Child" />); |
219 | 219 | }); |
220 | 220 |
|
221 | | - // @gate experimental || www |
| 221 | + // @gate enableOffscreen |
222 | 222 | it('mounts/unmounts layout effects when visibility changes (starting visible)', async () => { |
223 | 223 | function Child({text}) { |
224 | 224 | useLayoutEffect(() => { |
@@ -264,7 +264,7 @@ describe('ReactOffscreen', () => { |
264 | 264 | expect(root).toMatchRenderedOutput(<span prop="Child" />); |
265 | 265 | }); |
266 | 266 |
|
267 | | - // @gate experimental || www |
| 267 | + // @gate enableOffscreen |
268 | 268 | it('mounts/unmounts layout effects when visibility changes (starting hidden)', async () => { |
269 | 269 | function Child({text}) { |
270 | 270 | useLayoutEffect(() => { |
@@ -311,7 +311,7 @@ describe('ReactOffscreen', () => { |
311 | 311 | expect(root).toMatchRenderedOutput(<span hidden={true} prop="Child" />); |
312 | 312 | }); |
313 | 313 |
|
314 | | - // @gate experimental || www |
| 314 | + // @gate enableOffscreen |
315 | 315 | it('hides children of offscreen after layout effects are destroyed', async () => { |
316 | 316 | const root = ReactNoop.createRoot(); |
317 | 317 | function Child({text}) { |
@@ -350,7 +350,7 @@ describe('ReactOffscreen', () => { |
350 | 350 | expect(root).toMatchRenderedOutput(<span hidden={true} prop="Child" />); |
351 | 351 | }); |
352 | 352 |
|
353 | | - // @gate www |
| 353 | + // @gate enableLegacyHidden |
354 | 354 | it('does not toggle effects for LegacyHidden component', async () => { |
355 | 355 | // LegacyHidden is meant to be the same as offscreen except it doesn't |
356 | 356 | // do anything to effects. Only used by www, as a temporary migration step. |
@@ -398,7 +398,7 @@ describe('ReactOffscreen', () => { |
398 | 398 | expect(Scheduler).toHaveYielded(['Unmount layout']); |
399 | 399 | }); |
400 | 400 |
|
401 | | - // @gate experimental || www |
| 401 | + // @gate enableOffscreen |
402 | 402 | it('hides new insertions into an already hidden tree', async () => { |
403 | 403 | const root = ReactNoop.createRoot(); |
404 | 404 | await act(async () => { |
@@ -428,7 +428,7 @@ describe('ReactOffscreen', () => { |
428 | 428 | ); |
429 | 429 | }); |
430 | 430 |
|
431 | | - // @gate experimental || www |
| 431 | + // @gate enableOffscreen |
432 | 432 | it('hides updated nodes inside an already hidden tree', async () => { |
433 | 433 | const root = ReactNoop.createRoot(); |
434 | 434 | await act(async () => { |
@@ -474,7 +474,7 @@ describe('ReactOffscreen', () => { |
474 | 474 | expect(root).toMatchRenderedOutput(<span>Hi</span>); |
475 | 475 | }); |
476 | 476 |
|
477 | | - // @gate experimental || www |
| 477 | + // @gate enableOffscreen |
478 | 478 | it('revealing a hidden tree at high priority does not cause tearing', async () => { |
479 | 479 | // When revealing an offscreen tree, we need to include updates that were |
480 | 480 | // previously deferred because the tree was hidden, even if they are lower |
@@ -593,8 +593,7 @@ describe('ReactOffscreen', () => { |
593 | 593 | ); |
594 | 594 | }); |
595 | 595 |
|
596 | | - // TODO: Create TestFlag alias for Offscreen |
597 | | - // @gate experimental || www |
| 596 | + // @gate enableOffscreen |
598 | 597 | it('regression: Offscreen instance is sometimes null during setState', async () => { |
599 | 598 | let setState; |
600 | 599 | function Child() { |
|