test/langtools/jdk/javadoc/doclet/testJavaFX/TestJavaFX.java
author bpatel
Tue, 06 Mar 2018 10:45:47 -0800
changeset 49139 771616d26ca1
parent 48654 36f58bd6269f
child 49879 601277b1d582
permissions -rw-r--r--
8182765: HTML5 must be the default javadoc codegen mode in the near future Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     1
/*
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
     2
 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     4
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     8
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    13
 * accompanied this code).
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    14
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    18
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    21
 * questions.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    22
 */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    23
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    24
/*
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    25
 * @test
44815
2a0f6c7033bd 8178830: standard doclet: -javafx option should be unhidden
ksrini
parents: 44297
diff changeset
    26
 * @bug 7112427 8012295 8025633 8026567 8061305 8081854 8150130 8162363
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
    27
 *      8167967 8172528 8175200 8178830 8182257 8186332 8182765
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    28
 * @summary Test of the JavaFX doclet features.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    29
 * @author jvalenta
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    30
 * @library ../lib
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 36276
diff changeset
    31
 * @modules jdk.javadoc/jdk.javadoc.internal.tool
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    32
 * @build JavadocTester
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    33
 * @run main TestJavaFX
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    34
 */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    35
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    36
public class TestJavaFX extends JavadocTester {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    37
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    38
    public static void main(String... args) throws Exception {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    39
        TestJavaFX tester = new TestJavaFX();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    40
        tester.runTests();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    41
    }
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    42
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    43
    @Test
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
    44
    void test1() {
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
    45
        javadoc("-d", "out1",
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    46
                "-sourcepath", testSrc,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    47
                "-javafx",
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
    48
                "-package",
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
    49
                "pkg1");
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
    50
        checkExit(Exit.OK);
17572
1081a023532f 8012295: Cleanup JavaFX features in standard doclet
jjg
parents: 17567
diff changeset
    51
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
    52
        checkOutput("pkg1/C.html", true,
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    53
                "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
    54
                + "<dd><a href=\"#getRate()\"><code>getRate()</code></a>, \n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
    55
                + "<a href=\"#setRate(double)\"><code>setRate(double)</code></a></dd>",
44297
e03f5fb3714b 8175200: Long method signatures disturb Method Summary table
bpatel
parents: 43573
diff changeset
    56
                "<pre>public final&nbsp;void&nbsp;setRate&#8203;(double&nbsp;value)</pre>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    57
                + "<div class=\"block\">Sets the value of the property rate.</div>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    58
                + "<dl>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    59
                + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>",
47284
355349babaf4 8186332: Fix method signature in method summary table
bpatel
parents: 47216
diff changeset
    60
                "<pre>public final&nbsp;double&nbsp;getRate()</pre>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    61
                + "<div class=\"block\">Gets the value of the property rate.</div>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    62
                + "<dl>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    63
                + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>",
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
    64
                "<td class=\"colFirst\"><code><a href=\"C.DoubleProperty.html\" "
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    65
                + "title=\"class in pkg1\">C.DoubleProperty</a></code></td>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    66
                + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
    67
                + "<a href=\"#rateProperty\">rate</a></span></code></th>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    68
                + "<td class=\"colLast\">\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    69
                + "<div class=\"block\">Defines the direction/speed at which the "
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    70
                + "<code>Timeline</code> is expected to\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    71
                + " be played.</div>\n</td>",
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    72
                "<span class=\"simpleTagLabel\">Default value:</span>",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    73
                "<span class=\"simpleTagLabel\">Since:</span></dt>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    74
                + "<dd>JavaFX 8.0</dd>",
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    75
                "<p>Sets the value of the property <code>Property</code>",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    76
                "<p>Gets the value of the property <code>Property</code>",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    77
                "<span class=\"simpleTagLabel\">Property description:</span>",
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
    78
                "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
    79
                + "<a href=\"#setTestMethodProperty()\">"
47284
355349babaf4 8186332: Fix method signature in method summary table
bpatel
parents: 47216
diff changeset
    80
                + "setTestMethodProperty</a></span>()</code></th>",
41452
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
    81
                "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
    82
                + "<a href=\"#pausedProperty\">paused</a></span></code></th>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    83
                + "<td class=\"colLast\">\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    84
                + "<div class=\"block\">Defines if paused.</div>",
41452
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
    85
                "<h4>paused</h4>\n"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
    86
                + "<pre>public final&nbsp;<a href=\"C.BooleanProperty.html\" "
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    87
                + "title=\"class in pkg1\">C.BooleanProperty</a> pausedProperty</pre>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    88
                + "<div class=\"block\">Defines if paused. The second line.</div>",
41452
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
    89
                "<h4>isPaused</h4>\n"
47284
355349babaf4 8186332: Fix method signature in method summary table
bpatel
parents: 47216
diff changeset
    90
                + "<pre>public final&nbsp;double&nbsp;isPaused()</pre>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    91
                + "<div class=\"block\">Gets the value of the property paused.</div>",
41452
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
    92
                "<h4>setPaused</h4>\n"
44297
e03f5fb3714b 8175200: Long method signatures disturb Method Summary table
bpatel
parents: 43573
diff changeset
    93
                + "<pre>public final&nbsp;void&nbsp;setPaused&#8203;(boolean&nbsp;value)</pre>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    94
                + "<div class=\"block\">Sets the value of the property paused.</div>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    95
                + "<dl>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    96
                + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    97
                + "<dd>Defines if paused. The second line.</dd>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    98
                + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
    99
                + "<dd>false</dd>",
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   100
                "<h4>isPaused</h4>\n"
47284
355349babaf4 8186332: Fix method signature in method summary table
bpatel
parents: 47216
diff changeset
   101
                + "<pre>public final&nbsp;double&nbsp;isPaused()</pre>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   102
                + "<div class=\"block\">Gets the value of the property paused.</div>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   103
                + "<dl>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   104
                + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   105
                + "<dd>Defines if paused. The second line.</dd>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   106
                + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   107
                + "<dd>false</dd>",
41452
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
   108
                "<h4>rate</h4>\n"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   109
                + "<pre>public final&nbsp;<a href=\"C.DoubleProperty.html\" "
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   110
                + "title=\"class in pkg1\">C.DoubleProperty</a> rateProperty</pre>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   111
                + "<div class=\"block\">Defines the direction/speed at which the "
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   112
                + "<code>Timeline</code> is expected to\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   113
                + " be played. This is the second line.</div>",
41452
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
   114
                "<h4>setRate</h4>\n"
44297
e03f5fb3714b 8175200: Long method signatures disturb Method Summary table
bpatel
parents: 43573
diff changeset
   115
                + "<pre>public final&nbsp;void&nbsp;setRate&#8203;(double&nbsp;value)</pre>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   116
                + "<div class=\"block\">Sets the value of the property rate.</div>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   117
                + "<dl>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   118
                + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   119
                + "<dd>Defines the direction/speed at which the <code>Timeline</code> is expected to\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   120
                + " be played. This is the second line.</dd>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   121
                + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   122
                + "<dd>11</dd>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   123
                + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   124
                + "<dd>JavaFX 8.0</dd>",
41452
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
   125
                "<h4>getRate</h4>\n"
47284
355349babaf4 8186332: Fix method signature in method summary table
bpatel
parents: 47216
diff changeset
   126
                + "<pre>public final&nbsp;double&nbsp;getRate()</pre>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   127
                + "<div class=\"block\">Gets the value of the property rate.</div>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   128
                + "<dl>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   129
                + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   130
                + "<dd>Defines the direction/speed at which the <code>Timeline</code> is expected to\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   131
                + " be played. This is the second line.</dd>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   132
                + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   133
                + "<dd>11</dd>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   134
                + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   135
                + "<dd>JavaFX 8.0</dd>",
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   136
                "<h3>Property Summary</h3>\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   137
                + "<table class=\"memberSummary\">\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   138
                + "<caption><span>Properties</span><span class=\"tabEnd\">&nbsp;</span></caption>",
45908
df7fadfd702f 8182257: Duplicate anchor ids in generated javadoc pages
bpatel
parents: 44815
diff changeset
   139
                "<tr class=\"altColor\">\n"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   140
                + "<td class=\"colFirst\"><code><a href=\"C.BooleanProperty.html\" title=\"class in pkg1\">C.BooleanProperty</a></code></td>\n",
45908
df7fadfd702f 8182257: Duplicate anchor ids in generated javadoc pages
bpatel
parents: 44815
diff changeset
   141
                "<tr class=\"rowColor\">\n"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   142
                + "<td class=\"colFirst\"><code><a href=\"C.DoubleProperty.html\" title=\"class in pkg1\">C.DoubleProperty</a></code></td>\n");
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   143
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   144
        checkOutput("pkg1/C.html", false,
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   145
                "A()",
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   146
                "<h3>Property Summary</h3>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   147
                + "<table class=\"memberSummary\" summary=\"Property Summary table, listing properties, and an explanation\">\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   148
                + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Methods</span><span class=\"tabEnd\">&nbsp;</span>"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   149
                + "</span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">Instance Methods</a>"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   150
                + "</span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\"><span>"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   151
                + "<a href=\"javascript:show(8);\">Concrete Methods</a></span><span class=\"tabEnd\">&nbsp;</span></span>"
45908
df7fadfd702f 8182257: Duplicate anchor ids in generated javadoc pages
bpatel
parents: 44815
diff changeset
   152
                + "</caption>",
df7fadfd702f 8182257: Duplicate anchor ids in generated javadoc pages
bpatel
parents: 44815
diff changeset
   153
                "<tr id=\"i0\" class=\"altColor\">\n"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   154
                + "<td class=\"colFirst\"><code><a href=\"C.BooleanProperty.html\" title=\"class in pkg1\">C.BooleanProperty</a></code></td>\n",
45908
df7fadfd702f 8182257: Duplicate anchor ids in generated javadoc pages
bpatel
parents: 44815
diff changeset
   155
                "<tr id=\"i1\" class=\"rowColor\">\n"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   156
                + "<td class=\"colFirst\"><code><a href=\"C.DoubleProperty.html\" title=\"class in pkg1\">C.DoubleProperty</a></code></td>\n");
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   157
41452
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
   158
        checkOutput("index-all.html", true,
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
   159
                "<div class=\"block\">Gets the value of the property paused.</div>",
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
   160
                "<div class=\"block\">Defines if paused.</div>");
ddaef4bba083 8165991: Fix DocTreeFactory newDocCommentTree
ksrini
parents: 41157
diff changeset
   161
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   162
        checkOutput("pkg1/D.html", true,
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   163
                "<h3>Properties inherited from class&nbsp;pkg1."
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   164
                    + "<a href=\"C.html\" title=\"class in pkg1\">C</a></h3>\n"
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   165
                    + "<code><a href=\"C.html#pausedProperty\">"
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   166
                    + "paused</a>, <a href=\"C.html#rateProperty\">rate</a></code></li>");
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   167
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   168
        checkOutput("pkg1/D.html", false, "shouldNotAppear");
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   169
    }
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   170
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   171
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   172
    void test1_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   173
        javadoc("-d", "out1-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   174
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   175
                "-sourcepath", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   176
                "-javafx",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   177
                "-package",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   178
                "pkg1");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   179
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   180
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   181
        checkOutput("pkg1/C.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   182
                "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   183
                + "<dd><a href=\"#getRate--\"><code>getRate()</code></a>, \n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   184
                + "<a href=\"#setRate-double-\">"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   185
                + "<code>setRate(double)</code></a></dd>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   186
                "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   187
                + "<a href=\"#setTestMethodProperty--\">"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   188
                + "setTestMethodProperty</a></span>()</code></th>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   189
                "<h3>Property Summary</h3>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   190
                + "<table class=\"memberSummary\" summary=\"Property Summary table, listing properties, and an explanation\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   191
                + "<caption><span>Properties</span><span class=\"tabEnd\">&nbsp;</span></caption>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   192
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   193
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   194
    /*
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   195
     * Test with -javafx option enabled, to ensure property getters and setters
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   196
     * are treated correctly.
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   197
     */
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   198
    @Test
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   199
    void test2() {
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   200
        javadoc("-d", "out2a",
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   201
                "-sourcepath", testSrc,
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   202
                "-javafx",
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   203
                "-package",
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   204
                "pkg2");
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   205
        checkExit(Exit.OK);
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   206
        checkOutput("pkg2/Test.html", true,
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   207
                "<h3>Property Detail</h3>\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   208
                + "<a id=\"betaProperty\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   209
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   210
                + "</a>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   211
                + "<ul class=\"blockList\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   212
                + "<li class=\"blockList\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   213
                + "<h4>beta</h4>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   214
                + "<pre>public&nbsp;java.lang.Object betaProperty</pre>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   215
                + "</li>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   216
                + "</ul>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   217
                + "<a id=\"gammaProperty\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   218
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   219
                + "</a>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   220
                + "<ul class=\"blockList\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   221
                + "<li class=\"blockList\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   222
                + "<h4>gamma</h4>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   223
                + "<pre>public final&nbsp;java.util.List&lt;java.lang.String&gt; gammaProperty</pre>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   224
                + "</li>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   225
                + "</ul>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   226
                + "<a id=\"deltaProperty\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   227
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   228
                + "</a>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   229
                + "<ul class=\"blockListLast\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   230
                + "<li class=\"blockList\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   231
                + "<h4>delta</h4>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   232
                + "<pre>public final&nbsp;java.util.List&lt;"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   233
                + "java.util.Set&lt;? super java.lang.Object&gt;&gt; deltaProperty</pre>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   234
                + "</li>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   235
                + "</ul>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   236
                + "</li>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   237
                + "</ul>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   238
                "<h3>Property Summary</h3>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   239
                + "<table class=\"memberSummary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   240
                + "<caption><span>Properties</span><span class=\"tabEnd\">&nbsp;</span></caption>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   241
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   242
        checkOutput("pkg2/Test.html", false,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   243
                "<h3>Property Summary</h3>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   244
                + "<table class=\"memberSummary\" summary=\"Property Summary table, listing properties, and an explanation\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   245
                + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Methods</span><span class=\"tabEnd\">&nbsp;</span>"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   246
                + "</span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">Instance Methods</a>"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   247
                + "</span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\"><span>"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   248
                + "<a href=\"javascript:show(8);\">Concrete Methods</a></span><span class=\"tabEnd\">&nbsp;</span></span>"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   249
                + "</caption>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   250
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   251
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   252
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   253
    void test2_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   254
        javadoc("-d", "out2a-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   255
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   256
                "-sourcepath", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   257
                "-javafx",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   258
                "-package",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   259
                "pkg2");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   260
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   261
        checkOutput("pkg2/Test.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   262
                "<h3>Property Detail</h3>\n"
31297
86fe1414f12c 8081854: Javadoc should generate named anchors for HTML4 output
bpatel
parents: 30730
diff changeset
   263
                + "<a name=\"betaProperty\">\n"
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   264
                + "<!--   -->\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   265
                + "</a>\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   266
                + "<ul class=\"blockList\">\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   267
                + "<li class=\"blockList\">\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   268
                + "<h4>beta</h4>\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   269
                + "<pre>public&nbsp;java.lang.Object betaProperty</pre>\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   270
                + "</li>\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   271
                + "</ul>\n"
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   272
                + "<a name=\"gammaProperty\">\n"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   273
                + "<!--   -->\n"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   274
                + "</a>\n"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   275
                + "<ul class=\"blockList\">\n"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   276
                + "<li class=\"blockList\">\n"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   277
                + "<h4>gamma</h4>\n"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   278
                + "<pre>public final&nbsp;java.util.List&lt;java.lang.String&gt; gammaProperty</pre>\n"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   279
                + "</li>\n"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   280
                + "</ul>\n"
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   281
                + "<a name=\"deltaProperty\">\n"
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   282
                + "<!--   -->\n"
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   283
                + "</a>\n"
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 41452
diff changeset
   284
                + "<ul class=\"blockListLast\">\n"
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   285
                + "<li class=\"blockList\">\n"
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   286
                + "<h4>delta</h4>\n"
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   287
                + "<pre>public final&nbsp;java.util.List&lt;"
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   288
                + "java.util.Set&lt;? super java.lang.Object&gt;&gt; deltaProperty</pre>\n"
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   289
                + "</li>\n"
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 31297
diff changeset
   290
                + "</ul>\n"
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   291
                + "</li>\n"
43573
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   292
                + "</ul>",
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   293
                "<h3>Property Summary</h3>\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   294
                + "<table class=\"memberSummary\" summary=\"Property Summary table, listing properties, and an explanation\">\n"
1162c044cf26 8172528: problem generating JavaFX docs
bpatel
parents: 42000
diff changeset
   295
                + "<caption><span>Properties</span><span class=\"tabEnd\">&nbsp;</span></caption>");
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   296
    }
36276
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   297
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   298
    /*
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   299
     * Test without -javafx option, to ensure property getters and setters
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   300
     * are treated just like any other java method.
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   301
     */
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   302
    @Test
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   303
    void test3() {
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   304
        javadoc("-d", "out2b",
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   305
                "-sourcepath", testSrc,
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   306
                "-package",
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   307
                "pkg2");
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   308
        checkExit(Exit.OK);
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   309
        checkOutput("pkg2/Test.html", false, "<h3>Property Summary</h3>");
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   310
        checkOutput("pkg2/Test.html", true,
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   311
                "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   312
                + "<th class=\"colSecond\" scope=\"col\">Method</th>\n"
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   313
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   314
                + "</tr>\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   315
                + "<tr id=\"i0\" class=\"altColor\">\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   316
                + "<td class=\"colFirst\"><code>&lt;T&gt;&nbsp;java.lang.Object</code></td>\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   317
                + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   318
                + "<a href=\"#alphaProperty(java.util.List)\">alphaProperty</a>"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   319
                + "</span>&#8203;(java.util.List&lt;T&gt;&nbsp;foo)</code></th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   320
                + "<td class=\"colLast\">&nbsp;</td>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   321
                + "</tr>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   322
                + "<tr id=\"i1\" class=\"rowColor\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   323
                + "<td class=\"colFirst\"><code>java.lang.Object</code></td>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   324
                + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   325
                + "<a href=\"#betaProperty()\">betaProperty</a></span>()</code></th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   326
                + "<td class=\"colLast\">&nbsp;</td>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   327
                + "</tr>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   328
                + "<tr id=\"i2\" class=\"altColor\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   329
                + "<td class=\"colFirst\"><code>java.util.List&lt;java.util.Set&lt;? super java.lang.Object&gt;&gt;"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   330
                + "</code></td>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   331
                + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   332
                + "<a href=\"#deltaProperty()\">deltaProperty</a></span>()</code></th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   333
                + "<td class=\"colLast\">&nbsp;</td>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   334
                + "</tr>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   335
                + "<tr id=\"i3\" class=\"rowColor\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   336
                + "<td class=\"colFirst\"><code>java.util.List&lt;java.lang.String&gt;</code></td>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   337
                + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   338
                + "<a href=\"#gammaProperty()\">gammaProperty</a></span>()</code></th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   339
                + "<td class=\"colLast\">&nbsp;</td>"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   340
        );
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   341
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   342
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   343
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   344
    void test3_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   345
        javadoc("-d", "out2b-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   346
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   347
                "-sourcepath", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   348
                "-package",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   349
                "pkg2");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   350
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   351
        checkOutput("pkg2/Test.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   352
                "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   353
                + "<th class=\"colSecond\" scope=\"col\">Method</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   354
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   355
                + "</tr>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   356
                + "<tr id=\"i0\" class=\"altColor\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   357
                + "<td class=\"colFirst\"><code>&lt;T&gt;&nbsp;java.lang.Object</code></td>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   358
                + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   359
                + "<a href=\"#alphaProperty-java.util.List-\">alphaProperty</a>"
44297
e03f5fb3714b 8175200: Long method signatures disturb Method Summary table
bpatel
parents: 43573
diff changeset
   360
                + "</span>&#8203;(java.util.List&lt;T&gt;&nbsp;foo)</code></th>\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   361
                + "<td class=\"colLast\">&nbsp;</td>\n"
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   362
                + "</tr>\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   363
                + "<tr id=\"i1\" class=\"rowColor\">\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   364
                + "<td class=\"colFirst\"><code>java.lang.Object</code></td>\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   365
                + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   366
                + "<a href=\"#betaProperty--\">betaProperty</a></span>()</code></th>\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   367
                + "<td class=\"colLast\">&nbsp;</td>\n"
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   368
                + "</tr>\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   369
                + "<tr id=\"i2\" class=\"altColor\">\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   370
                + "<td class=\"colFirst\"><code>java.util.List&lt;java.util.Set&lt;? super java.lang.Object&gt;&gt;"
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   371
                + "</code></td>\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   372
                + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   373
                + "<a href=\"#deltaProperty--\">deltaProperty</a></span>()</code></th>\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   374
                + "<td class=\"colLast\">&nbsp;</td>\n"
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   375
                + "</tr>\n"
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   376
                + "<tr id=\"i3\" class=\"rowColor\">\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   377
                + "<td class=\"colFirst\"><code>java.util.List&lt;java.lang.String&gt;</code></td>\n"
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   378
                + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   379
                + "<a href=\"#gammaProperty--\">gammaProperty</a></span>()</code></th>\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36526
diff changeset
   380
                + "<td class=\"colLast\">&nbsp;</td>"
27381
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   381
        );
46ea7c75828e 8061305: Javadoc crashes when method name ends with "Property"
ksrini
parents: 24399
diff changeset
   382
    }
36276
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   383
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   384
    /*
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   385
     * Force the doclet to emit a warning when processing a synthesized,
44815
2a0f6c7033bd 8178830: standard doclet: -javafx option should be unhidden
ksrini
parents: 44297
diff changeset
   386
     * DocComment, and ensure that the run succeeds, using the newer
2a0f6c7033bd 8178830: standard doclet: -javafx option should be unhidden
ksrini
parents: 44297
diff changeset
   387
     * --javafx flag.
36276
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   388
     */
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   389
    @Test
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   390
    void test4() {
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   391
        javadoc("-d", "out4",
44815
2a0f6c7033bd 8178830: standard doclet: -javafx option should be unhidden
ksrini
parents: 44297
diff changeset
   392
                "--javafx",
36276
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   393
                "-Xdoclint:none",
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   394
                "-sourcepath", testSrc,
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   395
                "-package",
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   396
                "pkg4");
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   397
        checkExit(Exit.OK);
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   398
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   399
        // make sure the doclet indeed emits the warning
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   400
        checkOutput(Output.OUT, true, "C.java:0: warning - invalid usage of tag >");
37bd10863a8a 8150130: NPE building javafx docs with new doclet
ksrini
parents: 35426
diff changeset
   401
    }
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   402
}