Preferences: the Performance hover test covers Low-Latency Drawing

On the desktop, the test now also hovers the Low-Latency Drawing row and checks that it shows its own sentence and no other row's.
This commit is contained in:
dotCooCoo
2026-11-18 16:43:12 -08:00
parent b6926e9a31
commit 6f3f373cd5
+6 -5
View File
@@ -2433,14 +2433,15 @@ fn hovering_a_performance_row_shows_its_description() {
let row = |texts: &[(String, egui::Rect)], label: &str| {
texts.iter().rev().find(|(t, _)| t == label).map(|(_, r)| r.center()).unwrap_or_else(|| panic!("no `{label}` in {texts:?}"))
};
let mut rows = vec![
("GPU Performance", "gpuPerformance"),
("Animated Zoom", "animatedZoom"),
("Graphics Processor:", "gpuPreference"),
let mut rows = vec![("GPU Performance", "gpuPerformance"), ("Animated Zoom", "animatedZoom"), ("Graphics Processor:", "gpuPreference")];
if !cfg!(target_arch = "wasm32") {
rows.push(("Low-Latency Drawing", "lowLatencyDrawing"));
}
rows.extend([
("History States:", "historyStates"),
("Real-time Drawing and Editing", "realTimeDrawing"),
("Render Threads (-1 = Automatic):", "renderThreads"),
];
]);
if cfg!(target_os = "linux") {
rows.push(("Linux Display Server:", "linuxDisplayServer"));
}