dioxus/packages/core/tests
2021-10-05 03:37:15 -04:00
..
borrowedstate.rs publish: move macro crate out of core 2021-09-24 21:46:23 -04:00
create_dom.rs feat: support desktop more completely 2021-10-05 03:37:15 -04:00
diffing.rs feat: support desktop more completely 2021-10-05 03:37:15 -04:00
display_vdom.rs publish: move macro crate out of core 2021-09-24 21:46:23 -04:00
eventsystem.rs wip: overhaul event system 2021-10-04 01:28:04 -04:00
hooks.rs feat: mvoe away from compound context 2021-09-21 13:42:52 -04:00
lifecycle.rs wip: threadsafe 2021-10-01 02:07:12 -04:00
README.md polish: tests and documentation 2021-09-09 20:58:48 -04:00
scheduler.rs perf: remove global allocation for props 2021-09-13 00:59:08 -04:00
set_state_batch.rs feat: some docs, cleaning 2021-09-01 00:57:04 -04:00
sharedstate.rs feat: support desktop more completely 2021-10-05 03:37:15 -04:00
test_logging.rs feat: some docs, cleaning 2021-09-01 00:57:04 -04:00
vdom_rebuild.rs publish: move macro crate out of core 2021-09-24 21:46:23 -04:00

Testing of Dioxus core

NodeFactory

  • [] rsx, html, NodeFactory generate the same structures

Diffing

  • create elements
  • create text
  • create fragments
  • create empty fragments (placeholders)
  • diff elements
  • diff from element/text to fragment
  • diff from element/text to empty fragment
  • diff to element with children works too
  • replace with works forward
  • replace with works backward
  • un-keyed diffing
  • keyed diffing
  • keyed diffing out of order
  • keyed diffing with prefix/suffix
  • suspended nodes work

Lifecycle

  • [] Components mount properly
  • [] Components create new child components
  • [] Replaced components unmount old components and mount new
  • [] Post-render effects are called
  • []

Shared Context

  • [] Shared context propagates downwards
  • [] unwrapping shared context if it doesn't exist works too

Suspense

  • [] use_suspense generates suspended nodes

Hooks

  • [] Drop order is maintained
  • [] Shared hook state is okay
  • [] use_hook works
  • [] use_ref works
  • [] use_noderef works
  • [] use_provide_state
  • [] use_consume_state

VirtualDOM API

  • [] work
  • [] rebuild
  • [] change props