Skip to content

Commit

Permalink
gates
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff committed Oct 19, 2022
1 parent b13246b commit 061725d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-dom/src/__tests__/ReactDOMFloat-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@ describe('ReactDOMFloat', () => {
});

describe('head resources', () => {
// @gate enableFloat
it('can rendering title tags anywhere in the tree', async () => {
await actIntoEmptyDocument(() => {
const {pipe} = ReactDOMFizzServer.renderToPipeableStream(
Expand Down Expand Up @@ -941,6 +942,7 @@ describe('ReactDOMFloat', () => {
);
});

// @gate enableFloat
it('prepends new titles on the client so newer ones override older ones, including orphaned server rendered titles', async () => {
await actIntoEmptyDocument(() => {
const {pipe} = ReactDOMFizzServer.renderToPipeableStream(
Expand Down Expand Up @@ -996,6 +998,7 @@ describe('ReactDOMFloat', () => {
);
});

// @gate enableFloat
it('keys titles on text children and only removes them when no more instances refer to that title', async () => {
const root = ReactDOMClient.createRoot(container);
root.render(
Expand Down Expand Up @@ -1053,6 +1056,7 @@ describe('ReactDOMFloat', () => {
);
});

// @gate enableFloat
it('can render a title before a singleton even if that singleton clears its contents', async () => {
await actIntoEmptyDocument(() => {
const {pipe} = ReactDOMFizzServer.renderToPipeableStream(
Expand Down

0 comments on commit 061725d

Please sign in to comment.