Nest the deleting batch in the regression test

This commit is contained in:
srt8hellcat2-ui authored and GitHub committed 2026-10-23 13:53:47 -04:00
1 parent 12d89c551c
commit f3e8a9775a
1 file changed
+7 -1
+7 -1
View File
@@ -544,7 +544,13 @@ fn saving_after_a_batch_that_deletes_pages_rewrites_the_file() {
let original = s.save_bytes(id).unwrap();
let batch = Edit::Batch {
label: "Delete and rotate".into(),
edits: vec![Edit::DeletePages { pages: vec![1, 2, 3, 4] }, Edit::RotatePages { pages: vec![0], degrees: 90 }],
edits: vec![
Edit::Batch {
label: "Delete pages".into(),
edits: vec![Edit::DeletePages { pages: vec![1, 2, 3, 4] }],
},
Edit::RotatePages { pages: vec![0], degrees: 90 },
],
};
s.apply(id, batch).unwrap();
let saved = s.save_bytes(id).unwrap();