test/langtools/jdk/javadoc/doclet/testUseOption/TestUseOption.java
author jjg
Mon, 22 Jan 2018 11:15:51 -0800
changeset 48654 36f58bd6269f
parent 47284 355349babaf4
child 49139 771616d26ca1
permissions -rw-r--r--
8195796: Reduce the size of relative URLs in generated docs Reviewed-by: ksrini
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
     2
 * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    21
 * questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    22
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    23
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
/*
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
 * @test
47284
355349babaf4 8186332: Fix method signature in method summary table
bpatel
parents: 47216
diff changeset
    26
 * @bug 4496290 4985072 7006178 7068595 8016328 8050031 8048351 8081854 8071982 8162363 8175200 8186332
26270
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
    27
 * @summary A simple test to ensure class-use files are correct.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
 * @author jamieh
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    29
 * @library ../lib
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    30
 * @modules jdk.javadoc/jdk.javadoc.internal.tool
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
 * @build JavadocTester
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
 * @run main TestUseOption
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
public class TestUseOption extends JavadocTester {
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    37
    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
    38
        TestUseOption tester = new TestUseOption();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    39
        tester.runTests();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    40
    }
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    42
    @Test
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    43
    void test1() {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    44
        javadoc("-d", "out-1",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    45
                "-sourcepath", testSrc,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    46
                "-use",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    47
                "pkg1", "pkg2");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    48
        checkExit(Exit.OK);
8841
b4422fa4f2e6 7006178: findbugs high priority issues in new javadoc
bpatel
parents: 5520
diff changeset
    49
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    50
        // Eight tests for class use.
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    51
        for (int i = 1; i <= 8; i++) {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    52
            checkOutput("pkg1/class-use/C1.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    53
                    "Test " + i + " passes");
14060
ae69cea86e83 7068595: html files in class-use dir do not get loaded correctly when Frames link is clicked
bpatel
parents: 8841
diff changeset
    54
        }
ae69cea86e83 7068595: html files in class-use dir do not get loaded correctly when Frames link is clicked
bpatel
parents: 8841
diff changeset
    55
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    56
        // Three more tests for package use.
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    57
        for (int i = 1; i <= 3; i++) {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    58
            checkOutput("pkg1/package-use.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    59
                    "Test " + i + " passes");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    60
        }
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    62
        checkOrder("pkg1/class-use/UsedClass.html",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    63
                "Field in C1.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    64
                "Field in C2.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    65
                "Field in C4.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    66
                "Field in C5.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    67
                "Field in C6.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    68
                "Field in C7.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    69
                "Field in C8.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    70
                "Method in C1.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    71
                "Method in C2.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    72
                "Method in C4.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    73
                "Method in C5.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    74
                "Method in C6.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    75
                "Method in C7.",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    76
                "Method in C8."
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    77
        );
14060
ae69cea86e83 7068595: html files in class-use dir do not get loaded correctly when Frames link is clicked
bpatel
parents: 8841
diff changeset
    78
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    79
        checkOutput("pkg2/class-use/C3.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    80
                "<a href=\"../../index.html?pkg2/class-use/C3.html\" target=\"_top\">"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    81
                + "Frames</a></li>"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    82
        );
25284
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    83
        checkOutput("pkg1/class-use/UsedClass.html", true,
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    84
          "that return types with arguments of type"
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    85
        );
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    86
        checkOutput("pkg1/class-use/UsedClass.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
    87
          "<a href=\"../C1.html#methodInC1ReturningType--\">methodInC1ReturningType</a>"
25284
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    88
        );
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    89
        checkOutput("pkg1/class-use/UsedInterface.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
    90
          "Classes in <a href=\"../package-summary.html\">pkg1</a> that implement " +
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
    91
          "<a href=\"../UsedInterface.html\" title=\"interface in pkg1\">UsedInterface</a>"
25284
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    92
        );
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    93
        checkOutput("pkg1/class-use/UsedInterfaceA.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
    94
          "Classes in <a href=\"../package-summary.html\">pkg1</a> that implement " +
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
    95
          "<a href=\"../UsedInterfaceA.html\" title=\"interface in pkg1\">UsedInterfaceA</a>"
25284
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    96
        );
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    97
        checkOutput("pkg1/class-use/UsedClass.html", false,
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    98
           "methodInC1Protected"
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents: 24399
diff changeset
    99
        );
25450
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   100
        checkOutput("pkg1/class-use/UsedInterface.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   101
           "<a href=\"../AnAbstract.html\" title=\"class in pkg1\">AnAbstract</a>"
25450
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   102
        );
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   103
        checkOutput("pkg1/class-use/UsedInterface.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   104
            "../C10.html#withReturningTypeParameters--"
25450
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   105
        );
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   106
        checkOutput("pkg1/class-use/UsedInterface.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   107
            "../C10.html#withTypeParametersOfType-java.lang.Class-"
25450
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   108
        );
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   109
        checkOutput("pkg1/class-use/UsedInterface.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   110
            "\"../package-summary.html\">pkg1</a> that return " +
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   111
            "<a href=\"../UsedInterface.html\" title=\"interface in pkg1\""
25450
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   112
        );
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   113
        checkOutput("pkg1/class-use/UsedInterface.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   114
            "<a href=\"../C10.html#addAll-pkg1.UsedInterface...-\">addAll</a>"
25450
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   115
        );
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   116
        checkOutput("pkg1/class-use/UsedInterface.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   117
            "<a href=\"../C10.html#create-pkg1.UsedInterfaceA-pkg1." +
25450
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   118
            "UsedInterface-java.lang.String-\">"
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   119
        );
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   120
        checkOutput("pkg1/class-use/UsedInterface.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   121
            "<a href=\"../C10.html#withTypeParametersOfType-java.lang.Class-\">" +
25450
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   122
            "withTypeParametersOfType</a>"
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
   123
        );
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   124
        checkOutput("pkg1/class-use/UsedInterface.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   125
            "Subinterfaces of <a href=\"../UsedInterface.html\" title=\"interface in pkg1\">"
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   126
            + "UsedInterface</a> in <a href=\"../package-summary.html\">pkg1",
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36709
diff changeset
   127
            "<td class=\"colFirst\"><code>interface&nbsp;</code></td>\n<th class=\"colSecond\" scope=\"row\">"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   128
            + "<code><span class=\"memberNameLink\"><a href=\"../SubInterface.html\" "
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36709
diff changeset
   129
            + "title=\"interface in pkg1\">SubInterface</a>&lt;T&gt;</span></code></th>"
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   130
        );
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   131
        checkOutput("pkg1/class-use/UsedThrowable.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   132
            "Methods in <a href=\"../package-summary.html\">pkg1</a> that throw "
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   133
            + "<a href=\"../UsedThrowable.html\" title=\"class in pkg1\">UsedThrowable</a>",
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36709
diff changeset
   134
            "<td class=\"colFirst\"><code>void</code></td>\n<th class=\"colSecond\" scope=\"row\"><span class="
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   135
            + "\"typeNameLabel\">C1.</span><code><span class=\"memberNameLink\">"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   136
            + "<a href=\"../C1.html#methodInC1ThrowsThrowable--\">methodInC1ThrowsThrowable"
47284
355349babaf4 8186332: Fix method signature in method summary table
bpatel
parents: 47216
diff changeset
   137
            + "</a></span>()</code></th>"
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   138
        );
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   139
    }
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   140
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   141
    @Test
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   142
    void test2() {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   143
        javadoc("-d", "out-2",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   144
                "-sourcepath", testSrc,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   145
                "-use",
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   146
                testSrc("C.java"), testSrc("UsedInC.java"), "pkg3");
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   147
        checkExit(Exit.OK);
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   148
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   149
        checkOutput("class-use/UsedInC.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   150
                "Uses of <a href=\"../UsedInC.html\" title=\"class in &lt;Unnamed&gt;\">"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   151
                + "UsedInC</a> in <a href=\"../package-summary.html\">&lt;Unnamed&gt;</a>"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   152
        );
26900
dccc7a72526d 8048351: tidy errors for attribute href, name for langtools javadoc tests needs investigation
bpatel
parents: 26270
diff changeset
   153
        checkOutput("class-use/UsedInC.html", true,
31297
86fe1414f12c 8081854: Javadoc should generate named anchors for HTML4 output
bpatel
parents: 30730
diff changeset
   154
                "<li class=\"blockList\"><a name=\"unnamed.package\">"
26900
dccc7a72526d 8048351: tidy errors for attribute href, name for langtools javadoc tests needs investigation
bpatel
parents: 26270
diff changeset
   155
        );
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   156
        checkOutput("package-use.html", true,
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36709
diff changeset
   157
                "<th class=\"colFirst\" scope=\"row\">"
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36709
diff changeset
   158
                + "<a href=\"class-use/UsedInC.html#unnamed.package\">UsedInC</a></th>",
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 36709
diff changeset
   159
                "<th class=\"colFirst\" scope=\"row\"><a href=\"#-Unnamed-\">&lt;Unnamed&gt;</a></th>\n"
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   160
                + "<td class=\"colLast\">&nbsp;</td>"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   161
        );
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
    }
26270
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
   163
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
   164
    @Test
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
   165
    void test3() {
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
   166
        javadoc("-d", "out-3",
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
   167
                "-sourcepath", testSrc,
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
   168
                "-use",
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
   169
                "-package", "unique");
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
   170
        checkExit(Exit.OK);
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
   171
        checkUnique("unique/class-use/UseMe.html",
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   172
                "<a href=\"../C1.html#umethod1-unique.UseMe-unique.UseMe:A-\">",
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   173
                "<a href=\"../C1.html#umethod2-unique.UseMe-unique.UseMe-\">",
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   174
                "<a href=\"../C1.html#umethod3-unique.UseMe-unique.UseMe-\">",
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47284
diff changeset
   175
                "<a href=\"../C1.html#C1-unique.UseMe-unique.UseMe-\">");
26270
a3635e6d3d78 8050031: [javadoc] class-use pages have duplicates and missing entries
ksrini
parents: 25450
diff changeset
   176
    }
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
}