Fix some commented out tests

This commit is contained in:
Jonathan Kelley 2024-01-30 18:42:36 -08:00
parent 69f9bb6b65
commit 9922059969
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE
3 changed files with 10 additions and 15 deletions

View file

@ -1,5 +1,9 @@
use dioxus::prelude::*; use dioxus::prelude::*;
fn main() {
launch_desktop(app);
}
fn app() -> Element { fn app() -> Element {
let mut state = use_signal(|| 0); let mut state = use_signal(|| 0);
@ -11,18 +15,9 @@ fn app() -> Element {
}); });
rsx! { rsx! {
button { button { onclick: move |_| state.set(0), "reset" }
onclick: move |_| state.set(0),
"reset"
}
for _ in 0..10000 { for _ in 0..10000 {
div { div { "hello desktop! {state}" }
"hello desktop! {state}"
}
} }
} }
} }
fn main() {
dioxus::desktop::launch::launch(app, Default::default(), Default::default());
}

View file

@ -271,7 +271,7 @@ fn custom_elements_work() {
testing132 {} testing132 {}
} }
} }
}) }
} }
let rt = tokio::runtime::Builder::new_current_thread() let rt = tokio::runtime::Builder::new_current_thread()
@ -338,7 +338,7 @@ fn slotless_custom_element_cant_have_children() {
customelementnoslot { customelementnoslot {
testing132 {} testing132 {}
} }
}) }
} }
let rt = tokio::runtime::Builder::new_current_thread() let rt = tokio::runtime::Builder::new_current_thread()
@ -366,7 +366,7 @@ fn slotless_custom_element() {
rsx! { rsx! {
customelementnoslot { customelementnoslot {
} }
}) }
} }
let rt = tokio::runtime::Builder::new_current_thread() let rt = tokio::runtime::Builder::new_current_thread()

View file

@ -122,7 +122,7 @@ fn native_core_is_okay() {
rsx! { rsx! {
blabla {} blabla {}
}) }
} }
let rt = tokio::runtime::Builder::new_current_thread() let rt = tokio::runtime::Builder::new_current_thread()