Retire the obsolete source close event and use current drawer controls in tests

This commit is contained in:
2026-09-13 07:10:23 -07:00
parent cb941367d7
commit f714a25bbc
4 changed files with 19 additions and 18 deletions
+10 -10
View File
@@ -1531,6 +1531,16 @@ fn checks(app: &App) -> View<'_, Message> {
scrollable(out.padding(24)).into()
}
#[cfg(all(test, debug_assertions))]
pub(crate) fn captured_text_drawer_resize(app: &App) -> Message {
text_workspace::capture_drawer_resize(app)
}
#[cfg(all(test, debug_assertions))]
pub(crate) fn captured_source_reference_stale_summary(app: &App) -> bool {
text_workspace::summary_visibility_tests::rendered_stale(app)
}
#[cfg(test)]
mod tests {
use super::short;
@@ -1584,13 +1594,3 @@ mod tests {
assert_eq!(short("e\u{0301}B", 1), "…");
}
}
#[cfg(all(test, debug_assertions))]
pub(crate) fn captured_text_drawer_resize(app: &App) -> Message {
text_workspace::capture_drawer_resize(app)
}
#[cfg(all(test, debug_assertions))]
pub(crate) fn captured_source_reference_stale_summary(app: &App) -> bool {
text_workspace::summary_visibility_tests::rendered_stale(app)
}