langtools/test/jdk/javadoc/doclet/testJavaFX/TestJavaFX.java
changeset 43573 1162c044cf26
parent 42000 8b7412f7eecd
child 44297 e03f5fb3714b
equal deleted inserted replaced
43572:786800fd7cf0 43573:1162c044cf26
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 7112427 8012295 8025633 8026567 8061305 8081854 8150130 8162363 8167967
    26  * @bug 7112427 8012295 8025633 8026567 8061305 8081854 8150130 8162363 8167967 8172528
    27  * @summary Test of the JavaFX doclet features.
    27  * @summary Test of the JavaFX doclet features.
    28  * @author jvalenta
    28  * @author jvalenta
    29  * @library ../lib
    29  * @library ../lib
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    31  * @build JavadocTester
    31  * @build JavadocTester
    48                 "pkg1");
    48                 "pkg1");
    49         checkExit(Exit.OK);
    49         checkExit(Exit.OK);
    50 
    50 
    51         checkOutput("pkg1/C.html", true,
    51         checkOutput("pkg1/C.html", true,
    52                 "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
    52                 "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
    53                     + "<dd><a href=\"../pkg1/C.html#getRate--\"><code>getRate()</code></a>, \n"
    53                 + "<dd><a href=\"../pkg1/C.html#getRate--\"><code>getRate()</code></a>, \n"
    54                     + "<a href=\"../pkg1/C.html#setRate-double-\">"
    54                 + "<a href=\"../pkg1/C.html#setRate-double-\">"
    55                     + "<code>setRate(double)</code></a></dd>",
    55                 + "<code>setRate(double)</code></a></dd>",
    56                 "<pre>public final&nbsp;void&nbsp;setRate(double&nbsp;value)</pre>\n"
    56                 "<pre>public final&nbsp;void&nbsp;setRate(double&nbsp;value)</pre>\n"
    57                     + "<div class=\"block\">Sets the value of the property rate.</div>\n"
    57                 + "<div class=\"block\">Sets the value of the property rate.</div>\n"
    58                     + "<dl>\n"
    58                 + "<dl>\n"
    59                     + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>",
    59                 + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>",
    60                 "<pre>public final&nbsp;double&nbsp;getRate()</pre>\n"
    60                 "<pre>public final&nbsp;double&nbsp;getRate()</pre>\n"
    61                     + "<div class=\"block\">Gets the value of the property rate.</div>\n"
    61                 + "<div class=\"block\">Gets the value of the property rate.</div>\n"
    62                     + "<dl>\n"
    62                 + "<dl>\n"
    63                     + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>",
    63                 + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>",
    64                 "<td class=\"colFirst\"><code><a href=\"../pkg1/C.DoubleProperty.html\" "
    64                 "<td class=\"colFirst\"><code><a href=\"../pkg1/C.DoubleProperty.html\" "
    65                     + "title=\"class in pkg1\">C.DoubleProperty</a></code></td>\n"
    65                 + "title=\"class in pkg1\">C.DoubleProperty</a></code></td>\n"
    66                     + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
    66                 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
    67                     + "<a href=\"../pkg1/C.html#rateProperty\">rate</a></span></code></th>\n"
    67                 + "<a href=\"../pkg1/C.html#rateProperty\">rate</a></span></code></th>\n"
    68                     + "<td class=\"colLast\">\n"
    68                 + "<td class=\"colLast\">\n"
    69                     + "<div class=\"block\">Defines the direction/speed at which the "
    69                 + "<div class=\"block\">Defines the direction/speed at which the "
    70                     + "<code>Timeline</code> is expected to\n"
    70                 + "<code>Timeline</code> is expected to\n"
    71                     + " be played.</div>\n</td>",
    71                 + " be played.</div>\n</td>",
    72                 "<span class=\"simpleTagLabel\">Default value:</span>",
    72                 "<span class=\"simpleTagLabel\">Default value:</span>",
    73                 "<span class=\"simpleTagLabel\">Since:</span></dt>\n"
    73                 "<span class=\"simpleTagLabel\">Since:</span></dt>\n"
    74                     + "<dd>JavaFX 8.0</dd>",
    74                 + "<dd>JavaFX 8.0</dd>",
    75                 "<p>Sets the value of the property <code>Property</code>",
    75                 "<p>Sets the value of the property <code>Property</code>",
    76                 "<p>Gets the value of the property <code>Property</code>",
    76                 "<p>Gets the value of the property <code>Property</code>",
    77                 "<span class=\"simpleTagLabel\">Property description:</span>",
    77                 "<span class=\"simpleTagLabel\">Property description:</span>",
    78                 "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
    78                 "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
    79                     + "<a href=\"../pkg1/C.html#setTestMethodProperty--\">"
    79                 + "<a href=\"../pkg1/C.html#setTestMethodProperty--\">"
    80                     + "setTestMethodProperty</a></span>()</code></th>",
    80                 + "setTestMethodProperty</a></span>()</code></th>",
    81                 "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
    81                 "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
    82                     + "<a href=\"../pkg1/C.html#pausedProperty\">paused</a></span></code></th>\n"
    82                 + "<a href=\"../pkg1/C.html#pausedProperty\">paused</a></span></code></th>\n"
    83                     + "<td class=\"colLast\">\n"
    83                 + "<td class=\"colLast\">\n"
    84                     + "<div class=\"block\">Defines if paused.</div>",
    84                 + "<div class=\"block\">Defines if paused.</div>",
    85                 "<h4>paused</h4>\n"
    85                 "<h4>paused</h4>\n"
    86                     + "<pre>public final&nbsp;<a href=\"../pkg1/C.BooleanProperty.html\" "
    86                 + "<pre>public final&nbsp;<a href=\"../pkg1/C.BooleanProperty.html\" "
    87                     + "title=\"class in pkg1\">C.BooleanProperty</a> pausedProperty</pre>\n"
    87                 + "title=\"class in pkg1\">C.BooleanProperty</a> pausedProperty</pre>\n"
    88                     + "<div class=\"block\">Defines if paused. The second line.</div>",
    88                 + "<div class=\"block\">Defines if paused. The second line.</div>",
    89                 "<h4>isPaused</h4>\n"
    89                 "<h4>isPaused</h4>\n"
    90                     + "<pre>public final&nbsp;double&nbsp;isPaused()</pre>\n"
    90                 + "<pre>public final&nbsp;double&nbsp;isPaused()</pre>\n"
    91                     + "<div class=\"block\">Gets the value of the property paused.</div>",
    91                 + "<div class=\"block\">Gets the value of the property paused.</div>",
    92                 "<h4>setPaused</h4>\n"
    92                 "<h4>setPaused</h4>\n"
    93                     + "<pre>public final&nbsp;void&nbsp;setPaused(boolean&nbsp;value)</pre>\n"
    93                 + "<pre>public final&nbsp;void&nbsp;setPaused(boolean&nbsp;value)</pre>\n"
    94                     + "<div class=\"block\">Sets the value of the property paused.</div>\n"
    94                 + "<div class=\"block\">Sets the value of the property paused.</div>\n"
    95                     + "<dl>\n"
    95                 + "<dl>\n"
    96                     + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
    96                 + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
    97                     + "<dd>Defines if paused. The second line.</dd>\n"
    97                 + "<dd>Defines if paused. The second line.</dd>\n"
    98                     + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
    98                 + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
    99                     + "<dd>false</dd>",
    99                 + "<dd>false</dd>",
   100                 "<h4>isPaused</h4>\n"
   100                 "<h4>isPaused</h4>\n"
   101                     + "<pre>public final&nbsp;double&nbsp;isPaused()</pre>\n"
   101                 + "<pre>public final&nbsp;double&nbsp;isPaused()</pre>\n"
   102                     + "<div class=\"block\">Gets the value of the property paused.</div>\n"
   102                 + "<div class=\"block\">Gets the value of the property paused.</div>\n"
   103                     + "<dl>\n"
   103                 + "<dl>\n"
   104                     + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
   104                 + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
   105                     + "<dd>Defines if paused. The second line.</dd>\n"
   105                 + "<dd>Defines if paused. The second line.</dd>\n"
   106                     + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
   106                 + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
   107                     + "<dd>false</dd>",
   107                 + "<dd>false</dd>",
   108                 "<h4>rate</h4>\n"
   108                 "<h4>rate</h4>\n"
   109                     + "<pre>public final&nbsp;<a href=\"../pkg1/C.DoubleProperty.html\" "
   109                 + "<pre>public final&nbsp;<a href=\"../pkg1/C.DoubleProperty.html\" "
   110                     + "title=\"class in pkg1\">C.DoubleProperty</a> rateProperty</pre>\n"
   110                 + "title=\"class in pkg1\">C.DoubleProperty</a> rateProperty</pre>\n"
   111                     + "<div class=\"block\">Defines the direction/speed at which the "
   111                 + "<div class=\"block\">Defines the direction/speed at which the "
   112                     + "<code>Timeline</code> is expected to\n"
   112                 + "<code>Timeline</code> is expected to\n"
   113                     + " be played. This is the second line.</div>",
   113                 + " be played. This is the second line.</div>",
   114                 "<h4>setRate</h4>\n"
   114                 "<h4>setRate</h4>\n"
   115                     + "<pre>public final&nbsp;void&nbsp;setRate(double&nbsp;value)</pre>\n"
   115                 + "<pre>public final&nbsp;void&nbsp;setRate(double&nbsp;value)</pre>\n"
   116                     + "<div class=\"block\">Sets the value of the property rate.</div>\n"
   116                 + "<div class=\"block\">Sets the value of the property rate.</div>\n"
   117                     + "<dl>\n"
   117                 + "<dl>\n"
   118                     + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
   118                 + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
   119                     + "<dd>Defines the direction/speed at which the <code>Timeline</code> is expected to\n"
   119                 + "<dd>Defines the direction/speed at which the <code>Timeline</code> is expected to\n"
   120                     + " be played. This is the second line.</dd>\n"
   120                 + " be played. This is the second line.</dd>\n"
   121                     + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
   121                 + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
   122                     + "<dd>11</dd>\n"
   122                 + "<dd>11</dd>\n"
   123                     + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n"
   123                 + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n"
   124                     + "<dd>JavaFX 8.0</dd>",
   124                 + "<dd>JavaFX 8.0</dd>",
   125                 "<h4>getRate</h4>\n"
   125                 "<h4>getRate</h4>\n"
   126                     + "<pre>public final&nbsp;double&nbsp;getRate()</pre>\n"
   126                 + "<pre>public final&nbsp;double&nbsp;getRate()</pre>\n"
   127                     + "<div class=\"block\">Gets the value of the property rate.</div>\n"
   127                 + "<div class=\"block\">Gets the value of the property rate.</div>\n"
   128                     + "<dl>\n"
   128                 + "<dl>\n"
   129                     + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
   129                 + "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>\n"
   130                     + "<dd>Defines the direction/speed at which the <code>Timeline</code> is expected to\n"
   130                 + "<dd>Defines the direction/speed at which the <code>Timeline</code> is expected to\n"
   131                     + " be played. This is the second line.</dd>\n"
   131                 + " be played. This is the second line.</dd>\n"
   132                     + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
   132                 + "<dt><span class=\"simpleTagLabel\">Default value:</span></dt>\n"
   133                     + "<dd>11</dd>\n"
   133                 + "<dd>11</dd>\n"
   134                     + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n"
   134                 + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n"
   135                     + "<dd>JavaFX 8.0</dd>",
   135                 + "<dd>JavaFX 8.0</dd>",
       
   136                 "<h3>Property Summary</h3>\n"
       
   137                 + "<table class=\"memberSummary\" summary=\"Property Summary table, listing properties, and an explanation\">\n"
       
   138                 + "<caption><span>Properties</span><span class=\"tabEnd\">&nbsp;</span></caption>",
   136                 "");
   139                 "");
   137 
   140 
   138         checkOutput("pkg1/C.html", false,
   141         checkOutput("pkg1/C.html", false,
   139                 "A()");
   142                 "A()",
       
   143                 "<h3>Property Summary</h3>\n"
       
   144                 + "<table class=\"memberSummary\" summary=\"Property Summary table, listing properties, and an explanation\">\n"
       
   145                 + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Methods</span><span class=\"tabEnd\">&nbsp;</span>"
       
   146                 + "</span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">Instance Methods</a>"
       
   147                 + "</span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\"><span>"
       
   148                 + "<a href=\"javascript:show(8);\">Concrete Methods</a></span><span class=\"tabEnd\">&nbsp;</span></span>"
       
   149                 + "</caption>");
   140 
   150 
   141         checkOutput("index-all.html", true,
   151         checkOutput("index-all.html", true,
   142                 "<div class=\"block\">Gets the value of the property paused.</div>",
   152                 "<div class=\"block\">Gets the value of the property paused.</div>",
   143                 "<div class=\"block\">Defines if paused.</div>");
   153                 "<div class=\"block\">Defines if paused.</div>");
   144 
   154 
   191                 + "<pre>public final&nbsp;java.util.List&lt;"
   201                 + "<pre>public final&nbsp;java.util.List&lt;"
   192                 + "java.util.Set&lt;? super java.lang.Object&gt;&gt; deltaProperty</pre>\n"
   202                 + "java.util.Set&lt;? super java.lang.Object&gt;&gt; deltaProperty</pre>\n"
   193                 + "</li>\n"
   203                 + "</li>\n"
   194                 + "</ul>\n"
   204                 + "</ul>\n"
   195                 + "</li>\n"
   205                 + "</li>\n"
   196                 + "</ul>");
   206                 + "</ul>",
       
   207                 "<h3>Property Summary</h3>\n"
       
   208                 + "<table class=\"memberSummary\" summary=\"Property Summary table, listing properties, and an explanation\">\n"
       
   209                 + "<caption><span>Properties</span><span class=\"tabEnd\">&nbsp;</span></caption>");
       
   210 
       
   211         checkOutput("pkg2/Test.html", false,
       
   212                 "<h3>Property Summary</h3>\n"
       
   213                 + "<table class=\"memberSummary\" summary=\"Property Summary table, listing properties, and an explanation\">\n"
       
   214                 + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Methods</span><span class=\"tabEnd\">&nbsp;</span>"
       
   215                 + "</span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">Instance Methods</a>"
       
   216                 + "</span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\"><span>"
       
   217                 + "<a href=\"javascript:show(8);\">Concrete Methods</a></span><span class=\"tabEnd\">&nbsp;</span></span>"
       
   218                 + "</caption>");
   197     }
   219     }
   198 
   220 
   199     /*
   221     /*
   200      * Test without -javafx option, to ensure property getters and setters
   222      * Test without -javafx option, to ensure property getters and setters
   201      * are treated just like any other java method.
   223      * are treated just like any other java method.