Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Jun 2, 2024
1 parent 37d933b commit 0b9385e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ private static ScriptElement createScriptElement(Element element) {
scriptSource = new ScriptSource.Inline(retrieveInnerText(element), charset);
} else {
if (!content.attributes().isEmpty() ||
!content.elements().isEmpty() && !(content.value() instanceof Value.Empty)) {
!content.elements().isEmpty() || !(content.value() instanceof Value.Empty)) {
throw new ParseException(
"fx:script with reference source cannot have any elements, attributes other than charset and source, or an inner value");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ void testPropertyElement() {

DeclarationElement rootNode = fxmlComponents.rootNode();
assertEquals(new InstanceElement("VBox", new ElementContent<>(List.of(NAME_SPACE_ATTRIBUTE),
List.of(new InstancePropertyElement("elements",
List.of(new InstancePropertyElement("children",
new ElementContent<>(
List.of(),
List.of(new InstanceElement(
Expand Down

0 comments on commit 0b9385e

Please sign in to comment.