File tree 1 file changed +4
-0
lines changed
packages/react-dom/src/__tests__
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -867,6 +867,7 @@ describe('ReactDOMFloat', () => {
867
867
} ) ;
868
868
869
869
describe ( 'head resources' , ( ) => {
870
+ // @gate enableFloat
870
871
it ( 'can rendering title tags anywhere in the tree' , async ( ) => {
871
872
await actIntoEmptyDocument ( ( ) => {
872
873
const { pipe} = ReactDOMFizzServer . renderToPipeableStream (
@@ -941,6 +942,7 @@ describe('ReactDOMFloat', () => {
941
942
) ;
942
943
} ) ;
943
944
945
+ // @gate enableFloat
944
946
it ( 'prepends new titles on the client so newer ones override older ones, including orphaned server rendered titles' , async ( ) => {
945
947
await actIntoEmptyDocument ( ( ) => {
946
948
const { pipe} = ReactDOMFizzServer . renderToPipeableStream (
@@ -996,6 +998,7 @@ describe('ReactDOMFloat', () => {
996
998
) ;
997
999
} ) ;
998
1000
1001
+ // @gate enableFloat
999
1002
it ( 'keys titles on text children and only removes them when no more instances refer to that title' , async ( ) => {
1000
1003
const root = ReactDOMClient . createRoot ( container ) ;
1001
1004
root . render (
@@ -1053,6 +1056,7 @@ describe('ReactDOMFloat', () => {
1053
1056
) ;
1054
1057
} ) ;
1055
1058
1059
+ // @gate enableFloat
1056
1060
it ( 'can render a title before a singleton even if that singleton clears its contents' , async ( ) => {
1057
1061
await actIntoEmptyDocument ( ( ) => {
1058
1062
const { pipe} = ReactDOMFizzServer . renderToPipeableStream (
You can’t perform that action at this time.
0 commit comments