diff -r 601a611d0aee -r af1a0220d0fa langtools/test/com/sun/javadoc/testJavaFX/TestJavaFX.java --- a/langtools/test/com/sun/javadoc/testJavaFX/TestJavaFX.java Fri May 09 23:31:05 2014 +0200 +++ b/langtools/test/com/sun/javadoc/testJavaFX/TestJavaFX.java Fri May 09 15:37:12 2014 -0700 @@ -26,73 +26,57 @@ * @bug 7112427 8012295 8025633 8026567 * @summary Test of the JavaFX doclet features. * @author jvalenta - * @library ../lib/ - * @build JavadocTester TestJavaFX + * @library ../lib + * @build JavadocTester * @run main TestJavaFX */ public class TestJavaFX extends JavadocTester { - private static final String[][] TEST = - new String[][] { - { "C.html", - "
See Also:
\n" + - "
getRate(), \n" + - "setRate(double)
"}, - { "C.html", - "
public final void setRate(double value)
\n" + - "
Sets the value of the property rate.
\n" + - "
\n" + - "
Property description:
" }, - { "C.html", - "
public final double getRate()
\n" + - "
Gets the value of the property rate.
\n" + - "
\n" + - "
Property description:
" }, - { "C.html", - "rate\n" + - "
Defines the direction/speed at which the Timeline is expected to"}, + public static void main(String... args) throws Exception { + TestJavaFX tester = new TestJavaFX(); + tester.runTests(); + } + + @Test + void test() { + javadoc("-d", "out", + "-sourcepath", testSrc, + "-javafx", + testSrc("C.java"), testSrc("D.java")); + checkExit(Exit.FAILED); // should be EXIT_OK -- need to fix C.java - { "C.html", - "Default value:"}, - { "C.html", - "Since:\n" + - "
JavaFX 8.0
" }, - { "C.html", - "

Sets the value of the property Property"}, - { "C.html", - "

Gets the value of the property Property"}, - { "C.html", - "Property description:"}, - { "C.html", - "setTestMethodProperty() " }, - { "C.html", - "

isPaused

\n" + - "
public final double isPaused()
\n" + - "
Gets the value of the property paused.
" }, - { "D.html", - "

Properties inherited from class C

\n" + - "paused, rate" }, - }; - private static final String[][] NO_TEST = - new String[][] { - { "C.html", - "A()"}, - }; + checkOutput("C.html", true, + "
See Also:
\n" + + "
getRate(), \n" + + "setRate(double)
", + "
public final void setRate(double value)
\n" + + "
Sets the value of the property rate.
\n" + + "
\n" + + "
Property description:
", + "
public final double getRate()
\n" + + "
Gets the value of the property rate.
\n" + + "
\n" + + "
Property description:
", + "rate\n" + + "
Defines the direction/speed at which the Timeline is expected to", + "Default value:", + "Since:\n" + + "
JavaFX 8.0
", + "

Sets the value of the property Property", + "

Gets the value of the property Property", + "Property description:", + "setTestMethodProperty() ", + "

isPaused

\n" + + "
public final double isPaused()
\n" + + "
Gets the value of the property paused.
"); - - private static final String[] ARGS = new String[] { - "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-javafx", - SRC_DIR + "/C.java", SRC_DIR + "/D.java" - }; + checkOutput("C.html", false, + "A()"); - /** - * The entry point of the test. - * @param args the array of command line arguments. - */ - public static void main(String[] args) { - TestJavaFX tester = new TestJavaFX(); - tester.run(ARGS, TEST, NO_TEST); - tester.printSummary(); + checkOutput("D.html", true, + "

Properties inherited from class C

\n" + + "paused, rate"); } + }