mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-06 18:52:36 +00:00
test(ui): pin the whole-page allowance ceiling per target
This commit is contained in:
1 parent
1a2104d428
commit
bde72b6f26
1 file changed
+1
-1
@@ -1390,7 +1390,7 @@ fn the_page_allowance_is_eight_on_screen_rasters_within_its_limits() {
|
||||
assert_eq!(cache::page_budget(20 * mib), 160 * mib);
|
||||
let ceiling = cache::page_budget(usize::MAX);
|
||||
assert_eq!(cache::page_budget(64 * mib), ceiling);
|
||||
assert!((256 * mib..=384 * mib).contains(&ceiling), "{ceiling}");
|
||||
assert_eq!(ceiling, if cfg!(target_arch = "wasm32") { 256 * mib } else { 384 * mib });
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user