Commit Graph

232 Commits

Author SHA1 Message Date
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 7a3bc4c212 Fix Node tests - testwrap async test requires DOM 2017-11-28 17:12:29 +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 a2669b3671 Fix test ns name again 2017-11-08 21:04:02 +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 0b38b4467d Merge pull request #314 from frerom/with-meta
Add IWithMeta protocol to RAtom
2017-10-20 11:07:05 +03: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 52b0b2eba4 Fix demo site build script, stop usinn lein profile merging 2017-10-18 14:25:41 +03:00
Juho Teperi 03ff2ffe87 Add karma junit reporter & other config 2017-10-14 16:20:43 +03:00
Juho Teperi 3b51b08968 Run some testwrap test cases using after-render 2017-10-14 13:06:29 +03: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 b81af9308a Fix doo & test result component on demo app 2017-10-13 16:00:04 +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 3d061329d8 Remove duplicate test-results var 2017-10-12 15:38:32 +03:00
Fredrik Roman 5463bd8403 Add IWithMeta protocol to RAtom 2017-10-05 20:55:29 -04:00
Juho Teperi 4f69a37fcc Fix tests on Chrome, don't load demo app on test runner 2017-09-29 11:02:34 +03:00
Juho Teperi fd93b09c96 Rework test runner and prerendering
Use doo for tests.
2017-09-29 01:34:06 +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 b973a873fc Merge branch 'revert-128' of https://github.com/moskvax/reagent into moskvax-revert-128 2017-03-11 01:44:23 +02:00
Juho Teperi 19ae267b32 Fix CI tests
Gen-site.js is used both to pre-render HTML files and run tests.
2017-03-11 00:58:14 +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 bb2faefcbe Move add-on-dispose! to IDisposable
And pass the reaction to the dispose function.
2016-06-07 16:35:17 +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
Dan Holmsand d3ee4a7f8b Update figwheel and simplify doc app configuration 2016-05-27 12:55:13 +02:00
Dan Holmsand baf2107c15 Add test for nested with-let 2016-05-27 11:36:23 +02:00
Dan Holmsand 072cce4844 Add add-on-dispose! to Reaction 2016-05-26 17:41:30 +02:00
Dan Holmsand 00bfb8ed01 Make new tests pass in production mode 2016-05-01 15:18:26 +02:00
Dan Holmsand 7943a0018b Make demo site reload a little faster 2016-05-01 13:45:37 +02:00
Dan Holmsand e128117788 Improve exception-handling in reactions
Make sure exceptions in children of reactions don't end up
being caught in the reaction itself.
2016-05-01 13:09:12 +02:00