Tue, 14 May 2013 10:14:56 -0700
8012295: Cleanup JavaFX features in standard doclet
Reviewed-by: darcy
jjg@1606 | 1 | /* |
jjg@1606 | 2 | * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
jjg@1606 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jjg@1606 | 4 | * |
jjg@1606 | 5 | * This code is free software; you can redistribute it and/or modify it |
jjg@1606 | 6 | * under the terms of the GNU General Public License version 2 only, as |
jjg@1606 | 7 | * published by the Free Software Foundation. |
jjg@1606 | 8 | * |
jjg@1606 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
jjg@1606 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jjg@1606 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jjg@1606 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
jjg@1606 | 13 | * accompanied this code). |
jjg@1606 | 14 | * |
jjg@1606 | 15 | * You should have received a copy of the GNU General Public License version |
jjg@1606 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
jjg@1606 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jjg@1606 | 18 | * |
jjg@1606 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
jjg@1606 | 20 | * or visit www.oracle.com if you need additional information or have any |
jjg@1606 | 21 | * questions. |
jjg@1606 | 22 | */ |
jjg@1606 | 23 | |
jjg@1606 | 24 | /* |
jjg@1606 | 25 | * @test |
jjg@1606 | 26 | * @bug 7112427 |
jjg@1606 | 27 | * @summary Test of the JavaFX doclet features. |
jjg@1606 | 28 | * @author jvalenta |
jjg@1606 | 29 | * @library ../lib/ |
jjg@1606 | 30 | * @build JavadocTester TestJavaFX |
jjg@1606 | 31 | * @run main TestJavaFX |
jjg@1606 | 32 | */ |
jjg@1606 | 33 | |
jjg@1606 | 34 | public class TestJavaFX extends JavadocTester { |
jjg@1606 | 35 | |
jjg@1606 | 36 | private static final String BUG_ID = "7112427"; |
jjg@1606 | 37 | |
jjg@1606 | 38 | private static final String[][] TEST = |
jjg@1606 | 39 | new String[][] { |
jjg@1606 | 40 | {"./" + BUG_ID + "/C.html", |
jjg@1743 | 41 | "<dt><span class=\"strong\">See Also:</span></dt>" + NL + "<dd><a href=\"C.html#getRate()\"><code>getRate()</code></a>, " + NL + |
jjg@1606 | 42 | "<a href=\"C.html#setRate(double)\"><code>setRate(double)</code></a></dd>"}, |
jjg@1606 | 43 | {"./" + BUG_ID + "/C.html", |
jjg@1606 | 44 | "<pre>public final void setRate(double value)</pre>" + NL + |
jjg@1606 | 45 | "<div class=\"block\">Sets the value of the property rate.</div>" + NL + |
jjg@1744 | 46 | "<dl>" + NL + "<dt><span class=\"strong\">Property description:</span></dt>" }, |
jjg@1606 | 47 | {"./" + BUG_ID + "/C.html", |
jjg@1606 | 48 | "<pre>public final double getRate()</pre>" + NL + |
jjg@1606 | 49 | "<div class=\"block\">Gets the value of the property rate.</div>" + NL + |
jjg@1744 | 50 | "<dl>" + NL + "<dt><span class=\"strong\">Property description:</span></dt>" }, |
jjg@1606 | 51 | {"./" + BUG_ID + "/C.html", |
jjg@1606 | 52 | "<td class=\"colLast\"><code><strong><a href=\"C.html#rateProperty\">rate</a></strong></code>" + NL + |
jjg@1606 | 53 | "<div class=\"block\">Defines the direction/speed at which the <code>Timeline</code> is expected to"}, |
jjg@1749 | 54 | |
jjg@1606 | 55 | {"./" + BUG_ID + "/C.html", |
jjg@1606 | 56 | "<span class=\"strong\">Default value:</span>"}, |
jjg@1606 | 57 | {"./" + BUG_ID + "/C.html", |
jjg@1749 | 58 | "<p>Sets the value of the property <code>Property</code>"}, |
jjg@1606 | 59 | {"./" + BUG_ID + "/C.html", |
jjg@1749 | 60 | "<p>Gets the value of the property <code>Property</code>"}, |
jjg@1606 | 61 | {"./" + BUG_ID + "/C.html", |
jjg@1606 | 62 | "<span class=\"strong\">Property description:</span>"}, |
jjg@1606 | 63 | {"./" + BUG_ID + "/C.html", |
jjg@1606 | 64 | "<td class=\"colLast\"><code><strong><a href=\"C.html#setTestMethodProperty()\">setTestMethodProperty</a></strong>()</code> </td>" }, |
jjg@1606 | 65 | {"./" + BUG_ID + "/C.html", |
jjg@1606 | 66 | "<h4>isPaused</h4>" + NL + |
jjg@1606 | 67 | "<pre>public final double isPaused()</pre>" + NL + |
jjg@1606 | 68 | "<div class=\"block\">Gets the value of the property paused.</div>" }, |
jjg@1606 | 69 | {"./" + BUG_ID + "/D.html", |
jjg@1606 | 70 | "<h3>Properties inherited from class <a href=\"C.html\" title=\"class in <Unnamed>\">C</a></h3>" + NL + |
jjg@1606 | 71 | "<code><a href=\"C.html#pausedProperty\">paused</a>, <a href=\"C.html#rateProperty\">rate</a></code></li>" }, |
jjg@1606 | 72 | }; |
jjg@1606 | 73 | private static final String[][] NO_TEST = |
jjg@1606 | 74 | new String[][] { |
jjg@1606 | 75 | {"./" + BUG_ID + "/C.html", |
jjg@1606 | 76 | "A()"}, |
jjg@1606 | 77 | }; |
jjg@1606 | 78 | |
jjg@1606 | 79 | |
jjg@1606 | 80 | private static final String[] ARGS = new String[] { |
jjg@1606 | 81 | "-d", BUG_ID, "-sourcepath", SRC_DIR, "-private", "-javafx", |
jjg@1606 | 82 | SRC_DIR + FS + "C.java", SRC_DIR + FS + "D.java" |
jjg@1606 | 83 | }; |
jjg@1606 | 84 | |
jjg@1606 | 85 | /** |
jjg@1606 | 86 | * The entry point of the test. |
jjg@1606 | 87 | * @param args the array of command line arguments. |
jjg@1606 | 88 | */ |
jjg@1606 | 89 | public static void main(String[] args) { |
jjg@1606 | 90 | TestJavaFX tester = new TestJavaFX(); |
jjg@1606 | 91 | run(tester, ARGS, TEST, NO_TEST); |
jjg@1606 | 92 | tester.printSummary(); |
jjg@1606 | 93 | } |
jjg@1606 | 94 | |
jjg@1606 | 95 | /** |
jjg@1606 | 96 | * {@inheritDoc} |
jjg@1606 | 97 | */ |
jjg@1606 | 98 | public String getBugId() { |
jjg@1606 | 99 | return BUG_ID; |
jjg@1606 | 100 | } |
jjg@1606 | 101 | |
jjg@1606 | 102 | /** |
jjg@1606 | 103 | * {@inheritDoc} |
jjg@1606 | 104 | */ |
jjg@1606 | 105 | public String getBugName() { |
jjg@1606 | 106 | return getClass().getName(); |
jjg@1606 | 107 | } |
jjg@1606 | 108 | } |