Fix clock-dependent form properties test (#3367)

This commit is contained in:
Earl Co authored and GitHub committed 2026-10-19 02:47:55 -04:00
1 parent 4db6ac4ae2
commit 6e61b50503
1 file changed
+3
+3
View File
@@ -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],