dioxus/packages/core/tests
2022-11-27 02:06:04 -05:00
..
.rustfmt.toml wip: add diffing tests 2022-11-22 20:16:14 -08:00
attr_cleanup.rs chore: fix tests 2022-11-27 00:25:35 -05:00
boolattrs.rs feat: more tests working 2022-11-24 06:47:14 -05:00
borrowedstate.rs feat: more tests working 2022-11-24 06:47:14 -05:00
bubble_error.rs feat: implement ID cycling 2022-11-24 09:11:27 -05:00
context_api.rs chore: add tests for context api 2022-11-27 00:38:40 -05:00
create_dom.rs feat: more tests working 2022-11-24 06:47:14 -05:00
create_element.rs chore: more tests passing 2022-11-27 02:06:04 -05:00
create_fragments.rs feat: implement ID cycling 2022-11-24 09:11:27 -05:00
create_lists.rs feat: implement ID cycling 2022-11-24 09:11:27 -05:00
create_passthru.rs wip: fragment diffing working 2022-11-23 23:15:01 -08:00
cycle.rs feat: implement ID cycling 2022-11-24 09:11:27 -05:00
diff_element.rs fix: node reclaimation 2022-11-25 02:12:29 -05:00
diff_keyed_list.rs chore: more tests passing 2022-11-27 02:06:04 -05:00
diff_unkeyed_list.rs chore: more tests passing 2022-11-27 02:06:04 -05:00
kitchen_sink.rs wip: migrate all tests to core 2022-11-27 00:56:49 -05:00
lifecycle.rs chore: more tests passing 2022-11-27 02:06:04 -05:00
miri_stress.rs chore: more tests passing 2022-11-27 02:06:04 -05:00
README.md wip: migrate all tests to core 2022-11-27 00:56:49 -05:00
safety.rs wip: more tests! 2022-11-22 21:32:26 -08:00
suspense.rs wip: migrate all tests to core 2022-11-27 00:56:49 -05:00
task.rs wip: fragment diffing working 2022-11-23 23:15:01 -08: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