diff --git a/crates/engine/src/tests.rs b/crates/engine/src/tests.rs index 45aa754d60..0715102152 100644 --- a/crates/engine/src/tests.rs +++ b/crates/engine/src/tests.rs @@ -8423,6 +8423,57 @@ fn repeated_xfa_print_buttons_run_their_click_script() { } } +/// A button on the page master runs its click script as the copy on the page that was clicked: +/// the field it writes next to it changes on that page only. +#[test] +fn a_page_master_button_writes_the_field_on_its_own_page() { + let template = pdfcraft_xfa::fixtures::repeated_print_button_template().replace( + "", + r#" +