Fix some commented out tests

This commit is contained in:
Jonathan Kelley committed 2024-01-30 18:42:36 -08:00
1 parent 69f9bb6b65
commit 9922059969
3 files changed
+10 -15

No files matched your search

+6 -11
View File
@@ -1,5 +1,9 @@
use dioxus::prelude::*;
fn main() {
launch_desktop(app);
}
fn app() -> Element {
let mut state = use_signal(|| 0);
@@ -11,18 +15,9 @@ fn app() -> Element {
});
rsx! {
button {
onclick: move |_| state.set(0),
"reset"
}
button { onclick: move |_| state.set(0), "reset" }
for _ in 0..10000 {
div {
"hello desktop! {state}"
}
div { "hello desktop! {state}" }
}
}
}
fn main() {
dioxus::desktop::launch::launch(app, Default::default(), Default::default());
}
@@ -271,7 +271,7 @@ fn custom_elements_work() {
testing132 {}
}
}
})
}
}
let rt = tokio::runtime::Builder::new_current_thread()
@@ -338,7 +338,7 @@ fn slotless_custom_element_cant_have_children() {
customelementnoslot {
testing132 {}
}
})
}
}
let rt = tokio::runtime::Builder::new_current_thread()
@@ -366,7 +366,7 @@ fn slotless_custom_element() {
rsx! {
customelementnoslot {
}
})
}
}
let rt = tokio::runtime::Builder::new_current_thread()
+1 -1
View File
@@ -122,7 +122,7 @@ fn native_core_is_okay() {
rsx! {
blabla {}
})
}
}
let rt = tokio::runtime::Builder::new_current_thread()