Skip to content

Commit 4fca9e7

Browse files
committed
set pixel count th
1 parent 6ff9de9 commit 4fca9e7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

examples_utils/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ pub mod internal {
4242
State: eframe::App,
4343
{
4444
let output_path = PathBuf::from(manifest_dir);
45-
let options = SnapshotOptions::new().threshold(2.0).output_path(output_path);
45+
let options = SnapshotOptions::new()
46+
.threshold(2.0)
47+
.failed_pixel_count_threshold(5)
48+
.output_path(output_path);
4649

4750
// Generate main screenshot
4851
let mut harness = Harness::builder()

0 commit comments

Comments
 (0)