MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Contents

Function Contents

packages/react-aria/test/utils/shadowTreeWalker.test.tsx:132–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 it('walks through the dom with shadow dom', () => {
131 let {shadowRoot, cleanup} = createShadowRoot();
132 let Contents = () =>
133 ReactDOM.createPortal(
134 <>
135 <div id="div-one" />
136 <input id="input-one" />
137 <div id="div-two" />
138 <input id="input-two" />
139 <div id="div-three" />
140 <input id="input-three" />
141 <div id="div-four" />
142 </>,
143 shadowRoot
144 );
145 let {unmount} = render(<Contents />);
146 let filterFn = node => {
147 if (node.tagName === 'INPUT') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected