From 0fd66f49627897b8de412d25b59b84598dbd1758 Mon Sep 17 00:00:00 2001 From: Wojciech Kozyra Date: Mon, 4 Nov 2024 18:19:11 +0100 Subject: [PATCH] [tests] Regenerate snapshot tests (no system fonts) --- snapshot_tests/snapshots | 2 +- src/snapshot_tests/test_case.rs | 2 +- src/snapshot_tests/tests.rs | 3 --- src/snapshot_tests/utils.rs | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/snapshot_tests/snapshots b/snapshot_tests/snapshots index fd3ef30ac..b208a71e1 160000 --- a/snapshot_tests/snapshots +++ b/snapshot_tests/snapshots @@ -1 +1 @@ -Subproject commit fd3ef30acb19aded98515cad20a16b0c5c89d7a9 +Subproject commit b208a71e17a3c1c2dfd751b36ba6de35e583a1ec diff --git a/src/snapshot_tests/test_case.rs b/src/snapshot_tests/test_case.rs index 479b81b04..3cd2ce00b 100644 --- a/src/snapshot_tests/test_case.rs +++ b/src/snapshot_tests/test_case.rs @@ -37,7 +37,7 @@ impl Default for TestCase { timestamps: vec![Duration::from_secs(0)], scene_updates: Updates::Scenes(vec![]), only: false, - allowed_error: 20.0, + allowed_error: 1.0, } } } diff --git a/src/snapshot_tests/tests.rs b/src/snapshot_tests/tests.rs index 714799c60..e14460595 100644 --- a/src/snapshot_tests/tests.rs +++ b/src/snapshot_tests/tests.rs @@ -1188,7 +1188,6 @@ fn text_snapshot_tests() -> Vec { include_str!("../../snapshot_tests/text/wrap_glyph.scene.json"), DEFAULT_RESOLUTION, ), - allowed_error: 325.7, ..Default::default() }, TestCase { @@ -1205,7 +1204,6 @@ fn text_snapshot_tests() -> Vec { include_str!("../../snapshot_tests/text/wrap_word.scene.json"), DEFAULT_RESOLUTION, ), - allowed_error: 321.8, ..Default::default() }, TestCase { @@ -1722,7 +1720,6 @@ fn view_snapshot_tests() -> Vec { }, TestCase { name: "view/border_radius_box_shadow_overflow_fit", - only: true, scene_updates: Updates::Scene( include_str!("../../snapshot_tests/view/border_radius_box_shadow_overflow_fit.scene.json"), DEFAULT_RESOLUTION, diff --git a/src/snapshot_tests/utils.rs b/src/snapshot_tests/utils.rs index d79b8cb67..893133f82 100644 --- a/src/snapshot_tests/utils.rs +++ b/src/snapshot_tests/utils.rs @@ -85,7 +85,7 @@ pub(super) fn create_renderer() -> Renderer { stream_fallback_timeout: Duration::from_secs(3), wgpu_features: WgpuFeatures::default(), wgpu_ctx: Some(global_wgpu_ctx(false, Default::default())), - load_system_fonts: true, + load_system_fonts: false, }) .unwrap(); renderer