Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Integration: move eyedropper_ring tests into tests/it (#7021)

David Mann8ee9917e5d89
diff --git a/crates/ui-egui/tests/eyedropper_ring.rs b/crates/ui-egui/tests/it/eyedropper_ring.rs
similarity index 98%
rename from crates/ui-egui/tests/eyedropper_ring.rs
rename to crates/ui-egui/tests/it/eyedropper_ring.rs
index 74c232117..f93ecf06c 100644
--- a/crates/ui-egui/tests/eyedropper_ring.rs
+++ b/crates/ui-egui/tests/it/eyedropper_ring.rs
@@ -105,6 +105,7 @@ fn outer_edge_reads(img: &Shot, c: Pos2) -> bool {
#[test]
fn ring_reads_over_a_flat_area_of_its_own_colour() {
+ let _gpu = photocraft_testkit::gpu_lock();
let Some(mut h) = harness() else { return };
h.run_steps(4);
let c = setup(&mut h);
@@ -126,6 +127,7 @@ fn ring_reads_over_a_flat_area_of_its_own_colour() {
#[test]
fn show_sampling_ring_off_draws_nothing() {
+ let _gpu = photocraft_testkit::gpu_lock();
let Some(mut h) = harness() else { return };
h.run_steps(4);
let c = setup(&mut h);
diff --git a/crates/ui-egui/tests/it/main.rs b/crates/ui-egui/tests/it/main.rs
index a65e09431..2c90cf798 100644
--- a/crates/ui-egui/tests/it/main.rs
+++ b/crates/ui-egui/tests/it/main.rs
@@ -17,6 +17,7 @@ mod custom_print_paper;
mod display_shadows;
mod drag_preview_canvas;
mod export_as_scaling;
+mod eyedropper_ring;
mod full_res_preview;
mod gpu_device_loss;
mod layout_perf;