Commit Graph

10 Commits

Author SHA1 Message Date
Paul O’Shannessy
04bb500df0 Merge pull request #2963 from graue/document-shallow-testing
Add documentation for shallow testing
2015-03-10 09:39:47 -07:00
Jim
7114950cd1 Updated docs examples/recommendations to use findDOMNode instead of getDOMNode 2015-03-05 16:42:43 -08:00
Petri Lehtinen
d4d5ea8253 Document React.addons.TestUtils.isElement() 2015-02-02 10:22:52 +02:00
Scott Feeney
09e80b0a06 Mention shallow rendering's limitations
Also, move it to the bottom of the test utils documentation and mention that it's experimental.
2015-01-27 17:09:16 -08:00
Scott Feeney
969a4bf74c Add documentation for shallow testing
See #2393 for the original issue, and #2497 for the implementation.
2015-01-27 13:44:20 -08:00
Martin Jul
ded474e6fe Update 10.4-test-utils.md
This adds minimal valid event data to the Simulate.change example for a text input field.
2014-11-17 13:14:11 +01:00
Ben Alpert
09f1d04981 Make ReactTextComponent properly injectable
ReactTextComponent's implementation is DOM-specific; instead of flattenChildren creating the ReactTextComponent instances, ReactNativeComponent now takes care of having ReactTextComponent injected and creating the component instance. I also renamed ReactTextComponent to ReactDOMTextComponent and moved it to browser/ui/ where it belongs. ReactDOMTextComponent no longer inherits directly from ReactComponent and instead implements construct and {mount,receive,unmount}Component directly.

This diff removes `ReactTestUtils.isTextComponent` which should have previously never returned true when using public APIs.

Test Plan: jest, use ballmer-peak example.
2014-11-15 12:30:42 -08:00
Ivan Krechetov
327f903b6b There's no isComponentOfType() anymore 2014-11-11 09:25:33 +01:00
Sebastian Markbage
4e203db794 More Descriptor -> Element renames 2014-10-28 11:06:31 -07:00
Sebastian Markbage
4202fcd9c5 Replace transferPropsTo with transferring props patterns 2014-10-28 11:06:30 -07:00