test/langtools/jdk/javadoc/doclet/testSummaryTag/TestSummaryTag.java
author jjg
Thu, 01 Nov 2018 14:32:55 -0700
changeset 52377 907fdbbdf584
parent 51127 c2e676c2cf7b
child 53097 2e82ca64b25d
permissions -rw-r--r--
8213263: fix legal headers in test/langtools Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
     1
/*
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
     2
 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
     4
 *
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
52377
907fdbbdf584 8213263: fix legal headers in test/langtools
jjg
parents: 51127
diff changeset
     7
 * published by the Free Software Foundation.
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
     8
 *
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    13
 * accompanied this code).
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    14
 *
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    18
 *
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    21
 * questions.
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    22
 */
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    23
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    24
/*
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    25
 * @test
50293
edfb87b2520e 8196202: Javadoc should not generate frames by default
jjg
parents: 49139
diff changeset
    26
 * @bug      8173425 8186332 8182765 8196202
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    27
 * @summary  tests for the summary tag behavior
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    28
 * @library  ../lib
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    29
 * @modules jdk.javadoc/jdk.javadoc.internal.tool
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    30
 * @build    JavadocTester
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    31
 * @run main TestSummaryTag
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    32
 */
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    33
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    34
public class TestSummaryTag extends JavadocTester {
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    35
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    36
    public static void main(String... args) throws Exception {
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    37
        TestSummaryTag tester = new TestSummaryTag();
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    38
        tester.runTests();
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    39
    }
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    40
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    41
    @Test
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    42
    void test1() {
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    43
        javadoc("-d", "out1",
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    44
                "-sourcepath", testSrc,
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    45
                "p1");
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    46
        checkExit(Exit.OK);
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    47
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    48
        checkOutput("index-all.html", true,
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
    49
            "<dl>\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    50
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/A.html#m()\">m()"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    51
            + "</a></span> - Method in class p1.<a href=\"p1/A.html\" title=\"class in p1\">A</a></dt>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    52
            + "<dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    53
            + "<div class=\"block\">First sentence</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    54
            + "</dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    55
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/B.html#m()\">m()"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    56
            + "</a></span> - Method in class p1.<a href=\"p1/B.html\" title=\"class in p1\">B</a></dt>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    57
            + "<dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    58
            + "<div class=\"block\">First sentence</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    59
            + "</dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    60
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/A.html#m1()\">m1()"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    61
            + "</a></span> - Method in class p1.<a href=\"p1/A.html\" title=\"class in p1\">A</a></dt>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    62
            + "<dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    63
            + "<div class=\"block\"> First sentence </div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    64
            + "</dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    65
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/A.html#m2()\">m2()"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    66
            + "</a></span> - Method in class p1.<a href=\"p1/A.html\" title=\"class in p1\">A</a></dt>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    67
            + "<dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    68
            + "<div class=\"block\">Some html &lt;foo&gt; &nbsp; codes</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    69
            + "</dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    70
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/A.html#m3()\">m3()"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    71
            + "</a></span> - Method in class p1.<a href=\"p1/A.html\" title=\"class in p1\">A</a></dt>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    72
            + "<dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    73
            + "<div class=\"block\">First sentence </div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    74
            + "</dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    75
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/A.html#m4()\">m4()"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    76
            + "</a></span> - Method in class p1.<a href=\"p1/A.html\" title=\"class in p1\">A</a></dt>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    77
            + "<dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    78
            + "<div class=\"block\">First sentence i.e. the first sentence</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    79
            + "</dd>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    80
            + "</dl>\n",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    81
            "<div class=\"block\">The first... line</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    82
        );
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    83
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    84
        // make sure the second @summary's content is displayed correctly
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    85
        checkOutput("p1/A.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    86
             "<li class=\"blockList\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    87
             + "<h4>m3</h4>\n"
51127
c2e676c2cf7b 8207190: JDK 11 javadoc generates bad code example
pmuthuswamy
parents: 50293
diff changeset
    88
             + "<pre class=\"methodSignature\">public&nbsp;void&nbsp;m3()</pre>\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    89
             + "<div class=\"block\">First sentence  some text maybe second sentence.</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    90
             + "</li>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    91
        );
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    92
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    93
        checkOutput("p1/package-summary.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    94
                "<div class=\"block\">The first... line second from ...</div>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    95
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    96
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    97
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    98
    void test1_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
    99
        javadoc("-d", "out1-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
   100
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
   101
                "-sourcepath", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
   102
                "p1");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
   103
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
   104
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
   105
        checkOutput("index-all.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
   106
            "<dl>\n"
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   107
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/A.html#m--\">m()"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   108
            + "</a></span> - Method in class p1.<a href=\"p1/A.html\" title=\"class in p1\">A</a></dt>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   109
            + "<dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   110
            + "<div class=\"block\">First sentence</div>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   111
            + "</dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   112
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/B.html#m--\">m()"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   113
            + "</a></span> - Method in class p1.<a href=\"p1/B.html\" title=\"class in p1\">B</a></dt>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   114
            + "<dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   115
            + "<div class=\"block\">First sentence</div>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   116
            + "</dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   117
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/A.html#m1--\">m1()"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   118
            + "</a></span> - Method in class p1.<a href=\"p1/A.html\" title=\"class in p1\">A</a></dt>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   119
            + "<dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   120
            + "<div class=\"block\"> First sentence </div>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   121
            + "</dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   122
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/A.html#m2--\">m2()"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   123
            + "</a></span> - Method in class p1.<a href=\"p1/A.html\" title=\"class in p1\">A</a></dt>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   124
            + "<dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   125
            + "<div class=\"block\">Some html &lt;foo&gt; &nbsp; codes</div>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   126
            + "</dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   127
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/A.html#m3--\">m3()"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   128
            + "</a></span> - Method in class p1.<a href=\"p1/A.html\" title=\"class in p1\">A</a></dt>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   129
            + "<dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   130
            + "<div class=\"block\">First sentence </div>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   131
            + "</dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   132
            + "<dt><span class=\"memberNameLink\"><a href=\"p1/A.html#m4--\">m4()"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   133
            + "</a></span> - Method in class p1.<a href=\"p1/A.html\" title=\"class in p1\">A</a></dt>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   134
            + "<dd>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   135
            + "<div class=\"block\">First sentence i.e. the first sentence</div>\n"
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   136
            + "</dd>\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
   137
            + "</dl>\n"
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   138
        );
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48028
diff changeset
   139
    }
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   140
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   141
    @Test
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   142
    void test2() {
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   143
        javadoc("-d", "out2",
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   144
                "-sourcepath", testSrc,
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   145
                "p2");
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   146
        checkExit(Exit.OK);
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   147
48028
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47284
diff changeset
   148
        checkOutput(Output.OUT, true, "package.html:3: warning: invalid use of @summary");
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   149
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   150
        checkOutput("index-all.html", true, "<div class=\"block\">foo bar</div>\n");
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   151
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   152
        checkOutput("p2/package-summary.html", true, "<div class=\"block\">foo bar baz.</div>\n");
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   153
    }
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   154
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   155
    @Test
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   156
    void test3() {
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   157
        javadoc("-d", "out3",
50293
edfb87b2520e 8196202: Javadoc should not generate frames by default
jjg
parents: 49139
diff changeset
   158
                "--frames",
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   159
                "-sourcepath", testSrc,
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   160
                "-overview", testSrc("p3/overview.html"),
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   161
                "p3");
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   162
        checkExit(Exit.OK);
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   163
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   164
        checkOutput("overview-summary.html", true,
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   165
                "<div class=\"block\">The first... line second from ...</div>");
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   166
    }
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
diff changeset
   167
}