dioxus/packages/core/tests/eventsystem.rs

23 lines
499 B
Rust
Raw Normal View History

2021-08-08 19:15:16 +00:00
use bumpalo::Bump;
use anyhow::{Context, Result};
2021-09-02 03:57:34 +00:00
use dioxus::{prelude::*, DomEdit};
2021-08-08 19:15:16 +00:00
use dioxus_core as dioxus;
use dioxus_html as dioxus_elements;
#[async_std::test]
async fn event_queue_works() {
2021-09-21 17:13:15 +00:00
static App: FC<()> = |cx, props| {
2021-08-08 19:15:16 +00:00
cx.render(rsx! {
div { "hello world" }
})
};
let mut dom = VirtualDom::new(App);
2021-08-24 19:12:20 +00:00
let edits = dom.rebuild();
2021-08-08 19:15:16 +00:00
async_std::task::spawn_local(async move {
2021-08-27 02:05:09 +00:00
// let mutations = dom.run_unbounded().await;
2021-08-08 19:15:16 +00:00
});
}