OnSelectEventTestCase.js — react Source File
Architecture documentation for OnSelectEventTestCase.js, a javascript file in the react codebase. 3 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 7680536c_c07f_3727_61d8_e447a4d8d88e["OnSelectEventTestCase.js"] 14dde3c9_48ef_6e34_3667_978d06aff15d["TestCase.js"] 7680536c_c07f_3727_61d8_e447a4d8d88e --> 14dde3c9_48ef_6e34_3667_978d06aff15d e1e356f5_b085_dad5_a81f_4b4844381311["TestCase"] 7680536c_c07f_3727_61d8_e447a4d8d88e --> e1e356f5_b085_dad5_a81f_4b4844381311 70b5253e_813d_8b9b_6dca_779425403139["Iframe.js"] 7680536c_c07f_3727_61d8_e447a4d8d88e --> 70b5253e_813d_8b9b_6dca_779425403139 503fee95_ee49_322b_ba32_deaaeb5199cf["index.js"] 503fee95_ee49_322b_ba32_deaaeb5199cf --> 7680536c_c07f_3727_61d8_e447a4d8d88e style 7680536c_c07f_3727_61d8_e447a4d8d88e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import TestCase from '../../TestCase';
import Iframe from '../../Iframe';
const React = window.React;
class OnSelectIframe extends React.Component {
state = {count: 0, value: 'Select Me!'};
_onSelect = event => {
this.setState(({count}) => ({count: count + 1}));
};
_onChange = event => {
this.setState({value: event.target.value});
};
render() {
const {count, value} = this.state;
return (
<Iframe height={60}>
Selection Event Count: {count}
<input
type="text"
onSelect={this._onSelect}
value={value}
onChange={this._onChange}
/>
</Iframe>
);
}
}
export default class OnSelectEventTestCase extends React.Component {
render() {
return (
<TestCase
title="onSelect events within iframes"
description="onSelect events should fire for elements rendered inside iframes">
<TestCase.Steps>
<li>Highlight some of the text in the input below</li>
<li>Move the cursor around using the arrow keys</li>
</TestCase.Steps>
<TestCase.ExpectedResult>
The displayed count should increase as you highlight or move the
cursor
</TestCase.ExpectedResult>
<OnSelectIframe />
</TestCase>
);
}
}
Domain
Subdomains
Dependencies
Source
Frequently Asked Questions
What does OnSelectEventTestCase.js do?
OnSelectEventTestCase.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Optimization subdomain.
What does OnSelectEventTestCase.js depend on?
OnSelectEventTestCase.js imports 3 module(s): Iframe.js, TestCase, TestCase.js.
What files import OnSelectEventTestCase.js?
OnSelectEventTestCase.js is imported by 1 file(s): index.js.
Where is OnSelectEventTestCase.js in the architecture?
OnSelectEventTestCase.js is located at fixtures/dom/src/components/fixtures/selection-events/OnSelectEventTestCase.js (domain: BabelCompiler, subdomain: Optimization, directory: fixtures/dom/src/components/fixtures/selection-events).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free