From ce8d575f77d544870bcfb53481792ef67679986b Mon Sep 17 00:00:00 2001 From: eyelidlessness Date: Sat, 4 May 2024 14:02:45 -0700 Subject: [PATCH] FormDefTest.java - port second test focused on interaction of repeat/output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Includes two alternates: 1. Adapt direct port to use proposed `Scenario` API 2. Fix apparent mistakes in test: it doesn’t exercise `jr:itext`, correctly close the itext id attribute Adds proposed `labelRef` to form fixture DSL. --- .../src/test/fixtures/xform-dsl/index.ts | 21 ++ packages/scenario/test/repeat-output.test.ts | 240 ++++++++++++++++++ 2 files changed, 261 insertions(+) diff --git a/packages/common/src/test/fixtures/xform-dsl/index.ts b/packages/common/src/test/fixtures/xform-dsl/index.ts index 4612441e..68ed7c6e 100644 --- a/packages/common/src/test/fixtures/xform-dsl/index.ts +++ b/packages/common/src/test/fixtures/xform-dsl/index.ts @@ -203,6 +203,27 @@ export const label = (innerHtml: string): XFormsElement => { return new StringLiteralXFormsElement('label', emptyMap(), innerHtml); }; +/** + * **PORTING NOTES** + * + * Since: + * + * 1. {@link label} does not support a `ref` attribute in its ported signature + * 2. I'm reticent to add new cases of signature overloading + * 3. I do not see any test cases in JavaRosa using both the form definition DSL + * with a structure like `