mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-06 02:21:45 +00:00
Nest the deleting batch in the regression test
This commit is contained in:
1 parent
12d89c551c
commit
f3e8a9775a
1 file changed
+7
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user