mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 22:20:19 +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::*;
|
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());
|
|
||||||
}
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue