fix formatting
This commit is contained in:
1 parent
1b199977d1
commit
ea5e664364
1 file changed
+5
-7
@@ -1,7 +1,6 @@
|
|||||||
|
use dioxus::html::geometry::euclid::Vector3D;
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
use dioxus_desktop::DesktopContext;
|
use dioxus_desktop::DesktopContext;
|
||||||
use dioxus::html::geometry::euclid::Vector3D;
|
|
||||||
|
|
||||||
pub(crate) fn check_app_exits(app: Component) {
|
pub(crate) fn check_app_exits(app: Component) {
|
||||||
// This is a deadman's switch to ensure that the app exits
|
// This is a deadman's switch to ensure that the app exits
|
||||||
@@ -67,7 +66,7 @@ fn app(cx: Scope) -> Element {
|
|||||||
cancelable: true,
|
cancelable: true,
|
||||||
buttons: 2,
|
buttons: 2,
|
||||||
})"#,
|
})"#,
|
||||||
);
|
);
|
||||||
// mouse_click_div
|
// mouse_click_div
|
||||||
mock_event(
|
mock_event(
|
||||||
&cx,
|
&cx,
|
||||||
@@ -78,7 +77,7 @@ fn app(cx: Scope) -> Element {
|
|||||||
cancelable: true,
|
cancelable: true,
|
||||||
buttons: 2,
|
buttons: 2,
|
||||||
button: 2,
|
button: 2,
|
||||||
})"#
|
})"#,
|
||||||
);
|
);
|
||||||
// mouse_dblclick_div
|
// mouse_dblclick_div
|
||||||
mock_event(
|
mock_event(
|
||||||
@@ -207,7 +206,6 @@ fn app(cx: Scope) -> Element {
|
|||||||
"focus_out_div",
|
"focus_out_div",
|
||||||
r#"new FocusEvent("focusout",{bubbles: true})"#,
|
r#"new FocusEvent("focusout",{bubbles: true})"#,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
if **recieved_events == 12 {
|
if **recieved_events == 12 {
|
||||||
println!("all events recieved");
|
println!("all events recieved");
|
||||||
@@ -299,7 +297,7 @@ fn app(cx: Scope) -> Element {
|
|||||||
assert_eq!(event.data.code().to_string(), "KeyA");
|
assert_eq!(event.data.code().to_string(), "KeyA");
|
||||||
assert_eq!(event.data.location, 0);
|
assert_eq!(event.data.location, 0);
|
||||||
assert!(event.data.is_auto_repeating());
|
assert!(event.data.is_auto_repeating());
|
||||||
|
|
||||||
recieved_events.modify(|x| *x + 1)
|
recieved_events.modify(|x| *x + 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -325,7 +323,7 @@ fn app(cx: Scope) -> Element {
|
|||||||
assert_eq!(event.data.code().to_string(), "KeyA");
|
assert_eq!(event.data.code().to_string(), "KeyA");
|
||||||
assert_eq!(event.data.location, 0);
|
assert_eq!(event.data.location, 0);
|
||||||
assert!(!event.data.is_auto_repeating());
|
assert!(!event.data.is_auto_repeating());
|
||||||
|
|
||||||
recieved_events.modify(|x| *x + 1)
|
recieved_events.modify(|x| *x + 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user