TextInputFixtures Class — react Architecture
Architecture documentation for the TextInputFixtures class in index.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 12df9732_87ba_98e4_95e0_1c5d6b17d94b["TextInputFixtures"] bc541b6e_9521_11e1_5e2b_622a6b2d721e["index.js"] 12df9732_87ba_98e4_95e0_1c5d6b17d94b -->|defined in| bc541b6e_9521_11e1_5e2b_622a6b2d721e 3046f26d_ce04_8fae_41aa_a44766d5a1b4["render()"] 12df9732_87ba_98e4_95e0_1c5d6b17d94b -->|method| 3046f26d_ce04_8fae_41aa_a44766d5a1b4
Relationship Graph
Source Code
fixtures/dom/src/components/fixtures/suspense/index.js lines 109–321
class TextInputFixtures extends React.Component {
render() {
return (
<FixtureSet
title="Suspense"
description="Preserving the state of timed-out children">
<p>
Clicking "Hide" will hide the fixture context using{' '}
<code>display: none</code> for 0.5 seconds, then restore. This is the
built-in behavior for timed-out children. Each fixture tests whether
the state of the DOM is preserved. Clicking "Remove" will remove the
fixture content from the DOM for 0.5 seconds, then restore. This is{' '}
<strong>not</strong> how timed-out children are hidden, but is
included for comparison purposes.
</p>
<div className="footnote">
As a shortcut, you can use Command + Enter (or Control + Enter on
Windows, Linux) to "Hide" all the fixtures, or Command + / to "Remove"
them.
</div>
<TestCase title="Text selection where entire range times out">
<TestCase.Steps>
<li>Use your cursor to select the text below.</li>
<li>Click "Hide" or "Remove".</li>
</TestCase.Steps>
<TestCase.ExpectedResult>
Text selection is preserved when hiding, but not when removing.
</TestCase.ExpectedResult>
<Fixture>
<SuspendyTree>
Select this entire sentence (and only this sentence).
</SuspendyTree>
</Fixture>
</TestCase>
<TestCase title="Text selection that extends outside timed-out subtree">
<TestCase.Steps>
<li>
Use your cursor to select a range that includes both the text and
the "Go" button.
</li>
<li>Click "Hide" or "Remove".</li>
</TestCase.Steps>
<TestCase.ExpectedResult>
Text selection is preserved when hiding, but not when removing.
</TestCase.ExpectedResult>
<Fixture>
<SuspendyTree>
Select a range that includes both this sentence and the "Go"
button.
</SuspendyTree>
</Fixture>
</TestCase>
<TestCase title="Focus">
<TestCase.Steps>
<li>
Use your cursor to select a range that includes both the text and
the "Go" button.
</li>
<li>
Instead of clicking "Go", which switches focus, press Command +
Enter (or Control + Enter on Windows, Linux).
</li>
</TestCase.Steps>
<TestCase.ExpectedResult>
The ideal behavior is that the focus would not be lost, but
currently it is (both when hiding and removing).
</TestCase.ExpectedResult>
<Fixture>
<SuspendyTree>
<button>Focus me</button>
</SuspendyTree>
</Fixture>
</TestCase>
<TestCase title="Uncontrolled form input">
<TestCase.Steps>
Domain
Source
Frequently Asked Questions
What is the TextInputFixtures class?
TextInputFixtures is a class in the react codebase, defined in fixtures/dom/src/components/fixtures/suspense/index.js.
Where is TextInputFixtures defined?
TextInputFixtures is defined in fixtures/dom/src/components/fixtures/suspense/index.js at line 109.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free