mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-22 20:23:09 +00:00
Fix some commented out tests
This commit is contained in:
parent
69f9bb6b65
commit
9922059969
3 changed files with 10 additions and 15 deletions
|
@ -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()
|
||||
|
|
|
@ -122,7 +122,7 @@ fn native_core_is_okay() {
|
|||
|
||||
rsx! {
|
||||
blabla {}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
let rt = tokio::runtime::Builder::new_current_thread()
|
||||
|
|
Loading…
Reference in a new issue