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;
|
2021-09-25 01:46:23 +00:00
|
|
|
use dioxus_core_macro::*;
|
2021-08-08 19:15:16 +00:00
|
|
|
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
|
|
|
}
|