dioxus/packages/core/tests
2022-01-05 00:27:22 -05:00
..
borrowedstate.rs wip: remove runner on hook and then update docs 2022-01-02 02:15:04 -05:00
create_dom.rs examples: upgrade to new version of dioxus core. 2021-12-25 17:18:05 -05:00
diffing.rs examples: upgrade to new version of dioxus core. 2021-12-25 17:18:05 -05:00
earlyabort.rs wip: remove runner on hook and then update docs 2022-01-02 02:15:04 -05:00
lifecycle.rs wip: remove runner on hook and then update docs 2022-01-02 02:15:04 -05:00
miri_stress.rs wip: memoize dom in the prescence of identical components 2022-01-05 00:27:22 -05: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
sharedstate.rs fix: readme and examples syntax 2021-12-28 23:48:25 -05:00
task.rs wip: work on scheduler, async, coroutines, and merge scope into context 2021-11-03 19:55:02 -04:00
test_logging.rs fix: desktop and mobile 2021-10-22 01:16:39 -04:00
vdom_rebuild.rs awesome: arbitrary expressions excepted without braces 2021-12-30 03:14:47 -05: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