Files
dioxus/packages/core/tests
Jonathan Kelley 9243ef4128 redirects, middleware, Transport, set/capture error status (#4751)
* wip: redirect

* redirect example

* fix file upload not in a form

* wip

* deny missing cfgs

* wip: add router fallback but it's not working

* fix suspense bug after rebuilds that queued work

* more cleanup

* add test for error codes

* add helpful comment

* bring back middleware annotation

* fix cfg

* add server feature

* fix doctest

* just disable liveview test for now

* fix liveview

* dont send init

* cache more playwright!

* add more pkgs to cache
2025-10-10 21:43:57 -07:00
..
2022-11-22 20:16:14 -08:00
2025-07-16 16:04:13 -07:00
2025-07-16 16:04:13 -07:00
2025-07-16 16:04:13 -07:00
2025-07-16 16:04:13 -07:00
2025-07-16 16:04:13 -07:00
2025-07-16 16:04:13 -07:00
2025-07-16 16:04:13 -07:00
2025-07-16 16:04:13 -07:00
2022-11-29 16:31:04 -05:00
2025-07-16 16:04:13 -07:00
2025-08-20 10:49:03 -07:00
2025-07-16 16:04:13 -07:00
2025-07-16 16:04:13 -07:00
2024-01-10 19:21:15 -06:00
2025-07-16 16:04:13 -07:00
2025-07-16 16:04:13 -07:00

Testing of Dioxus core

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_to_vec
  • [] change props