mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-14 19:27:01 -04:00
Merge PR #1018
This commit is contained in:
commit
e325de9db4
1 file changed
+4
-2
@@ -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:?}");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user