diff --git a/test/langtools/jdk/javadoc/doclet/testJavaFX/TestJavaFxMode.java b/test/langtools/jdk/javadoc/doclet/testJavaFX/TestJavaFxMode.java
index ae3155823d8..ae3d8de1491 100644
--- a/test/langtools/jdk/javadoc/doclet/testJavaFX/TestJavaFxMode.java
+++ b/test/langtools/jdk/javadoc/doclet/testJavaFX/TestJavaFxMode.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -77,13 +77,16 @@ public class TestJavaFxMode extends JavadocTester {
checkExit(Exit.OK);
checkOrder("pkg/A.html",
"Property Summary",
- "javafx.beans.property.Property", "prop",
- "Field Summary",
- "javafx.beans.property.Property", "prop",
- "Method Summary",
- "getProp", "Gets the value of the property prop.",
"""
- propProperty""", "Sets the value of the property prop.");
+ prop""",
+ "Field Summary",
+ """
+ prop""",
+ "Method Summary",
+ """
+ getProp""",
+ """
+ propProperty""");
}
void createTestClass(Path src) throws Exception {