mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-05 01:59:36 +00:00
Preferences test: the recent items count is 20
The test checked only that the count was whole, so another default would pass. It asserts 20, InDesign's default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e5e3f091d3
commit
cb9d23dd52
1 file changed
+1
-1
@@ -7435,7 +7435,7 @@ mod tests {
|
||||
let labels = dialog_frame(&mut app, &ctx, screen, vec![]);
|
||||
visible_label(&labels, screen, "Number of Recent Items to Display:");
|
||||
let count = app.ui.dialog.as_ref().unwrap().n("recentFilesMax").unwrap();
|
||||
assert_eq!(count.fract(), 0.0);
|
||||
assert_eq!(count, 20.0, "InDesign's default");
|
||||
visible_label(&labels, screen, &format!("{count}"));
|
||||
assert!(!labels.iter().any(|(t, _, _)| t.trim() == format!("{count:.1}")), "no decimal shown");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user