mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-22 19:08:29 +00:00
Fix clock-dependent form properties test (#3367)
This commit is contained in:
1 parent
4db6ac4ae2
commit
6e61b50503
1 file changed
+3
@@ -254,6 +254,9 @@ fn options_tab_sets_the_check_box_style() {
|
||||
fn button_label_is_editable_without_renaming_the_field() {
|
||||
use pdfcraft_engine::{Edit, NewField};
|
||||
let mut h = harness();
|
||||
// The byte comparisons below must not vary with the save's /ModDate.
|
||||
let session = &mut h.state_mut().session;
|
||||
*session = std::mem::take(session).with_clock(|| 1_700_000_000);
|
||||
h.state_mut().apply_edit(Edit::AddField {
|
||||
page: 0,
|
||||
rect: [40.0, 300.0, 190.0, 330.0],
|
||||
|
||||
Reference in new issue
Block a user