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", - "
getRate()
, \n" +
- "setRate(double)
public final void setRate(double value)\n" + - "
public final double getRate()\n" + - "
rate
\n" +
- "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" +
- "Sets the value of the property Property
"},
- { "C.html",
- "
Gets the value of the property Property
"},
- { "C.html",
- "Property description:"},
- { "C.html",
- "
setTestMethodProperty()
public final double isPaused()\n" + - "
paused, rate
" },
- };
- private static final String[][] NO_TEST =
- new String[][] {
- { "C.html",
- "A()"},
- };
+ checkOutput("C.html", true,
+ "getRate()
, \n"
+ + "setRate(double)
public final void setRate(double value)\n" + + "
public final double getRate()\n" + + "
rate
\n"
+ + "Timeline
is expected to",
+ "Default value:",
+ "Since:\n"
+ + "Sets the value of the property Property
",
+ "
Gets the value of the property Property
",
+ "Property description:",
+ "
setTestMethodProperty()
public final double isPaused()\n" + + "
paused, rate
");
}
+
}