@@ -6,13 +6,13 @@ use crate::backends::{TestLogBackend, TestNavigatorBackend, TestUiBackend};
66use crate :: environment:: RenderInterface ;
77use crate :: fs_commands:: { FsCommand , TestFsCommandProvider } ;
88use crate :: image_trigger:: ImageTrigger ;
9- use crate :: options:: image_comparison:: ImageComparison ;
109use crate :: options:: TestOptions ;
10+ use crate :: options:: image_comparison:: ImageComparison ;
1111use crate :: runner:: automation:: perform_automated_event;
1212use crate :: runner:: image_test:: capture_and_compare_image;
1313use crate :: runner:: trace:: compare_trace_output;
1414use crate :: test:: Test ;
15- use anyhow:: { anyhow , Result } ;
15+ use anyhow:: { Result , anyhow } ;
1616use ruffle_core:: backend:: navigator:: NullExecutor ;
1717use ruffle_core:: limits:: ExecutionLimit ;
1818use ruffle_core:: tag_utils:: SwfMovie ;
@@ -21,7 +21,7 @@ use ruffle_input_format::InputInjector;
2121use ruffle_render:: backend:: { RenderBackend , ViewportDimensions } ;
2222use ruffle_socket_format:: SocketEvent ;
2323use std:: collections:: HashMap ;
24- use std:: sync:: { mpsc , Arc , Mutex } ;
24+ use std:: sync:: { Arc , Mutex , mpsc } ;
2525use std:: time:: Duration ;
2626use vfs:: VfsPath ;
2727
@@ -196,7 +196,10 @@ impl TestRunner {
196196 FsCommand :: CaptureImage ( name) => {
197197 if let Some ( image_comparison) = self . images . remove ( & name) {
198198 if image_comparison. trigger != ImageTrigger :: FsCommand {
199- return Err ( anyhow ! ( "Encountered fscommand to capture and compare image '{name}', but the trigger was expected to be {:?}" , image_comparison. trigger) ) ;
199+ return Err ( anyhow ! (
200+ "Encountered fscommand to capture and compare image '{name}', but the trigger was expected to be {:?}" ,
201+ image_comparison. trigger
202+ ) ) ;
200203 }
201204 capture_and_compare_image (
202205 & self . root_path ,
@@ -207,7 +210,9 @@ impl TestRunner {
207210 self . render_interface . as_deref ( ) ,
208211 ) ?;
209212 } else {
210- return Err ( anyhow ! ( "Encountered fscommand to capture and compare image '{name}', but no [image_comparison] was set up for this." ) ) ;
213+ return Err ( anyhow ! (
214+ "Encountered fscommand to capture and compare image '{name}', but no [image_comparison] was set up for this."
215+ ) ) ;
211216 }
212217 }
213218 }
0 commit comments