PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
Integration: #4178 doc comment back above mode_tab
aiongga84a255e4efe
diff --git a/crates/ui-egui/tests/it/content.rs b/crates/ui-egui/tests/it/content.rsindex 619352b8f..82334fa12 100644--- a/crates/ui-egui/tests/it/content.rs+++ b/crates/ui-egui/tests/it/content.rs@@ -714,7 +714,6 @@ fn format_text_panel_sets_alignment_and_lists_planned_controls_disabled() {assert!(h.state().text_style.bold);}-/// Where a mode bar tab is, by its label./// Opening right-aligned added text to edit it shows it right-aligned, as the page does, not at/// the box's left edge, where it never was.#[test]@@ -764,6 +763,7 @@ fn the_text_editor_aligns_a_narrow_box_to_its_own_edge() {);}+/// Where a mode bar tab is, by its label.fn mode_tab(h: &Harness<'static, PdfCraftApp>, label: &str) -> egui::Rect {h.get_all_by_role_and_label(egui::accesskit::Role::Button, label).map(|n| n.rect()).find(|r| r.bottom() < 120.0).expect("a mode tab")}