PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
Tests: full screen and the About dialog get their own tests (parity evidence)
Brandon Thomas7b85af8785cb
diff --git a/crates/ui-egui/tests/commands.rs b/crates/ui-egui/tests/commands.rsindex a4f1bddeb..899bc02d6 100644--- a/crates/ui-egui/tests/commands.rs+++ b/crates/ui-egui/tests/commands.rs@@ -198,3 +198,28 @@ fn the_shortcuts_dialog_lists_the_real_bindings() {h.get_by_label(if mac { "⇧⌘S" } else { "Ctrl+Shift+S" });h.get_by_label("Save as");}++#[test]+fn full_screen_toggles_by_shortcut_and_command_and_escape_leaves() {+ let mut h = harness();+ h.key_press_modifiers(Modifiers::COMMAND, Key::L);+ h.run_steps(2);+ assert!(h.state().full_screen, "⌘L / Ctrl+L enters full screen");+ h.key_press(Key::Escape);+ h.run_steps(2);+ assert!(!h.state().full_screen, "Escape leaves full screen");+ h.state_mut().execute("view.full_screen");+ h.run_steps(2);+ assert!(h.state().full_screen);+ h.state_mut().execute("view.full_screen");+ h.run_steps(2);+ assert!(!h.state().full_screen, "the command toggles back");+}++#[test]+fn the_about_dialog_shows_the_running_version() {+ let mut h = harness();+ h.state_mut().execute("help.about");+ h.run_steps(3);+ h.get_by_label_contains(&format!("Version {}", env!("CARGO_PKG_VERSION")));+}diff --git a/parity/acrobat-features.toml b/parity/acrobat-features.tomlindex a3f706eb4..8785afc5d 100644--- a/parity/acrobat-features.toml+++ b/parity/acrobat-features.toml@@ -1070,7 +1070,7 @@ milestone = "M3"status = "shipped"commands = ["view.full_screen"]tools = []-evidence = ["crates/ui-egui/tests/commands.rs::every_registered_command_is_implemented"]+evidence = ["crates/ui-egui/tests/commands.rs::full_screen_toggles_by_shortcut_and_command_and_escape_leaves"]notes = ""[[feature]]@@ -1682,7 +1682,7 @@ milestone = "M3"status = "shipped"commands = ["help.about"]tools = []-evidence = ["crates/ui-egui/tests/commands.rs::every_registered_command_is_implemented"]+evidence = ["crates/ui-egui/tests/commands.rs::the_about_dialog_shows_the_running_version"]notes = ""[[feature]]