Commit Graph

24 Commits

Author SHA1 Message Date
Ben Alpert
b637cb3193 Updat docs for refs/findDOMNode 2015-10-06 17:53:38 -07:00
Ben Alpert
c3dcd2e9dd Update some more docs for package split 2015-10-06 17:36:16 -07:00
Jim
33cd980f0e React -> ReactDOM for render() and findDOMNode() 2015-10-05 17:46:58 -07:00
Edvin Erikson
8148667c6d Added a note about needing document globally available
Added a note in ``10.4-test-utils.md` about needing window, document and
document.createElement globally available before importing React.
2015-09-30 14:28:57 +02:00
Andreas Savvides
5b97061fb0 Make definitions more readable & optional params more obvious 2015-08-27 16:32:07 +01:00
Ben Alpert
9e2c893767 Fix formatting in test utils docs 2015-08-25 09:47:38 -07:00
Paul O’Shannessy
caa5e4928d Merge pull request #4451 from dmatteo/TestUtils.Simulate-docs
improve ReactTestUtils.Simulate documentation
2015-08-17 14:51:05 -07:00
Kohei TAKATA
c1160668d9 Enclose variables in back quote 2015-07-22 16:19:04 +09:00
Domenico Matteo
6babb5de38 improve ReactTestUtils.Simulate documentation 2015-07-21 22:27:20 +02:00
Kohei TAKATA
19327d11e0 Add period 2015-07-21 21:08:42 +09:00
Reed Loden
dd010b34e2 SSL/TLSize all the things! (convert http:// to https:// where appropriate)
Update links to use https:// where it is supported. There's probably a lot
more that could be fixed, but these are the core ones I found (especially
the download links in order to prevent MITM attacks). Note that there are
some fb.me links that will redirect to http:// even while accessed over
https://, but this seemed like the best way to fix those for now.

NOTE: Only non-third-party files were modified. There are references to
http:// URLs in vendored/third-party files, but seems appropriate to fix
upstream for those rather than editing the files.

Also, copy one image locally to the blog, as it was hotlinking to a site
that did not support https://.

Last, use youtube-nocookie.com instead of youtube.com for video embeds,
as the former doesn't try to set a cookie on load (privacy enhancement).
2015-04-18 16:49:32 -07:00
Serg
d12628e499 Fixed typo 2015-04-13 12:12:49 +03:00
Ben Alpert
d6752b5da0 [docs] Fix type on renderIntoDocument
Fixes #3581.
2015-04-03 09:12:10 -07:00
Cheng Lou
db33842478 Remove mention from docs 2015-03-23 20:13:24 -04:00
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