Fix flakey windows tests (#2332)
This commit is contained in:
1 parent
c9ab09b348
commit
5ce91e1bfc
31 files changed
+217
-136
No files matched your search
@@ -73,7 +73,12 @@ pub fn GoBackButton(props: HistoryButtonProps) -> Element {
|
||||
let disabled = !router.can_go_back();
|
||||
|
||||
rsx! {
|
||||
button { disabled: "{disabled}", prevent_default: "onclick", onclick: move |_| router.go_back(), {children} }
|
||||
button {
|
||||
disabled: "{disabled}",
|
||||
prevent_default: "onclick",
|
||||
onclick: move |_| router.go_back(),
|
||||
{children}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,7 +119,7 @@ pub fn GoBackButton(props: HistoryButtonProps) -> Element {
|
||||
/// }
|
||||
/// #
|
||||
/// # let mut vdom = VirtualDom::new(App);
|
||||
/// # let _ = vdom.rebuild();
|
||||
/// # vdom.rebuild_in_place();
|
||||
/// # assert_eq!(
|
||||
/// # dioxus_ssr::render(&vdom),
|
||||
/// # r#"<button disabled="true" dioxus-prevent-default="onclick">go forward</button>"#
|
||||
@@ -139,6 +144,11 @@ pub fn GoForwardButton(props: HistoryButtonProps) -> Element {
|
||||
let disabled = !router.can_go_forward();
|
||||
|
||||
rsx! {
|
||||
button { disabled: "{disabled}", prevent_default: "onclick", onclick: move |_| router.go_forward(), {children} }
|
||||
button {
|
||||
disabled: "{disabled}",
|
||||
prevent_default: "onclick",
|
||||
onclick: move |_| router.go_forward(),
|
||||
{children}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -178,26 +178,24 @@ impl Debug for LinkProps {
|
||||
/// #[component]
|
||||
/// fn Index() -> Element {
|
||||
/// rsx! {
|
||||
/// rsx! {
|
||||
/// Link {
|
||||
/// active_class: "active",
|
||||
/// class: "link_class",
|
||||
/// id: "link_id",
|
||||
/// new_tab: true,
|
||||
/// rel: "link_rel",
|
||||
/// to: Route::Index {},
|
||||
/// Link {
|
||||
/// active_class: "active",
|
||||
/// class: "link_class",
|
||||
/// id: "link_id",
|
||||
/// new_tab: true,
|
||||
/// rel: "link_rel",
|
||||
/// to: Route::Index {},
|
||||
///
|
||||
/// "A fully configured link"
|
||||
/// }
|
||||
/// "A fully configured link"
|
||||
/// }
|
||||
/// }
|
||||
/// }
|
||||
/// #
|
||||
/// # let mut vdom = VirtualDom::new(App);
|
||||
/// # let _ = vdom.rebuild();
|
||||
/// # vdom.rebuild_in_place();
|
||||
/// # assert_eq!(
|
||||
/// # dioxus_ssr::render(&vdom),
|
||||
/// # r#"<a href="/" dioxus-prevent-default="" class="link_class active" id="link_id" rel="link_rel" target="_blank">A fully configured link</a>"#
|
||||
/// # r#"<a href="/" dioxus-prevent-default="" class="link_class active" rel="link_rel" target="_blank" id="link_id">A fully configured link</a>"#
|
||||
/// # );
|
||||
/// ```
|
||||
#[allow(non_snake_case)]
|
||||
|
||||
@@ -65,7 +65,7 @@ use dioxus_lib::prelude::*;
|
||||
/// # }
|
||||
/// #
|
||||
/// # let mut vdom = VirtualDom::new(App);
|
||||
/// # let _ = vdom.rebuild();
|
||||
/// # vdom.rebuild_in_place();
|
||||
/// # assert_eq!(dioxus_ssr::render(&vdom), "<h1>App</h1><p>Child</p>");
|
||||
/// ```
|
||||
pub fn Outlet<R: Routable + Clone>() -> Element {
|
||||
|
||||
Reference in new issue
Block a user