Browse Source

fix headless event counter

Jonathan Kelley 1 year ago
parent
commit
f2ec5c5cb8
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packages/desktop/headless_tests/events.rs

+ 4 - 4
packages/desktop/headless_tests/events.rs

@@ -205,10 +205,10 @@ fn app() -> Element {
         r#"new FocusEvent("focusout",{bubbles: true})"#,
     );
 
-    // if received_events() == 13 {
-    //     println!("all events recieved");
-    //     desktop_context.close();
-    // }
+    if received_events() == 13 {
+        println!("all events recieved");
+        desktop_context.close();
+    }
 
     rsx! {
         div {