langtools/test/com/sun/javadoc/testJavaFX/TestJavaFX.java
changeset 24072 e7549dcbc4af
parent 24065 fc4022e50129
child 24399 af1a0220d0fa
equal deleted inserted replaced
24071:b0845717434e 24072:e7549dcbc4af
    31  * @run main TestJavaFX
    31  * @run main TestJavaFX
    32  */
    32  */
    33 
    33 
    34 public class TestJavaFX extends JavadocTester {
    34 public class TestJavaFX extends JavadocTester {
    35 
    35 
    36     private static final String BUG_ID = "7112427";
       
    37 
       
    38     private static final String[][] TEST =
    36     private static final String[][] TEST =
    39         new String[][] {
    37         new String[][] {
    40             {"./" + BUG_ID + "/C.html",
    38             { "C.html",
    41                 "<dt><span class=\"seeLabel\">See Also:</span></dt>\n" +
    39                 "<dt><span class=\"seeLabel\">See Also:</span></dt>\n" +
    42                 "<dd><a href=\"C.html#getRate--\"><code>getRate()</code></a>, \n" +
    40                 "<dd><a href=\"C.html#getRate--\"><code>getRate()</code></a>, \n" +
    43                 "<a href=\"C.html#setRate-double-\"><code>setRate(double)</code></a></dd>"},
    41                 "<a href=\"C.html#setRate-double-\"><code>setRate(double)</code></a></dd>"},
    44             {"./" + BUG_ID + "/C.html",
    42             { "C.html",
    45                 "<pre>public final&nbsp;void&nbsp;setRate(double&nbsp;value)</pre>\n" +
    43                 "<pre>public final&nbsp;void&nbsp;setRate(double&nbsp;value)</pre>\n" +
    46                 "<div class=\"block\">Sets the value of the property rate.</div>\n" +
    44                 "<div class=\"block\">Sets the value of the property rate.</div>\n" +
    47                 "<dl>\n" +
    45                 "<dl>\n" +
    48                 "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>" },
    46                 "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>" },
    49             {"./" + BUG_ID + "/C.html",
    47             { "C.html",
    50                 "<pre>public final&nbsp;double&nbsp;getRate()</pre>\n" +
    48                 "<pre>public final&nbsp;double&nbsp;getRate()</pre>\n" +
    51                 "<div class=\"block\">Gets the value of the property rate.</div>\n" +
    49                 "<div class=\"block\">Gets the value of the property rate.</div>\n" +
    52                 "<dl>\n" +
    50                 "<dl>\n" +
    53                 "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>" },
    51                 "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>" },
    54             {"./" + BUG_ID + "/C.html",
    52             { "C.html",
    55                 "<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"C.html#rateProperty\">rate</a></span></code>\n" +
    53                 "<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"C.html#rateProperty\">rate</a></span></code>\n" +
    56                 "<div class=\"block\">Defines the direction/speed at which the <code>Timeline</code> is expected to"},
    54                 "<div class=\"block\">Defines the direction/speed at which the <code>Timeline</code> is expected to"},
    57 
    55 
    58             {"./" + BUG_ID + "/C.html",
    56             { "C.html",
    59                 "<span class=\"simpleTagLabel\">Default value:</span>"},
    57                 "<span class=\"simpleTagLabel\">Default value:</span>"},
    60             {"./" + BUG_ID + "/C.html",
    58             { "C.html",
    61                 "<span class=\"simpleTagLabel\">Since:</span></dt>\n" +
    59                 "<span class=\"simpleTagLabel\">Since:</span></dt>\n" +
    62                 "<dd>JavaFX 8.0</dd>" },
    60                 "<dd>JavaFX 8.0</dd>" },
    63             {"./" + BUG_ID + "/C.html",
    61             { "C.html",
    64                 "<p>Sets the value of the property <code>Property</code>"},
    62                 "<p>Sets the value of the property <code>Property</code>"},
    65             {"./" + BUG_ID + "/C.html",
    63             { "C.html",
    66                 "<p>Gets the value of the property <code>Property</code>"},
    64                 "<p>Gets the value of the property <code>Property</code>"},
    67             {"./" + BUG_ID + "/C.html",
    65             { "C.html",
    68                 "<span class=\"simpleTagLabel\">Property description:</span>"},
    66                 "<span class=\"simpleTagLabel\">Property description:</span>"},
    69             {"./" + BUG_ID + "/C.html",
    67             { "C.html",
    70                 "<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"C.html#setTestMethodProperty--\">setTestMethodProperty</a></span>()</code>&nbsp;</td>" },
    68                 "<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"C.html#setTestMethodProperty--\">setTestMethodProperty</a></span>()</code>&nbsp;</td>" },
    71             {"./" + BUG_ID + "/C.html",
    69             { "C.html",
    72                 "<h4>isPaused</h4>\n" +
    70                 "<h4>isPaused</h4>\n" +
    73                 "<pre>public final&nbsp;double&nbsp;isPaused()</pre>\n" +
    71                 "<pre>public final&nbsp;double&nbsp;isPaused()</pre>\n" +
    74                 "<div class=\"block\">Gets the value of the property paused.</div>" },
    72                 "<div class=\"block\">Gets the value of the property paused.</div>" },
    75             {"./" + BUG_ID + "/D.html",
    73             { "D.html",
    76                 "<h3>Properties inherited from class&nbsp;<a href=\"C.html\" title=\"class in &lt;Unnamed&gt;\">C</a></h3>\n" +
    74                 "<h3>Properties inherited from class&nbsp;<a href=\"C.html\" title=\"class in &lt;Unnamed&gt;\">C</a></h3>\n" +
    77                 "<code><a href=\"C.html#pausedProperty\">paused</a>, <a href=\"C.html#rateProperty\">rate</a></code></li>" },
    75                 "<code><a href=\"C.html#pausedProperty\">paused</a>, <a href=\"C.html#rateProperty\">rate</a></code></li>" },
    78         };
    76         };
    79     private static final String[][] NO_TEST =
    77     private static final String[][] NO_TEST =
    80         new String[][] {
    78         new String[][] {
    81             {"./" + BUG_ID + "/C.html",
    79             { "C.html",
    82                 "A()"},
    80                 "A()"},
    83         };
    81         };
    84 
    82 
    85 
    83 
    86     private static final String[] ARGS = new String[] {
    84     private static final String[] ARGS = new String[] {
    87         "-d", BUG_ID, "-sourcepath", SRC_DIR, "-javafx",
    85         "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-javafx",
    88         SRC_DIR + "/C.java", SRC_DIR + "/D.java"
    86         SRC_DIR + "/C.java", SRC_DIR + "/D.java"
    89     };
    87     };
    90 
    88 
    91     /**
    89     /**
    92      * The entry point of the test.
    90      * The entry point of the test.
    95     public static void main(String[] args) {
    93     public static void main(String[] args) {
    96         TestJavaFX tester = new TestJavaFX();
    94         TestJavaFX tester = new TestJavaFX();
    97         tester.run(ARGS, TEST, NO_TEST);
    95         tester.run(ARGS, TEST, NO_TEST);
    98         tester.printSummary();
    96         tester.printSummary();
    99     }
    97     }
   100 
       
   101     /**
       
   102      * {@inheritDoc}
       
   103      */
       
   104     public String getBugId() {
       
   105         return BUG_ID;
       
   106     }
       
   107 
       
   108     /**
       
   109      * {@inheritDoc}
       
   110      */
       
   111     public String getBugName() {
       
   112         return getClass().getName();
       
   113     }
       
   114 }
    98 }