This commit is contained in:
bflatastic committed 2026-10-13 10:38:46 +07:00
commit e325de9db4
1 file changed
+4 -2
+4 -2
View File
@@ -94,8 +94,10 @@ fn export_dialog_is_unchanged_in_a_tall_window() {
assert_fits(&h, "Export at 1600×1000");
let dialog = rect(&h, "dialog:window");
// (846 tall as before #781: the whole dialog, nothing scrolled away; 615 wide since the
// format row gained JPEG XL, #780)
assert!((dialog.height() - 846.0).abs() <= 1.0, "{dialog:?}");
// format row gained JPEG XL, #780. On macOS the dialog has one more row, "Add to Apple Photos"
// (#236), so it is 876 tall there)
let height = if cfg!(target_os = "macos") { 876.0 } else { 846.0 };
assert!((dialog.height() - height).abs() <= 1.0, "{dialog:?}");
assert!((dialog.width() - 615.2).abs() <= 1.0, "{dialog:?}");
}