Juho Teperi
91b134aabb
Remove :component-function and clean getting fn name
2018-12-31 14:38:15 +02:00
Juho Teperi
f6ec863f6b
Fix component creating and hiccup class shortcut
2018-12-31 13:18:39 +02:00
Juho Teperi
16d8021e89
Merge branch 'master' into fix-array-ops
2018-12-31 13:07:05 +02:00
Juho Teperi
3bd90a26ec
Clean new create-class and remove create-react-class from tests
2018-12-31 10:37:43 +02:00
Juho Teperi
62f87292a2
Fix #401 if jsprops is nil before adding key, key is lost
...
If jsprops was nil before key oset call, oset created a new object for
the jsprops, but because the return value from oset was not used, the
object was lost.
2018-11-14 22:31:50 +02:00
Juho Teperi
fe4f348f12
Test not= exception for dev builds only
...
Logging is not enabled for optimized builds
2018-05-04 19:25:34 +03:00
Juho Teperi
c8cc7f996b
Add test case for not= exception handling
...
Test case adapted from code by atroche: https://github.com/reagent-project/reagent/pull/344#issuecomment-384882866
2018-05-04 19:18:51 +03:00
Juho Teperi
5892174a12
Workaround for browser-npm minified error
2018-05-04 18:58:05 +03:00
Juho Teperi
60f7b4bc0c
Remove :> component type assertion
...
Component could be plain JS object with some private React properties,
and it is not easy to check for this. Instead just allow all value for
:> but check that React will throw error from createElement.
Fixes #369
2018-05-04 18:47:45 +03:00
Juho Teperi
0c0ffc626a
Context default value is for cases without provider
2018-05-04 18:14:48 +03:00
Juho Teperi
cb02310b68
Add tests for new React context
2018-05-04 17:52:12 +03:00
Juho Teperi
e1019a1c9c
Check if value is named before calling name
2018-05-04 16:10:41 +03:00
Juho Teperi
606b321d2f
Fix keywords and symbols in :class
...
Fixes #367
2018-04-27 23:20:52 +03:00
Juho Teperi
b7304d0f3f
Fix aget/aset use with objects
...
This removes the interop macros which used aget/aset and prevented
Closure naming mangling, now normal property and method access is used
where possible, and goog.object used when using variable keys. Further
testing is needed to ensure this works correctly with Closure, as there
are some properties that are used with goog.object in one place, and as
property in another.
Fixes #324
2018-04-19 17:25:37 +03:00
Juho Teperi
601da7cc1d
Merge branch 'test-browser-node-prod' into react-16-try2
2018-04-03 11:00:46 +03:00
Juho Teperi
efe84857b9
Fix fragment key test case
2018-04-03 10:42:25 +03:00
Juho Teperi
e095696bcc
Use React 16 and simplify test setup
2018-04-03 10:33:01 +03:00
Juho Teperi
4f66690486
Use render-to-static-markup instead of render-to-string for tests
2018-03-13 21:49:48 +02:00
Juho Teperi
c1388a687b
Improve error-boundary test
2018-03-13 21:35:30 +02:00
Juho Teperi
87b61475e2
Implement :<> hiccup tag for fragments
...
Fixes #319
2018-03-12 14:19:42 +02:00
Juho Teperi
3b7f8d7275
Fix #262 : Apply metadata to outermost el when using nesting shorthand
2017-11-28 18:51:37 +02:00
Juho Teperi
6eb9f4f6fb
Fix entity test on Node
2017-11-28 17:13:10 +02:00
Juho Teperi
a8ec0d219b
Add test for child context
2017-11-28 15:41:30 +02:00
Juho Teperi
4dcd82a28e
Add html entity test
2017-11-23 08:45:43 +02:00
Juho Teperi
2a4efc5710
Don't rename props for custom elements
...
Custom element names must always contain hyphen so we can use that to
keep track of which elements are native vs. custom when parsing tag
name.
Fixes #322
2017-11-08 21:04:14 +02:00
Juho Teperi
31a72ff5c4
Fix test util ns name
2017-11-08 20:47:56 +02:00
Juho Teperi
f0650a69a5
Add test utils ns
2017-11-08 20:08:27 +02:00
Juho Teperi
c63fe944fd
Merge pull request #313 from reagent-project/new-test-runner
...
New test runner
2017-10-20 10:20:11 +03:00
Adrian Gruntkowski
5045046f6a
Add support for collections in :class property
2017-10-20 08:34:10 +02:00
Juho Teperi
e0b8bd337b
No need to mount test divs to dom
2017-10-14 13:06:10 +03:00
Juho Teperi
36509f79ff
Catch all React errors during tests
2017-10-13 19:57:46 +03:00
Juho Teperi
7d074b55ed
Remove test divs from dom after error
2017-10-13 19:21:44 +03:00
Juho Teperi
39b0326d22
Add componentDidCatch support and test (error boundary)
2017-10-13 19:20:36 +03:00
Juho Teperi
4bfed50f33
Fix and note about property case test
2017-10-13 11:18:48 +03:00
Juho Teperi
be45ec0aa7
Better style prop test
2017-10-13 11:18:32 +03:00
Juho Teperi
ef5c98eeba
In Node & CJS React, style prop doesn't end in ;
2017-10-12 16:29:15 +03:00
Juho Teperi
47e386d49d
Fix text case on some tests
2017-10-12 16:15:12 +03:00
Juho Teperi
6dc26c9cf0
React validates aria properties, if using Node module
2017-10-12 16:14:46 +03:00
Juho Teperi
d83a1e319c
Clean JS requires
2017-07-29 16:26:28 +03:00
Juho Teperi
84bfd13052
Update to use JS requires
2017-07-09 23:11:49 +03:00
Juho Teperi
dfb5d91b09
Merge branch 'master' into npm-deps
2017-07-09 15:46:15 +03:00
Juho Teperi
3cf045dc82
Fix partial-ifn with latest Cljs
...
Old implementation incorrectly used variadic arity for -invoke
implementation. Variadic artities for protocols are not supported by
Cljs. The old code as worked by luck but was broken by a recent change:
https://dev.clojure.org/jira/browse/CLJS-2099
New implementation properly implements all the artities for -invoke. New
implementation creates the partial fn in a constructor function, so -invoke
code doesn't need to do that. New implementation also implements Fn.
2017-06-27 15:16:10 +03:00
Juho Teperi
9d2991ed32
Test with npm deps
2017-06-06 18:33:23 +03:00
Juho Teperi
18cb1468a6
Update to React 15.5, use create-react-class
...
Fixes #292
2017-05-19 19:30:38 +03:00
Juho Teperi
4ea070d15a
Add test to validate that style properties with dashes work
2017-03-11 01:56:39 +02:00
Juho Teperi
8630ab5239
Fix #278 : Replace mentions of render-component with render
2017-03-10 17:19:19 +02:00
Juho Teperi
560f99174a
Fix dom-server calls in demo and text code
2016-11-17 02:58:44 +02:00
Dan Holmsand
c980ac0c3d
Avoid warning messages from React in tests
2016-07-14 09:34:03 +02:00
Dan Holmsand
1280f58201
Make sure after-render fn is called immediately after render
...
when after-render is called during rendering. This should happen both
if the render is a part of the normal rendering loop, or if it is
triggered by render or force-update.
2016-05-31 23:09:43 +02:00
Dan Holmsand
cd0863f1b2
Skip tests that require browser on node
2016-05-27 13:14:35 +02:00