test/langtools/jdk/javadoc/doclet/testModules/TestModules.java
author bpatel
Thu, 17 May 2018 12:59:53 -0700
changeset 50167 cc705c956798
parent 50118 919c36db208c
child 50293 edfb87b2520e
permissions -rw-r--r--
8196201: Generate pages to list all classes and all packages in javadoc output Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
     1
/*
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 48437
diff changeset
     2
 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
     4
 *
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
     7
 * published by the Free Software Foundation.
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
     8
 *
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    13
 * accompanied this code).
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    14
 *
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    18
 *
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    21
 * questions.
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    22
 */
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    23
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    24
/*
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    25
 * @test
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
    26
 * @bug 8154119 8154262 8156077 8157987 8154261 8154817 8135291 8155995 8162363
47861
4fab795915b6 8191464: jdk/javadoc/doclet/testModules/TestModules.java 2 of 333 subtests failed
jjg
parents: 47847
diff changeset
    27
 *      8168766 8168688 8162674 8160196 8175799 8174974 8176778 8177562 8175218
4fab795915b6 8191464: jdk/javadoc/doclet/testModules/TestModules.java 2 of 333 subtests failed
jjg
parents: 47847
diff changeset
    28
 *      8175823 8166306 8178043 8181622 8183511 8169819 8074407 8183037 8191464
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
    29
        8164407 8192007 8182765 8196200 8196201
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    30
 * @summary Test modules support in javadoc.
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    31
 * @author bpatel
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    32
 * @library ../lib
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    33
 * @modules jdk.javadoc/jdk.javadoc.internal.tool
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    34
 * @build JavadocTester
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    35
 * @run main TestModules
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    36
 */
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    37
public class TestModules extends JavadocTester {
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    38
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    39
    public static void main(String... args) throws Exception {
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    40
        TestModules tester = new TestModules();
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    41
        tester.runTests();
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    42
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    43
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    44
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    45
     * Test generated module pages for HTML 4.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    46
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    47
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    48
    void testHtml4() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
    49
        javadoc("-d", "out",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
    50
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
    51
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
    52
                "-Xdoclint:none",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
    53
                "-overview", testSrc("overview.html"),
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    54
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
    55
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
    56
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    57
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    58
        checkDescription(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    59
        checkNoDescription(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    60
        checkOverviewSummaryModules();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    61
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    62
        checkModuleClickThroughLinks();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    63
        checkModuleClickThrough(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    64
        checkModuleFilesAndLinks(true);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
    65
        checkModulesInSearch(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
    66
        checkOverviewFrame(true);
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
    67
        checkAllPkgsAllClasses(false);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    68
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    69
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    70
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    71
     * Test generated module pages for HTML 5.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    72
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    73
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    74
    void testHtml5() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
    75
        javadoc("-d", "out-html5",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
    76
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
    77
                "-Xdoclint:none",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
    78
                "-overview", testSrc("overview.html"),
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    79
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
    80
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
    81
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    82
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    83
        checkHtml5Description(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    84
        checkHtml5NoDescription(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    85
        checkHtml5OverviewSummaryModules();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    86
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    87
        checkModuleClickThroughLinks();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    88
        checkModuleClickThrough(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    89
        checkModuleFilesAndLinks(true);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
    90
        checkModulesInSearch(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
    91
        checkOverviewFrame(true);
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
    92
        checkAllPkgsAllClasses(true);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    93
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    94
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    95
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    96
     * Test generated module pages for HTML 4 with -nocomment option.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    97
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    98
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    99
    void testHtml4NoComment() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   100
        javadoc("-d", "out-nocomment",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   101
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   102
                "-nocomment",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   103
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   104
                "-Xdoclint:none",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   105
                "-overview", testSrc("overview.html"),
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
   106
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   107
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   108
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   109
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   110
        checkDescription(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   111
        checkNoDescription(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   112
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   113
        checkModuleFilesAndLinks(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   114
        checkOverviewFrame(true);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   115
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   116
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   117
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   118
     * Test generated module pages for HTML 5 with -nocomment option.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   119
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   120
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   121
    void testHtml5NoComment() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   122
        javadoc("-d", "out-html5-nocomment",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   123
                "-nocomment",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   124
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   125
                "-Xdoclint:none",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   126
                "-overview", testSrc("overview.html"),
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
   127
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   128
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   129
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   130
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   131
        checkHtml5Description(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   132
        checkHtml5NoDescription(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   133
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   134
        checkModuleFilesAndLinks(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   135
        checkOverviewFrame(true);
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   136
    }
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   137
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   138
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   139
     * Test generated pages, in an unnamed module, for HTML 4.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   140
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   141
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   142
    void testHtml4UnnamedModule() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   143
        javadoc("-d", "out-nomodule",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   144
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   145
                "-use",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   146
                "-overview", testSrc("overview.html"),
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   147
                "-sourcepath", testSrc,
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   148
                "testpkgnomodule", "testpkgnomodule1");
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   149
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   150
        checkOverviewSummaryPackages();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   151
        checkModuleClickThrough(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   152
        checkModuleFilesAndLinks(false);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   153
        checkModulesInSearch(false);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   154
        checkOverviewFrame(false);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   155
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   156
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   157
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   158
     * Test generated pages, in an unnamed module, for HTML 5.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   159
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   160
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   161
    void testHtml5UnnamedModule() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   162
        javadoc("-d", "out-html5-nomodule",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   163
                "-use",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   164
                "-overview", testSrc("overview.html"),
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   165
                "-sourcepath", testSrc,
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   166
                "testpkgnomodule", "testpkgnomodule1");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   167
        checkExit(Exit.OK);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   168
        checkHtml5OverviewSummaryPackages();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   169
        checkModuleFilesAndLinks(false);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   170
        checkModulesInSearch(false);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   171
        checkOverviewFrame(false);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   172
    }
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   173
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   174
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   175
     * Test generated module pages with javadoc tags.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   176
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   177
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   178
    void testJDTagsInModules() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   179
        javadoc("-d", "out-mdltags",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   180
                "-author",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   181
                "-version",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   182
                "-Xdoclint:none",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   183
                "-tag", "regular:a:Regular Tag:",
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   184
                "-tag", "moduletag:s:Module Tag:",
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
   185
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   186
                "--module", "moduletags,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   187
                "testpkgmdltags", "testpkgmdlB");
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   188
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   189
        checkModuleTags();
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   190
    }
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   191
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   192
    /**
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   193
     * Test generated module pages with javadoc tags.
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   194
     */
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   195
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   196
    void testJDTagsInModules_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   197
        javadoc("-d", "out-mdltags-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   198
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   199
                "-author",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   200
                "-version",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   201
                "-Xdoclint:none",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   202
                "-tag", "regular:a:Regular Tag:",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   203
                "-tag", "moduletag:s:Module Tag:",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   204
                "--module-source-path", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   205
                "--module", "moduletags,moduleB",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   206
                "testpkgmdltags", "testpkgmdlB");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   207
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   208
        checkModuleTags_html4();
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   209
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   210
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   211
    /**
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   212
     * Test generated module summary page.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   213
     */
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   214
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   215
    void testModuleSummary() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   216
        javadoc("-d", "out-moduleSummary",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   217
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   218
                "-Xdoclint:none",
40599
be40838eb215 8164887: update tests to remove use of old-style options
jjg
parents: 40511
diff changeset
   219
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   220
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   221
                "testpkgmdlA", "testpkgmdlB", "moduleB/testpkg2mdlB");
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   222
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   223
        checkModuleSummary();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   224
        checkNegatedModuleSummary();
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   225
    }
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   226
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   227
    /**
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   228
     * Test generated module summary page.
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   229
     */
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   230
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   231
    void testModuleSummary_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   232
        javadoc("-d", "out-moduleSummary-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   233
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   234
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   235
                "-Xdoclint:none",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   236
                "--module-source-path", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   237
                "--module", "moduleA,moduleB",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   238
                "testpkgmdlA", "testpkgmdlB", "moduleB/testpkg2mdlB");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   239
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   240
        checkModuleSummary_html4();
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   241
        checkNegatedModuleSummary_html4();
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   242
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   243
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   244
    /**
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   245
     * Test generated module summary page of an aggregating module.
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   246
     */
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   247
    @Test
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   248
    void testAggregatorModuleSummary() {
50118
919c36db208c 8202614: Add ability to validate links in JavadocTester
jjg
parents: 49551
diff changeset
   249
        setAutomaticCheckLinks(false); // @ignore JDK-8202628
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   250
        javadoc("-d", "out-aggregatorModuleSummary",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   251
                "-use",
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   252
                "--module-source-path", testSrc,
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   253
                "--expand-requires", "transitive",
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   254
                "--module", "moduleT");
50118
919c36db208c 8202614: Add ability to validate links in JavadocTester
jjg
parents: 49551
diff changeset
   255
        setAutomaticCheckLinks(true); // @ignore JDK-8202628
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   256
        checkExit(Exit.OK);
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   257
        checkAggregatorModuleSummary();
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   258
    }
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   259
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   260
    /**
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   261
     * Test generated module pages and pages with link to modules.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   262
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   263
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   264
    void testModuleFilesAndLinks() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   265
        javadoc("-d", "out-modulelinks",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   266
                "-Xdoclint:none",
40599
be40838eb215 8164887: update tests to remove use of old-style options
jjg
parents: 40511
diff changeset
   267
                "--module-source-path", testSrc,
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   268
                "--module", "moduleA,moduleB",
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   269
                "testpkgmdlA", "testpkgmdlB");
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   270
        checkExit(Exit.OK);
40508
74ef30d16fb9 8159305: Enhance the javadoc tool to support module related options
ksrini
parents: 40503
diff changeset
   271
        checkModuleFilesAndLinks(true);
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   272
        checkOverviewFrame(true);
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   273
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   274
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   275
    /**
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   276
     * Test generated module pages for a deprecated module.
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   277
     */
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   278
    @Test
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   279
    void testModuleDeprecation() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   280
        javadoc("-d", "out-moduledepr",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   281
                "-Xdoclint:none",
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   282
                "-tag", "regular:a:Regular Tag:",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   283
                "-tag", "moduletag:s:Module Tag:",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   284
                "--module-source-path", testSrc,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   285
                "--module", "moduleA,moduleB,moduletags",
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   286
                "testpkgmdlA", "testpkgmdlB", "testpkgmdltags");
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   287
        checkExit(Exit.OK);
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   288
        checkModuleDeprecation(true);
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   289
    }
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   290
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   291
    /**
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   292
     * Test annotations on modules.
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   293
     */
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   294
    @Test
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   295
    void testModuleAnnotation() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   296
        javadoc("-d", "out-moduleanno",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   297
                "-Xdoclint:none",
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   298
                "--module-source-path", testSrc,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   299
                "--module", "moduleA,moduleB",
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   300
                "testpkgmdlA", "testpkgmdlB");
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   301
        checkExit(Exit.OK);
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   302
        checkModuleAnnotation();
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   303
    }
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   304
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   305
    /**
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   306
     * Test annotations on modules.
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   307
     */
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   308
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   309
    void testModuleAnnotation_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   310
        javadoc("-d", "out-moduleanno-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   311
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   312
                "-Xdoclint:none",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   313
                "--module-source-path", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   314
                "--module", "moduleA,moduleB",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   315
                "testpkgmdlA", "testpkgmdlB");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   316
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   317
        checkModuleAnnotation_html4();
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   318
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   319
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   320
    /**
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   321
     * Test module summary pages in "api" mode.
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   322
     */
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   323
    @Test
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   324
    void testApiMode() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   325
        javadoc("-d", "out-api",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   326
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   327
                "--show-module-contents=api",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   328
                "-author",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   329
                "-version",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   330
                "-Xdoclint:none",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   331
                "-tag", "regular:a:Regular Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   332
                "-tag", "moduletag:s:Module Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   333
                "--module-source-path", testSrc,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   334
                "--module", "moduleA,moduleB,moduleC,moduletags",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   335
                "testpkgmdlA", "moduleA/concealedpkgmdlA", "testpkgmdlB", "testpkg2mdlB", "testpkgmdlC", "testpkgmdltags");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   336
        checkExit(Exit.OK);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   337
        checkModuleModeCommon();
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   338
        checkModuleModeApi(true);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   339
        checkModuleModeAll(false);
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   340
        checkModuleFrameFiles(true);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   341
        checkAllModulesLink(true);
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   342
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   343
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   344
    /**
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   345
     * Test module summary pages in "all" mode.
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   346
     */
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   347
    @Test
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   348
    void testAllMode() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   349
        javadoc("-d", "out-all",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   350
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   351
                "--show-module-contents=all",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   352
                "-author",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   353
                "-version",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   354
                "-Xdoclint:none",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   355
                "-tag", "regular:a:Regular Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   356
                "-tag", "moduletag:s:Module Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   357
                "--module-source-path", testSrc,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   358
                "--module", "moduleA,moduleB,moduleC,moduletags",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   359
                "testpkgmdlA", "moduleA/concealedpkgmdlA", "testpkgmdlB", "testpkg2mdlB", "testpkgmdlC", "testpkgmdltags");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   360
        checkExit(Exit.OK);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   361
        checkModuleModeCommon();
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   362
        checkModuleModeApi(false);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   363
        checkModuleModeAll(true);
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   364
        checkModuleFrameFiles(true);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   365
        checkAllModulesLink(true);
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   366
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   367
44689
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   368
    /**
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   369
     * Test module summary pages in "all" mode.
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   370
     */
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   371
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   372
    void testAllModeHtml4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   373
        javadoc("-d", "out-all-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   374
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   375
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   376
                "--show-module-contents=all",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   377
                "-author",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   378
                "-version",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   379
                "-Xdoclint:none",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   380
                "-tag", "regular:a:Regular Tag:",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   381
                "-tag", "moduletag:s:Module Tag:",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   382
                "--module-source-path", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   383
                "--module", "moduleA,moduleB,moduleC,moduletags",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   384
                "testpkgmdlA", "moduleA/concealedpkgmdlA", "testpkgmdlB", "testpkg2mdlB", "testpkgmdlC", "testpkgmdltags");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   385
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   386
        checkModuleModeCommon_html4();
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   387
        checkModuleModeApi_html4(false);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   388
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   389
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   390
    /**
44689
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   391
     * Test generated module summary page of a module with no exported package.
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   392
     */
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   393
    @Test
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   394
    void testModuleSummaryNoExportedPkgAll() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   395
        javadoc("-d", "out-ModuleSummaryNoExportedPkgAll",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   396
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   397
                "--show-module-contents=all",
44689
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   398
                "-sourcepath", testSrc + "/moduleNoExport",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   399
                "--module", "moduleNoExport",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   400
                "testpkgmdlNoExport");
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   401
        checkExit(Exit.OK);
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   402
        checkModuleSummaryNoExported(true);
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   403
    }
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   404
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   405
    /**
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   406
     * Test generated module summary page of a module with no exported package.
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   407
     */
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   408
    @Test
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   409
    void testModuleSummaryNoExportedPkgAll_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   410
        javadoc("-d", "out-ModuleSummaryNoExportedPkgAll-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   411
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   412
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   413
                "--show-module-contents=all",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   414
                "-sourcepath", testSrc + "/moduleNoExport",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   415
                "--module", "moduleNoExport",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   416
                "testpkgmdlNoExport");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   417
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   418
        checkModuleSummaryNoExported_html4(true);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   419
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   420
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   421
    /**
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   422
     * Test generated module summary page of a module with no exported package.
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   423
     */
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   424
    @Test
44689
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   425
    void testModuleSummaryNoExportedPkgApi() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   426
        javadoc("-d", "out-ModuleSummaryNoExportedPkgApi",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   427
                "-use",
44689
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   428
                "-sourcepath", testSrc + "/moduleNoExport",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   429
                "--module", "moduleNoExport",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   430
                "testpkgmdlNoExport");
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   431
        checkExit(Exit.OK);
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   432
        checkModuleSummaryNoExported(false);
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   433
    }
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   434
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   435
    /**
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   436
     * Test generated module summary page of a module with no exported package.
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   437
     */
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   438
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   439
    void testModuleSummaryNoExportedPkgApi_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   440
        javadoc("-d", "out-ModuleSummaryNoExportedPkgApi-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   441
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   442
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   443
                "-sourcepath", testSrc + "/moduleNoExport",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   444
                "--module", "moduleNoExport",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   445
                "testpkgmdlNoExport");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   446
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   447
        checkModuleSummaryNoExported_html4(false);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   448
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   449
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   450
    /**
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   451
     * Test generated module pages for javadoc run for a single module having a single package.
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   452
     */
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   453
    @Test
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   454
    void testSingleModuleSinglePkg() {
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   455
        javadoc("-d", "out-singlemod",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   456
                "--module-source-path", testSrc,
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   457
                "--module", "moduleC",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   458
                "testpkgmdlC");
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   459
        checkExit(Exit.OK);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   460
        checkModuleFrameFiles(false);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   461
    }
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   462
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   463
    /**
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   464
     * Test generated module pages for javadoc run for a single module having multiple packages.
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   465
     */
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   466
    @Test
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   467
    void testSingleModuleMultiplePkg() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   468
        javadoc("-d", "out-singlemodmultiplepkg",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   469
                "--show-module-contents=all",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   470
                "-Xdoclint:none",
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   471
                "--module-source-path", testSrc,
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   472
                "--module", "moduleB",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   473
                "testpkg2mdlB", "testpkgmdlB");
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   474
        checkExit(Exit.OK);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   475
        checkAllModulesLink(false);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   476
    }
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   477
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   478
    /**
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   479
     * Test -group option for modules. The overview-summary.html page should group the modules accordingly.
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   480
     */
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   481
    @Test
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   482
    void testGroupOption() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   483
        javadoc("-d", "out-group",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   484
                "--show-module-contents=all",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   485
                "-Xdoclint:none",
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   486
                "-tag", "regular:a:Regular Tag:",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   487
                "-tag", "moduletag:s:Module Tag:",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   488
                "--module-source-path", testSrc,
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   489
                "-group", "Module Group A", "moduleA*",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   490
                "-group", "Module Group B & C", "moduleB*:moduleC*",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   491
                "-group", "Java SE Modules", "java*",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   492
                "--module", "moduleA,moduleB,moduleC,moduletags",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   493
                "moduleA/concealedpkgmdlA", "testpkgmdlA", "testpkg2mdlB", "testpkgmdlB", "testpkgmdlC",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   494
                "testpkgmdltags");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   495
        checkExit(Exit.OK);
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   496
        checkGroupOption();
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   497
    }
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   498
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   499
    /**
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   500
     * Test -group option for modules. The overview-summary.html page should group the modules accordingly.
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   501
     */
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   502
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   503
    void testGroupOption_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   504
        javadoc("-d", "out-group-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   505
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   506
                "--show-module-contents=all",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   507
                "-Xdoclint:none",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   508
                "-tag", "regular:a:Regular Tag:",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   509
                "-tag", "moduletag:s:Module Tag:",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   510
                "--module-source-path", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   511
                "-group", "Module Group A", "moduleA*",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   512
                "-group", "Module Group B & C", "moduleB*:moduleC*",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   513
                "-group", "Java SE Modules", "java*",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   514
                "--module", "moduleA,moduleB,moduleC,moduletags",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   515
                "moduleA/concealedpkgmdlA", "testpkgmdlA", "testpkg2mdlB", "testpkgmdlB", "testpkgmdlC",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   516
                "testpkgmdltags");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   517
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   518
        checkGroupOption_html4();
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   519
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   520
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   521
    /**
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   522
     * Test -group option for modules and the ordering of module groups.
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   523
     * The overview-summary.html page should group the modules accordingly and display the group tabs in
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   524
     * the order it was provided on the command-line.
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   525
     */
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   526
    @Test
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   527
    void testGroupOptionOrdering() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   528
        javadoc("-d", "out-groupOrder",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   529
                "--show-module-contents=all",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   530
                "-Xdoclint:none",
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   531
                "-tag", "regular:a:Regular Tag:",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   532
                "-tag", "moduletag:s:Module Tag:",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   533
                "--module-source-path", testSrc,
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   534
                "-group", "B Group", "moduleB*",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   535
                "-group", "C Group", "moduleC*",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   536
                "-group", "A Group", "moduleA*",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   537
                "-group", "Java SE Modules", "java*",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   538
                "--module", "moduleA,moduleB,moduleC,moduletags",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   539
                "moduleA/concealedpkgmdlA", "testpkgmdlA", "testpkg2mdlB", "testpkgmdlB", "testpkgmdlC",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   540
                "testpkgmdltags");
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   541
        checkExit(Exit.OK);
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   542
        checkGroupOptionOrdering();
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   543
    }
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   544
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   545
    /**
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   546
     * Test -group option for unnamed modules. The overview-summary.html page should group the packages accordingly.
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   547
     */
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   548
    @Test
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   549
    void testUnnamedModuleGroupOption() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   550
        javadoc("-d", "out-groupnomodule",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   551
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   552
                "-Xdoclint:none",
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   553
                "-overview", testSrc("overview.html"),
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   554
                "-sourcepath", testSrc,
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   555
                "-group", "Package Group 0", "testpkgnomodule",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   556
                "-group", "Package Group 1", "testpkgnomodule1",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   557
                "testpkgnomodule", "testpkgnomodule1");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   558
        checkExit(Exit.OK);
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   559
        checkUnnamedModuleGroupOption();
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   560
    }
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   561
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   562
    /**
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   563
     * Test -group option for unnamed modules. The overview-summary.html page should group the packages accordingly.
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   564
     */
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   565
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   566
    void testUnnamedModuleGroupOption_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   567
        javadoc("-d", "out-groupnomodule-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   568
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   569
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   570
                "-Xdoclint:none",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   571
                "-overview", testSrc("overview.html"),
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   572
                "-sourcepath", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   573
                "-group", "Package Group 0", "testpkgnomodule",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   574
                "-group", "Package Group 1", "testpkgnomodule1",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   575
                "testpkgnomodule", "testpkgnomodule1");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   576
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   577
        checkUnnamedModuleGroupOption_html4();
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   578
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   579
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   580
    /**
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   581
     * Test -group option for unnamed modules and the ordering of package groups.
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   582
     * The overview-summary.html page should group the packages accordingly and display the group tabs in
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   583
     * the order it was provided on the command-line.
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   584
     */
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   585
    @Test
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   586
    void testGroupOptionPackageOrdering() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   587
        javadoc("-d", "out-groupPkgOrder",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   588
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   589
                "-Xdoclint:none",
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   590
                "-overview", testSrc("overview.html"),
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   591
                "-sourcepath", testSrc,
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   592
                "-group", "Z Group", "testpkgnomodule",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   593
                "-group", "A Group", "testpkgnomodule1",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   594
                "testpkgnomodule", "testpkgnomodule1");
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   595
        checkExit(Exit.OK);
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   596
        checkGroupOptionPackageOrdering();
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   597
    }
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   598
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   599
    /**
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   600
     * Test -group option for a single module.
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   601
     */
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   602
    @Test
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   603
    void testGroupOptionSingleModule() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   604
        javadoc("-d", "out-groupsinglemodule",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   605
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   606
                "-Xdoclint:none",
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   607
                "--module-source-path", testSrc,
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   608
                "-group", "Module Group B", "moduleB*",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   609
                "--module", "moduleB",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   610
                "testpkg2mdlB", "testpkgmdlB");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   611
        checkExit(Exit.OK);
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   612
        checkGroupOptionSingleModule();
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   613
    }
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   614
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   615
    /**
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   616
     * Test -group option for a single module.
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   617
     */
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   618
    @Test
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   619
    void testGroupOptionSingleModule_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   620
        javadoc("-d", "out-groupsinglemodule-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   621
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   622
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   623
                "-Xdoclint:none",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   624
                "--module-source-path", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   625
                "-group", "Module Group B", "moduleB*",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   626
                "--module", "moduleB",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   627
                "testpkg2mdlB", "testpkgmdlB");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   628
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   629
        checkGroupOptionSingleModule_html4();
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   630
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   631
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   632
    /**
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   633
     * Test -group option for a single module.
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   634
     */
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   635
    @Test
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   636
    void testModuleName() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   637
        javadoc("-d", "out-modulename",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   638
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   639
                "-Xdoclint:none",
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   640
                "--module-source-path", testSrc,
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   641
                "--module", "moduleB,test.moduleFullName",
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   642
                "testpkg2mdlB", "testpkgmdlB", "testpkgmdlfullname");
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   643
        checkExit(Exit.OK);
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   644
        checkModuleName(true);
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   645
    }
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   646
48295
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   647
    /**
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   648
     * Test -linkoffline option.
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   649
     */
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   650
    @Test
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   651
    void testLinkOffline() {
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   652
        String url = "https://docs.oracle.com/javase/9/docs/api/";
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   653
        javadoc("-d", "out-linkoffline",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   654
                "-use",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   655
                "--show-module-contents=all",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   656
                "-Xdoclint:none",
48295
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   657
                "--module-source-path", testSrc,
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   658
                "--module", "moduleA,moduleB",
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   659
                "-linkoffline", url, testSrc + "/jdk",
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   660
                "testpkgmdlA", "testpkgmdlB", "testpkg3mdlB");
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   661
        checkExit(Exit.OK);
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   662
        checkLinkOffline();
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   663
    }
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
   664
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   665
    void checkDescription(boolean found) {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   666
        checkOutput("moduleA/module-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   667
                "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   668
                + "<a name=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   669
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   670
                + "</a>\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   671
                + "<div class=\"block\">This is a test description for the moduleA module with a Search "
44567
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44564
diff changeset
   672
                + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   673
        checkOutput("moduleB/module-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   674
                "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   675
                + "<a name=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   676
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   677
                + "</a>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   678
                + "<div class=\"block\">This is a test description for the moduleB module. Search "
44567
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44564
diff changeset
   679
                + "word <a id=\"search_word\" class=\"searchTagResult\">search_word</a> with no description.</div>");
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   680
        checkOutput("overview-summary.html", found,
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   681
                "</script>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   682
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   683
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   684
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   685
                + "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   686
                + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   687
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   688
        checkOutput("overview-summary.html", false,
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   689
                "</table>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   690
                + "</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   691
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   692
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   693
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   694
                + "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   695
                + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   696
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   697
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   698
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   699
    void checkNoDescription(boolean found) {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   700
        checkOutput("moduleA/module-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   701
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   702
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   703
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   704
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   705
                + "<li class=\"blockList\">\n"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   706
                + "<!-- ============ PACKAGES SUMMARY =========== -->");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   707
        checkOutput("moduleB/module-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   708
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   709
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   710
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   711
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   712
                + "<li class=\"blockList\">\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   713
                + "<!-- ============ PACKAGES SUMMARY =========== -->");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   714
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   715
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   716
    void checkHtml5Description(boolean found) {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   717
        checkOutput("moduleA/module-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   718
                "<section role=\"region\">\n"
47272
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   719
                + "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal:"
44567
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44564
diff changeset
   720
                + " This API element is subject to removal in a future version.</span>\n"
47300
a905ce398074 8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents: 47299
diff changeset
   721
                + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   722
                + "</div>\n"
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   723
                + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   724
                + "<a id=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   725
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   726
                + "</a>\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   727
                + "<div class=\"block\">This is a test description for the moduleA module with a Search "
44567
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44564
diff changeset
   728
                + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   729
        checkOutput("moduleB/module-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   730
                "<section role=\"region\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   731
                + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   732
                + "<a id=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   733
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   734
                + "</a>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   735
                + "<div class=\"block\">This is a test description for the moduleB module. Search "
44567
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44564
diff changeset
   736
                + "word <a id=\"search_word\" class=\"searchTagResult\">search_word</a> with no description.</div>");
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   737
        checkOutput("overview-summary.html", found,
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   738
                "</nav>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   739
                + "</header>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   740
                + "<main role=\"main\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   741
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   742
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   743
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   744
                + "<div class=\"contentContainer\">\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   745
                + "<table class=\"overviewSummary\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   746
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   747
        checkOutput("overview-summary.html", false,
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   748
                "</table>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   749
                + "</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   750
                + "</main>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   751
                + "<main role=\"main\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   752
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   753
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   754
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   755
                + "<div class=\"contentContainer\">\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   756
                + "<table class=\"overviewSummary\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   757
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   758
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   759
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   760
    void checkHtml5NoDescription(boolean found) {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   761
        checkOutput("moduleA/module-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   762
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   763
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   764
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   765
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   766
                + "<li class=\"blockList\">\n"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   767
                + "<!-- ============ PACKAGES SUMMARY =========== -->");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   768
        checkOutput("moduleB/module-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   769
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   770
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   771
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   772
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   773
                + "<li class=\"blockList\">\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   774
                + "<!-- ============ PACKAGES SUMMARY =========== -->");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   775
    }
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   776
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   777
    void checkModuleLink() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   778
        checkOutput("overview-summary.html", true,
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   779
                "<li>Module</li>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   780
        checkOutput("moduleA/module-summary.html", true,
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   781
                "<li class=\"navBarCell1Rev\">Module</li>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   782
        checkOutput("moduleB/module-summary.html", true,
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   783
                "<li class=\"navBarCell1Rev\">Module</li>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   784
        checkOutput("moduleA/testpkgmdlA/class-use/TestClassInModuleA.html", true,
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   785
                "<li><a href=\"../../module-summary.html\">Module</a></li>");
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   786
        checkOutput("moduleB/testpkgmdlB/package-summary.html", true,
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   787
                "<li><a href=\"../module-summary.html\">Module</a></li>");
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   788
        checkOutput("moduleB/testpkgmdlB/TestClassInModuleB.html", true,
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   789
                "<li><a href=\"../module-summary.html\">Module</a></li>");
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   790
        checkOutput("moduleB/testpkgmdlB/class-use/TestClassInModuleB.html", true,
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   791
                "<li><a href=\"../../module-summary.html\">Module</a></li>");
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   792
    }
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   793
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   794
    void checkNoModuleLink() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   795
        checkOutput("testpkgnomodule/package-summary.html", true,
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   796
                "<ul class=\"navList\" title=\"Navigation\">\n"
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   797
                + "<li><a href=\"../testpkgnomodule/package-summary.html\">Package</a></li>");
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   798
        checkOutput("testpkgnomodule/TestClassNoModule.html", true,
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   799
                "<ul class=\"navList\" title=\"Navigation\">\n"
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   800
                + "<li><a href=\"../testpkgnomodule/package-summary.html\">Package</a></li>");
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   801
        checkOutput("testpkgnomodule/class-use/TestClassNoModule.html", true,
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   802
                "<ul class=\"navList\" title=\"Navigation\">\n"
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   803
                + "<li><a href=\"../../testpkgnomodule/package-summary.html\">Package</a></li>");
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   804
    }
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   805
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   806
    void checkModuleTags() {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   807
        checkOutput("moduletags/module-summary.html", true,
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   808
                "Type Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in "
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   809
                + "testpkgmdltags\"><code>TestClassInModuleTags</code></a>.",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   810
                "Member Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html#"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   811
                + "testMethod(java.lang.String)\"><code>testMethod(String)</code></a>.",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   812
                "Package Link: <a href=\"testpkgmdltags/package-summary.html\"><code>testpkgmdltags</code></a>.",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   813
                "<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   814
                + "<dd>JDK 9</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   815
                "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   816
                + "<dd>\"Test see tag\", \n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   817
                + "<a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in testpkgmdltags\"><code>"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   818
                + "TestClassInModuleTags</code></a></dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   819
                "<dt><span class=\"simpleTagLabel\">Regular Tag:</span></dt>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   820
                + "<dd>Just a regular simple tag.</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   821
                "<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   822
                + "<dd>Just a simple module tag.</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   823
                "<dt><span class=\"simpleTagLabel\">Version:</span></dt>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   824
                + "<dd>1.0</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   825
                "<dt><span class=\"simpleTagLabel\">Author:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   826
                + "<dd>Bhavesh Patel</dd>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   827
        checkOutput("moduletags/testpkgmdltags/TestClassInModuleTags.html", false,
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   828
                "<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   829
                + "<dd>Just a simple module tag.</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   830
    }
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   831
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   832
    void checkModuleTags_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   833
        checkOutput("moduletags/module-summary.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   834
                "Member Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html#"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   835
                + "testMethod-java.lang.String-\"><code>testMethod(String)</code></a>.");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   836
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   837
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   838
    void checkOverviewSummaryModules() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   839
        checkOutput("overview-summary.html", true,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   840
                "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   841
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   842
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   843
                + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   844
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   845
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   846
        checkOutput("overview-summary.html", false,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   847
                "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   848
                + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   849
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   850
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   851
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   852
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   853
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   854
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   855
    void checkOverviewSummaryPackages() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   856
        checkOutput("overview-summary.html", false,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   857
                "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   858
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   859
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   860
                + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   861
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   862
                + "</tr>",
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   863
                "</table>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   864
                + "</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   865
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   866
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   867
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   868
                + "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   869
                + "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   870
                + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   871
        checkOutput("overview-summary.html", true,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   872
                "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   873
                + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   874
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   875
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   876
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   877
                + "</tr>",
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   878
                "</script>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   879
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   880
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   881
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   882
                + "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   883
                + "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   884
                + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   885
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   886
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   887
    void checkHtml5OverviewSummaryModules() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   888
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   889
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   890
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   891
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   892
                + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   893
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   894
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   895
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   896
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   897
                + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   898
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   899
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   900
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   901
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   902
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   903
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   904
    void checkHtml5OverviewSummaryPackages() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   905
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   906
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   907
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   908
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   909
                + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   910
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   911
                + "</tr>",
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   912
                "</table>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   913
                + "</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   914
                + "</main>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   915
                + "<main role=\"main\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   916
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   917
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   918
                + "</div>\n"
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   919
                + "<div class=\"contentContainer\"><a id=\"Packages\">\n"
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   920
                + "<!--   -->\n"
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   921
                + "</a>\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   922
                + "<table class=\"overviewSummary\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   923
                + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   924
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   925
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   926
                + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   927
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   928
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   929
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   930
                + "</tr>",
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   931
                "</script>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   932
                + "</nav>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   933
                + "</header>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   934
                + "<main role=\"main\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   935
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   936
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   937
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   938
                + "<div class=\"contentContainer\">\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   939
                + "<table class=\"overviewSummary\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   940
                + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   941
    }
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   942
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   943
    void checkModuleSummary() {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   944
        checkOutput("moduleA/module-summary.html", true,
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   945
                "<ul class=\"subNavList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   946
                + "<li>Module:&nbsp;</li>\n"
49551
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
   947
                + "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
   948
                + "<li><a href=\"#modules.summary\">Modules</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
   949
                + "<li><a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
   950
                + "<li>Services</li>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   951
                + "</ul>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   952
                "<!-- ============ MODULES SUMMARY =========== -->\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   953
                + "<a id=\"modules.summary\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   954
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   955
                + "</a>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   956
                "<tr class=\"altColor\" id=\"i0\">\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   957
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlA/package-summary.html\">testpkgmdlA</a></th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   958
                + "<td class=\"colLast\">&nbsp;</td>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   959
                + "</tr>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   960
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   961
                + "<a id=\"packages.summary\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   962
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   963
                + "</a>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   964
                "<tr class=\"altColor\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   965
                + "<td class=\"colFirst\">transitive</td>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   966
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   967
                + "<td class=\"colLast\">\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   968
                + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   969
                + "</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   970
                + "</tr>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
   971
        checkOutput("moduleB/module-summary.html", true,
49551
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
   972
                "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
   973
                + "<li>Modules&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
   974
                + "<li><a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
   975
                + "<li><a href=\"#services.summary\">Services</a></li>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   976
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   977
                + "<a id=\"packages.summary\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   978
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   979
                + "</a>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   980
                "<tr class=\"altColor\" id=\"i0\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   981
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   982
                + "<td class=\"colLast\">&nbsp;</td>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   983
                + "</tr>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   984
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   985
                + "<a id=\"packages.summary\">\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   986
                + "<!--   -->\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   987
                + "</a>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   988
                "<!-- ============ SERVICES SUMMARY =========== -->\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
   989
                + "<a id=\"services.summary\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   990
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   991
                + "</a>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   992
                "<tr class=\"altColor\">\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   993
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClassInModuleB.html\" title=\"class in testpkgmdlB\">TestClassInModuleB</a></th>\n"
48437
dd3b97564ed7 8192007: javadoc @uses and @provides tags in the modules documentation appears before the first-sentence summary of the service type.
bpatel
parents: 48325
diff changeset
   994
                + "<td class=\"colLast\">\n"
dd3b97564ed7 8192007: javadoc @uses and @provides tags in the modules documentation appears before the first-sentence summary of the service type.
bpatel
parents: 48325
diff changeset
   995
                + "<div class=\"block\">With a test description for uses.</div>\n</td>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   996
                + "</tr>",
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   997
                "<caption><span>Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   998
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   999
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1000
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1001
                + "</tr>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1002
                "<caption><span>Uses</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1003
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1004
                + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1005
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1006
                + "</tr>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1007
                "<caption><span>Provides</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1008
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1009
                + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1010
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1011
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1012
    }
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1013
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1014
    void checkModuleSummary_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1015
        checkOutput("moduleA/module-summary.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1016
                "<!-- ============ MODULES SUMMARY =========== -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1017
                + "<a name=\"modules.summary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1018
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1019
                + "</a>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1020
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1021
                + "<a name=\"packages.summary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1022
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1023
                + "</a>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1024
        checkOutput("moduleB/module-summary.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1025
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1026
                + "<a name=\"packages.summary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1027
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1028
                + "</a>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1029
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1030
                + "<a name=\"packages.summary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1031
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1032
                + "</a>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1033
                "<!-- ============ SERVICES SUMMARY =========== -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1034
                + "<a name=\"services.summary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1035
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1036
                + "</a>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1037
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1038
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1039
    void checkAggregatorModuleSummary() {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1040
        checkOutput("moduleT/module-summary.html", true,
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1041
                "<div class=\"header\">\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1042
                + "<h1 title=\"Module\" class=\"title\">Module&nbsp;moduleT</h1>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1043
                + "</div>",
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1044
                "<div class=\"block\">This is a test description for the moduleT module. "
44567
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44564
diff changeset
  1045
                + "Search phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>. "
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1046
                + "Make sure there are no exported packages.</div>",
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1047
                "<tbody>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1048
                + "<tr class=\"altColor\">\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1049
                + "<td class=\"colFirst\">transitive</td>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1050
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleA/module-summary.html\">moduleA</a></th>\n"
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1051
                + "<td class=\"colLast\">\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1052
                + "<div class=\"block\">This is a test description for the moduleA module with a Search "
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1053
                + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1054
                + "</td>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1055
                + "</tr>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1056
                + "<tr class=\"rowColor\">\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1057
                + "<td class=\"colFirst\">transitive</td>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1058
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1059
                + "<td class=\"colLast\">\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1060
                + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1061
                + "</td>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1062
                + "</tr>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1063
                + "</tbody>");
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1064
    }
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
  1065
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1066
    void checkNegatedModuleSummary() {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1067
        checkOutput("moduleA/module-summary.html", false,
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1068
                "<!-- ============ SERVICES SUMMARY =========== -->\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1069
                + "<a id=\"services.summary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1070
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1071
                + "</a>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1072
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1073
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1074
    void checkNegatedModuleSummary_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1075
        checkOutput("moduleA/module-summary.html", false,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1076
                "<!-- ============ SERVICES SUMMARY =========== -->\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1077
                + "<a name=\"services.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1078
                + "<!--   -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1079
                + "</a>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
  1080
    }
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
  1081
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1082
    void checkModuleClickThroughLinks() {
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
  1083
        checkOutput("module-overview-frame.html", true,
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1084
                "<li><a href=\"moduleA/module-frame.html\" target=\"packageListFrame\" "
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1085
                + "onclick=\"updateModuleFrame('moduleA/module-type-frame.html','moduleA/module-summary.html');"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1086
                + "\">moduleA</a></li>",
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1087
                "<li><a href=\"moduleB/module-frame.html\" target=\"packageListFrame\" "
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1088
                + "onclick=\"updateModuleFrame('moduleB/module-type-frame.html','moduleB/module-summary.html');"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1089
                + "\">moduleB</a></li>");
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
  1090
        checkOutput("script.js", true,
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1091
                "function updateModuleFrame(pFrame, cFrame) {\n"
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1092
                + "    top.packageFrame.location = pFrame;\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1093
                + "    top.classFrame.location = cFrame;\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1094
                + "}");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1095
    }
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
  1096
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1097
    void checkModuleClickThrough(boolean found) {
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
  1098
        checkFiles(found,
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1099
                "moduleA/module-type-frame.html",
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1100
                "moduleB/module-type-frame.html");
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1101
    }
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1102
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1103
    void checkModuleFilesAndLinks(boolean found) {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1104
        checkFileAndOutput("moduleA/testpkgmdlA/package-summary.html", found,
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1105
                "<li><a href=\"../module-summary.html\">Module</a></li>",
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
  1106
                "<div class=\"subTitle\"><span class=\"moduleLabelInPackage\">Module</span>&nbsp;"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1107
                + "<a href=\"../module-summary.html\">moduleA</a></div>");
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1108
        checkFileAndOutput("moduleA/testpkgmdlA/TestClassInModuleA.html", found,
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1109
                "<li><a href=\"../module-summary.html\">Module</a></li>",
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
  1110
                "<div class=\"subTitle\"><span class=\"moduleLabelInType\">Module</span>&nbsp;"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1111
                + "<a href=\"../module-summary.html\">moduleA</a></div>");
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1112
        checkFileAndOutput("moduleB/testpkgmdlB/AnnotationType.html", found,
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
  1113
                "<div class=\"subTitle\"><span class=\"moduleLabelInType\">Module</span>&nbsp;"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1114
                + "<a href=\"../module-summary.html\">moduleB</a></div>",
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
  1115
                "<div class=\"subTitle\"><span class=\"packageLabelInType\">"
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 48437
diff changeset
  1116
                + "Package</span>&nbsp;<a href=\"package-summary.html\">testpkgmdlB</a></div>");
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1117
        checkFiles(found,
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1118
                "moduleA/module-frame.html",
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1119
                "moduleA/module-summary.html",
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1120
                "module-overview-frame.html");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
  1121
    }
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1122
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1123
    void checkModuleFrameFiles(boolean found) {
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1124
        checkFiles(found,
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1125
                "moduleC/module-frame.html",
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1126
                "moduleC/module-type-frame.html",
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1127
                "module-overview-frame.html");
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1128
        checkFiles(true,
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1129
                "moduleC/module-summary.html",
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1130
                "allclasses-frame.html",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1131
                "allclasses-noframe.html");
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1132
    }
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1133
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1134
    void checkAllModulesLink(boolean found) {
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1135
        checkOutput("overview-frame.html", found,
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1136
                "<li><a href=\"module-overview-frame.html\" target=\"packageListFrame\">All&nbsp;Modules</a></li>");
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1137
    }
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
  1138
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1139
    void checkModulesInSearch(boolean found) {
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1140
        checkOutput("index-all.html", found,
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1141
                "<dl>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1142
                + "<dt><a href=\"moduleA/module-summary.html\">moduleA</a> - module moduleA</dt>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1143
                + "<dd>\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1144
                + "<div class=\"block\">This is a test description for the moduleA module with a Search "
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1145
                + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1146
                + "</dd>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1147
                + "<dt><a href=\"moduleB/module-summary.html\">moduleB</a> - module moduleB</dt>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1148
                + "<dd>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1149
                + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1150
                + "</dd>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1151
                + "</dl>",
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1152
                "<dl>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1153
                + "<dt><span class=\"searchTagLink\"><a href=\"moduleA/module-summary.html#searchphrase\">"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1154
                + "search phrase</a></span> - Search tag in moduleA</dt>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1155
                + "<dd>with description</dd>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1156
                + "<dt><span class=\"searchTagLink\"><a href=\"moduleB/module-summary.html#search_word\">"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1157
                + "search_word</a></span> - Search tag in moduleB</dt>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1158
                + "<dd>&nbsp;</dd>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
  1159
                + "</dl>");
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1160
        checkOutput("index-all.html", false,
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1161
                "<dt><span class=\"searchTagLink\"><a href=\"moduleA/module-summary.html#searchphrase\">"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1162
                + "search phrase</a></span> - Search tag in moduleA</dt>\n"
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1163
                + "<dd>with description</dd>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1164
                + "<dt><span class=\"searchTagLink\"><a href=\"moduleA/module-summary.html#searchphrase\">"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1165
                + "search phrase</a></span> - Search tag in moduleA</dt>\n"
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1166
                + "<dd>with description</dd>");
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
  1167
    }
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1168
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1169
    void checkModuleModeCommon() {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1170
        checkOutput("overview-summary.html", true,
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1171
                "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleA/module-summary.html\">moduleA</a></th>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1172
                + "<td class=\"colLast\">\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1173
                + "<div class=\"block\">This is a test description for the moduleA module with a Search "
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1174
                + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1175
                + "</td>",
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1176
                "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleB/module-summary.html\">moduleB</a></th>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1177
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1178
                + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1179
                + "</td>",
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1180
                "<th class=\"colFirst\" scope=\"row\"><a href=\"moduletags/module-summary.html\">moduletags</a></th>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1181
                + "<td class=\"colLast\">\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1182
                + "<div class=\"block\">This is a test description for the moduletags module.<br>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1183
                + " Type Link: <a href=\"moduletags/testpkgmdltags/TestClassInModuleTags.html\" title=\"class in testpkgmdltags\"><code>TestClassInModuleTags</code></a>.<br>\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1184
                + " Member Link: <a href=\"moduletags/testpkgmdltags/TestClassInModuleTags.html#testMethod(java.lang.String)\"><code>testMethod(String)</code></a>.<br>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1185
                + " Package Link: <a href=\"moduletags/testpkgmdltags/package-summary.html\"><code>testpkgmdltags</code></a>.<br></div>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1186
                + "</td>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1187
        checkOutput("moduleA/module-summary.html", true,
49551
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1188
                "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1189
                + "<li><a href=\"#modules.summary\">Modules</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1190
                + "<li><a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1191
                + "<li>Services</li>",
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1192
                "<th class=\"colFirst\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1193
                + "<td class=\"colLast\"><a href=\"../moduleB/testpkgmdlB/package-summary.html\">testpkgmdlB</a></td>\n");
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1194
        checkOutput("moduleB/module-summary.html", true,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1195
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClassInModuleB.html\" title=\"class in testpkgmdlB\">TestClassInModuleB</a></th>\n"
48437
dd3b97564ed7 8192007: javadoc @uses and @provides tags in the modules documentation appears before the first-sentence summary of the service type.
bpatel
parents: 48325
diff changeset
  1196
                + "<td class=\"colLast\">\n"
dd3b97564ed7 8192007: javadoc @uses and @provides tags in the modules documentation appears before the first-sentence summary of the service type.
bpatel
parents: 48325
diff changeset
  1197
                + "<div class=\"block\">With a test description for uses.</div>\n</td>\n");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1198
        checkOutput("moduletags/module-summary.html", true,
49551
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1199
                "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1200
                + "<li><a href=\"#modules.summary\">Modules</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1201
                + "<li><a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1202
                + "<li>Services</li>",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1203
                "<table class=\"requiresSummary\">\n"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1204
                + "<caption><span>Indirect Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1205
                "<td class=\"colFirst\">transitive</td>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1206
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1207
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1208
                + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1209
                + "</td>",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1210
                "<table class=\"packagesSummary\">\n"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1211
                + "<caption><span>Indirect Exports</span><span class=\"tabEnd\">&nbsp;</span></caption>",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1212
                "<td class=\"colFirst\">transitive static</td>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1213
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleA/module-summary.html\">moduleA</a></th>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1214
                + "<td class=\"colLast\">\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1215
                + "<div class=\"block\">This is a test description for the moduleA module with a Search "
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
  1216
                + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1217
                + "</td>",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1218
                "<table class=\"requiresSummary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1219
                + "<caption><span>Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1220
                + "<tr>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1221
                + "<th class=\"colFirst\" scope=\"col\">Modifier</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1222
                + "<th class=\"colSecond\" scope=\"col\">Module</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1223
                + "<th class=\"colLast\" scope=\"col\">Description</th>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1224
                "<table class=\"requiresSummary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1225
                + "<caption><span>Indirect Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1226
                + "<tr>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1227
                + "<th class=\"colFirst\" scope=\"col\">Modifier</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1228
                + "<th class=\"colSecond\" scope=\"col\">Module</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1229
                + "<th class=\"colLast\" scope=\"col\">Description</th>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1230
                "<table class=\"packagesSummary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1231
                + "<caption><span>Indirect Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1232
                + "<tr>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1233
                + "<th class=\"colFirst\" scope=\"col\">From</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1234
                + "<th class=\"colLast\" scope=\"col\">Packages</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1235
                + "</tr>\n",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1236
                "<th class=\"colFirst\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1237
                + "<td class=\"colLast\"><a href=\"../moduleB/testpkgmdlB/package-summary.html\">testpkgmdlB</a></td>\n");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1238
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1239
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1240
    void checkModuleModeCommon_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1241
        checkOutput("overview-summary.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1242
                "<th class=\"colFirst\" scope=\"row\"><a href=\"moduletags/module-summary.html\">moduletags</a></th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1243
                + "<td class=\"colLast\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1244
                + "<div class=\"block\">This is a test description for the moduletags module.<br>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1245
                + " Type Link: <a href=\"moduletags/testpkgmdltags/TestClassInModuleTags.html\" title=\"class in testpkgmdltags\"><code>TestClassInModuleTags</code></a>.<br>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1246
                + " Member Link: <a href=\"moduletags/testpkgmdltags/TestClassInModuleTags.html#testMethod-java.lang.String-\"><code>testMethod(String)</code></a>.<br>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1247
                + " Package Link: <a href=\"moduletags/testpkgmdltags/package-summary.html\"><code>testpkgmdltags</code></a>.<br></div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1248
                + "</td>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1249
        checkOutput("moduletags/module-summary.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1250
                "<table class=\"requiresSummary\" summary=\"Indirect Requires table, listing modules, and an explanation\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1251
                + "<caption><span>Indirect Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1252
                "<table class=\"packagesSummary\" summary=\"Indirect Exports table, listing modules, and packages\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1253
                + "<caption><span>Indirect Exports</span><span class=\"tabEnd\">&nbsp;</span></caption>",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1254
                "<table class=\"requiresSummary\" summary=\"Requires table, listing modules, and an explanation\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1255
                + "<caption><span>Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1256
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1257
                + "<th class=\"colFirst\" scope=\"col\">Modifier</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1258
                + "<th class=\"colSecond\" scope=\"col\">Module</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1259
                + "<th class=\"colLast\" scope=\"col\">Description</th>",
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1260
                "<table class=\"requiresSummary\" summary=\"Indirect Requires table, listing modules, and an explanation\">\n"
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1261
                + "<caption><span>Indirect Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1262
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1263
                + "<th class=\"colFirst\" scope=\"col\">Modifier</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1264
                + "<th class=\"colSecond\" scope=\"col\">Module</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1265
                + "<th class=\"colLast\" scope=\"col\">Description</th>",
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1266
                "<table class=\"packagesSummary\" summary=\"Indirect Opens table, listing modules, and packages\">\n"
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1267
                + "<caption><span>Indirect Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1268
                + "<tr>\n"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1269
                + "<th class=\"colFirst\" scope=\"col\">From</th>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1270
                + "<th class=\"colLast\" scope=\"col\">Packages</th>\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1271
                + "</tr>\n");
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1272
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1273
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1274
    void checkModuleModeApi(boolean found) {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1275
        checkOutput("moduleA/module-summary.html", found,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1276
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlA/package-summary.html\">testpkgmdlA</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1277
                + "<td class=\"colLast\">&nbsp;</td>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1278
        checkOutput("moduleB/module-summary.html", found,
49551
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1279
                "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1280
                + "<li>Modules&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1281
                + "<li><a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1282
                + "<li><a href=\"#services.summary\">Services</a></li>",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1283
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1284
                + "<td class=\"colLast\">&nbsp;</td>",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1285
                "<table class=\"packagesSummary\">\n"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1286
                + "<caption><span>Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1287
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1288
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1289
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1290
                + "</tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1291
                + "<tbody>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1292
                + "<tr class=\"altColor\" id=\"i0\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1293
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1294
                + "<td class=\"colLast\">&nbsp;</td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1295
                + "</tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1296
                + "</tbody>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1297
                + "</table>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1298
        checkOutput("moduletags/module-summary.html", true,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1299
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdltags/package-summary.html\">testpkgmdltags</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1300
                + "<td class=\"colLast\">&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1301
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1302
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1303
    void checkModuleModeApi_html4(boolean found) {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1304
        checkOutput("moduleB/module-summary.html", found,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1305
                "<table class=\"packagesSummary\" summary=\"Packages table, listing packages, and an explanation\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1306
                + "<caption><span>Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1307
                + "<tr>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1308
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1309
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1310
                + "</tr>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1311
                + "<tbody>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1312
                + "<tr class=\"altColor\" id=\"i0\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1313
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1314
                + "<td class=\"colLast\">&nbsp;</td>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1315
                + "</tr>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1316
                + "</tbody>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1317
                + "</table>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1318
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1319
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1320
    void checkModuleModeAll(boolean found) {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1321
        checkOutput("moduleA/module-summary.html", found,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1322
                "<td class=\"colFirst\"> </td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1323
                + "<th class=\"colSecond\" scope=\"row\">java.base</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1324
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1325
                "<td class=\"colFirst\"> </td>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1326
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleC/module-summary.html\">moduleC</a></th>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1327
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1328
                + "<div class=\"block\">This is a test description for the moduleC module.</div>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1329
                + "</td>",
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1330
                "<th class=\"colFirst\" scope=\"row\"><a href=\"../moduleC/module-summary.html\">moduleC</a></th>\n"
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1331
                + "<td class=\"colLast\"><a href=\"../moduleC/testpkgmdlC/package-summary.html\">testpkgmdlC</a></td>",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1332
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlA/package-summary.html\">testpkgmdlA</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1333
                + "<td class=\"colSecond\">All Modules</td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1334
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1335
                "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;</span></span>"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1336
                + "<span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:show(1);\">Exports</a></span>"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1337
                + "<span class=\"tabEnd\">&nbsp;</span></span><span id=\"t3\" class=\"tableTab\"><span><a href=\"javascript:show(4);\">"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1338
                + "Concealed</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1339
                "<th class=\"colFirst\" scope=\"row\"><a href=\"concealedpkgmdlA/package-summary.html\">concealedpkgmdlA</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1340
                + "<td class=\"colSecond\">None</td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1341
                + "<td class=\"colLast\">&nbsp;</td>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1342
        checkOutput("moduleB/module-summary.html", found,
49551
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1343
                "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1344
                + "<li><a href=\"#modules.summary\">Modules</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1345
                + "<li><a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;</li>\n"
0d4786e42471 8196200: Implement a navigation builder in javadoc
bpatel
parents: 49139
diff changeset
  1346
                + "<li><a href=\"#services.summary\">Services</a></li>",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1347
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
48325
e5cdedd37b78 8178070: duplicate entries in package table
jjg
parents: 48295
diff changeset
  1348
                + "<td class=\"colSecond\">None</td>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1349
                + "<td class=\"colSecond\">All Modules</td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1350
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1351
                "<td class=\"colFirst\"> </td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1352
                + "<th class=\"colSecond\" scope=\"row\">java.base</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1353
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1354
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClass2InModuleB.html\" title=\"class in testpkgmdlB\">TestClass2InModuleB</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1355
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1356
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkg2mdlB/TestInterface2InModuleB.html\" title=\"interface in testpkg2mdlB\">TestInterface2InModuleB</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1357
                + "<td class=\"colLast\">&nbsp;<br>(<span class=\"implementationLabel\">Implementation(s):</span>&nbsp;<a href=\"testpkgmdlB/TestClass2InModuleB.html\" "
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1358
                + "title=\"class in testpkgmdlB\">TestClass2InModuleB</a>)</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1359
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkg2mdlB/TestInterfaceInModuleB.html\" title=\"interface in testpkg2mdlB\">TestInterfaceInModuleB</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1360
                + "<td class=\"colLast\">&nbsp;<br>(<span class=\"implementationLabel\">Implementation(s):</span>&nbsp;<a href=\"testpkgmdlB/TestClassInModuleB.html\" "
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1361
                + "title=\"class in testpkgmdlB\">TestClassInModuleB</a>)</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1362
                "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1363
                + "<a href=\"javascript:show(1);\">Exports</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span>"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1364
                + "<a href=\"javascript:show(2);\">Opens</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1365
        checkOutput("moduleC/module-summary.html", found,
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1366
                "<caption><span>Exports</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1367
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1368
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
48325
e5cdedd37b78 8178070: duplicate entries in package table
jjg
parents: 48295
diff changeset
  1369
                + "<th class=\"colSecond\" scope=\"col\">Exported To Modules</th>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1370
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1371
                + "</tr>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1372
        checkOutput("moduletags/module-summary.html", true,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1373
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdltags/package-summary.html\">testpkgmdltags</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1374
                + "<td class=\"colLast\">&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1375
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1376
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1377
    void checkModuleDeprecation(boolean found) {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1378
        checkOutput("moduleA/module-summary.html", found,
47272
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
  1379
                "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal:"
44567
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44564
diff changeset
  1380
                + " This API element is subject to removal in a future version.</span>\n"
47300
a905ce398074 8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents: 47299
diff changeset
  1381
                + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1382
                + "</div>");
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1383
        checkOutput("deprecated-list.html", found,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1384
                "<ul>\n"
47299
56419ec66d4e 8169819: minor cleanup for deprecated page
bpatel
parents: 47272
diff changeset
  1385
                + "<li><a href=\"#forRemoval\">For Removal</a></li>\n"
56419ec66d4e 8169819: minor cleanup for deprecated page
bpatel
parents: 47272
diff changeset
  1386
                + "<li><a href=\"#module\">Modules</a></li>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1387
                + "</ul>",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1388
                "<tr class=\"altColor\">\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1389
                + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"moduleA/module-summary.html\">moduleA</a></th>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1390
                + "<td class=\"colLast\">\n"
47300
a905ce398074 8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents: 47299
diff changeset
  1391
                + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1392
                + "</td>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1393
                + "</tr>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1394
        checkOutput("moduleB/module-summary.html", !found,
47272
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
  1395
                "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span>\n"
47300
a905ce398074 8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents: 47299
diff changeset
  1396
                + "<div class=\"deprecationComment\">This module is deprecated using just the javadoc tag.</div>\n");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1397
        checkOutput("moduletags/module-summary.html", found,
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1398
                "<p>@Deprecated\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1399
                + "</p>",
47272
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
  1400
                "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span></div>");
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1401
    }
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1402
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1403
    void checkModuleAnnotation() {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1404
        checkOutput("moduleB/module-summary.html", true,
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1405
                "<p><a href=\"testpkgmdlB/AnnotationType.html\" title=\"annotation in testpkgmdlB\">@AnnotationType</a>(<a href=\"testpkgmdlB/AnnotationType.html#optional()\">optional</a>=\"Module Annotation\",\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1406
                + "                <a href=\"testpkgmdlB/AnnotationType.html#required()\">required</a>=2016)\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1407
                + "</p>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1408
        checkOutput("moduleB/module-summary.html", false,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1409
                "@AnnotationTypeUndocumented");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1410
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1411
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1412
    void checkModuleAnnotation_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1413
        checkOutput("moduleB/module-summary.html", true,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1414
                "<p><a href=\"testpkgmdlB/AnnotationType.html\" title=\"annotation in testpkgmdlB\">@AnnotationType</a>(<a href=\"testpkgmdlB/AnnotationType.html#optional--\">optional</a>=\"Module Annotation\",\n"
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1415
                + "                <a href=\"testpkgmdlB/AnnotationType.html#required--\">required</a>=2016)\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1416
                + "</p>");
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
  1417
    }
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1418
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1419
    void checkOverviewFrame(boolean found) {
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1420
        checkOutput("index.html", !found,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1421
                "<iframe src=\"overview-frame.html\" name=\"packageListFrame\" title=\"All Packages\"></iframe>");
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1422
        checkOutput("index.html", found,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1423
                "<iframe src=\"module-overview-frame.html\" name=\"packageListFrame\" title=\"All Modules\"></iframe>");
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1424
    }
44689
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1425
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1426
    void checkModuleSummaryNoExported(boolean found) {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1427
        checkOutput("moduleNoExport/module-summary.html", found,
44689
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1428
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1429
                + "<a id=\"packages.summary\">\n"
44689
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1430
                + "<!--   -->\n"
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1431
                + "</a>",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1432
                "<caption><span>Concealed</span><span class=\"tabEnd\">&nbsp;</span></caption>");
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1433
    }
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1434
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1435
    void checkModuleSummaryNoExported_html4(boolean found) {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1436
        checkOutput("moduleNoExport/module-summary.html", found,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1437
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1438
                + "<a name=\"packages.summary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1439
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1440
                + "</a>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1441
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1442
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1443
    void checkGroupOption() {
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1444
        checkOutput("overview-summary.html", true,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1445
                "<div class=\"contentContainer\">\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1446
                + "<table class=\"overviewSummary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1447
                + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span class=\"tabEnd\">&nbsp;"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1448
                + "</span></span><span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:show(1);\">"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1449
                + "Module Group A</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\">"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1450
                + "<span><a href=\"javascript:show(2);\">Module Group B &amp; C</a></span><span class=\"tabEnd\">"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1451
                + "&nbsp;</span></span><span id=\"t4\" class=\"tableTab\"><span><a href=\"javascript:show(4);\">"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1452
                + "Other Modules</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1453
                "var data = {\"i0\":1,\"i1\":2,\"i2\":2,\"i3\":4};\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1454
                + "var tabs = {65535:[\"t0\",\"All Modules\"],1:[\"t1\",\"Module Group A\"],2:[\"t2\",\"Module Group B & C\"],4:[\"t4\",\"Other Modules\"]};\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1455
                + "var altColor = \"altColor\";\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1456
                + "var rowColor = \"rowColor\";\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1457
                + "var tableTab = \"tableTab\";\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1458
                + "var activeTableTab = \"activeTableTab\";");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1459
        checkOutput("overview-summary.html", false,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1460
                "<table class=\"overviewSummary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1461
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1462
                "Java SE Modules");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1463
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1464
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1465
    void checkGroupOption_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1466
        checkOutput("overview-summary.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1467
                "<div class=\"contentContainer\">\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1468
                + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1469
                + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span class=\"tabEnd\">&nbsp;"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1470
                + "</span></span><span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:show(1);\">"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1471
                + "Module Group A</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\">"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1472
                + "<span><a href=\"javascript:show(2);\">Module Group B &amp; C</a></span><span class=\"tabEnd\">"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1473
                + "&nbsp;</span></span><span id=\"t4\" class=\"tableTab\"><span><a href=\"javascript:show(4);\">"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1474
                + "Other Modules</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1475
                "var data = {\"i0\":1,\"i1\":2,\"i2\":2,\"i3\":4};\n"
47847
7640bc1eb94f 8190818: Introduce a new Script builder class
jjg
parents: 47846
diff changeset
  1476
                + "var tabs = {65535:[\"t0\",\"All Modules\"],1:[\"t1\",\"Module Group A\"],2:[\"t2\",\"Module Group B & C\"],4:[\"t4\",\"Other Modules\"]};\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1477
                + "var altColor = \"altColor\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1478
                + "var rowColor = \"rowColor\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1479
                + "var tableTab = \"tableTab\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1480
                + "var activeTableTab = \"activeTableTab\";");
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1481
        checkOutput("overview-summary.html", false,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1482
                "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1483
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1484
                "Java SE Modules");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1485
    }
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1486
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1487
    void checkGroupOptionOrdering() {
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1488
        checkOutput("overview-summary.html", true,
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1489
                "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span "
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1490
                + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1491
                + "<a href=\"javascript:show(1);\">B Group</a></span><span class=\"tabEnd\">"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1492
                + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1493
                + "C Group</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\">"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1494
                + "<span><a href=\"javascript:show(4);\">A Group</a></span><span class=\"tabEnd\">&nbsp;</span>"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1495
                + "</span><span id=\"t8\" class=\"tableTab\"><span><a href=\"javascript:show(8);\">Other Modules"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1496
                + "</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1497
                "var tabs = {65535:[\"t0\",\"All Modules\"],1:[\"t1\",\"B Group\"],2:[\"t2\",\"C Group\"],"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1498
                + "4:[\"t4\",\"A Group\"],8:[\"t8\",\"Other Modules\"]};");
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1499
        checkOutput("overview-summary.html", false,
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1500
                "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span "
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1501
                + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1502
                + "<a href=\"javascript:show(1);\">A Group</a></span><span class=\"tabEnd\">"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1503
                + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1504
                + "B Group</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\">"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1505
                + "<span><a href=\"javascript:show(4);\">C Group</a></span><span class=\"tabEnd\">&nbsp;</span>"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1506
                + "</span><span id=\"t8\" class=\"tableTab\"><span><a href=\"javascript:show(8);\">Other Modules"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1507
                + "</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1508
                "Java SE Modules");
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1509
    }
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1510
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1511
    void checkUnnamedModuleGroupOption() {
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1512
        checkOutput("overview-summary.html", true,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1513
                "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1514
                + "<div class=\"block\">The overview summary page header.</div>\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1515
                + "</div>\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1516
                + "<div class=\"contentContainer\">\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1517
                + "<table class=\"overviewSummary\">\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1518
                + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1519
                + "</span></span><span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:show(1);\">"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1520
                + "Package Group 0</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" "
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1521
                + "class=\"tableTab\"><span><a href=\"javascript:show(2);\">Package Group 1</a></span>"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1522
                + "<span class=\"tabEnd\">&nbsp;</span></span></caption>",
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1523
                "var data = {\"i0\":1,\"i1\":2};\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1524
                + "var tabs = {65535:[\"t0\",\"All Packages\"],1:[\"t1\",\"Package Group 0\"],2:[\"t2\",\"Package Group 1\"]};\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1525
                + "var altColor = \"altColor\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1526
                + "var rowColor = \"rowColor\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1527
                + "var tableTab = \"tableTab\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1528
                + "var activeTableTab = \"activeTableTab\";");
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1529
    }
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1530
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1531
    void checkUnnamedModuleGroupOption_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1532
        checkOutput("overview-summary.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1533
                "<div class=\"contentContainer\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1534
                + "<div class=\"block\">The overview summary page header.</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1535
                + "</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1536
                + "<div class=\"contentContainer\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1537
                + "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1538
                + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1539
                + "</span></span><span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:show(1);\">"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1540
                + "Package Group 0</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" "
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1541
                + "class=\"tableTab\"><span><a href=\"javascript:show(2);\">Package Group 1</a></span>"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1542
                + "<span class=\"tabEnd\">&nbsp;</span></span></caption>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1543
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1544
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1545
    void checkGroupOptionPackageOrdering() {
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1546
        checkOutput("overview-summary.html", true,
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1547
                "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span "
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1548
                + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1549
                + "<a href=\"javascript:show(1);\">Z Group</a></span><span class=\"tabEnd\">"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1550
                + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1551
                + "A Group</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1552
                "var tabs = {65535:[\"t0\",\"All Packages\"],1:[\"t1\",\"Z Group\"],2:[\"t2\",\"A Group\"]};");
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1553
    }
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1554
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1555
    void checkGroupOptionSingleModule() {
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1556
        checkOutput("overview-summary.html", true,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1557
                "<div class=\"contentContainer\">\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1558
                + "<table class=\"overviewSummary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1559
                + "<caption><span>Module Group B</span><span class=\"tabEnd\">&nbsp;</span></caption>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1560
        checkOutput("overview-summary.html", false,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1561
                "<table class=\"overviewSummary\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1562
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1563
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1564
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1565
    void checkGroupOptionSingleModule_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1566
        checkOutput("overview-summary.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48759
diff changeset
  1567
                "<div class=\"contentContainer\">\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1568
                + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1569
                + "<caption><span>Module Group B</span><span class=\"tabEnd\">&nbsp;</span></caption>");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1570
        checkOutput("overview-summary.html", false,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1571
                "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1572
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1573
    }
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1574
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1575
    void checkModuleName(boolean found) {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1576
        checkOutput("test.moduleFullName/module-summary.html", found,
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1577
                "<div class=\"header\">\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1578
                + "<h1 title=\"Module\" class=\"title\">Module&nbsp;test.moduleFullName</h1>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1579
                + "</div>");
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1580
        checkOutput("index-all.html", found,
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1581
                "<h2 class=\"title\">T</h2>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1582
                + "<dl>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1583
                + "<dt><a href=\"test.moduleFullName/module-summary.html\">test.moduleFullName</a> - module test.moduleFullName</dt>\n"
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1584
                + "<dd>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1585
                + "<div class=\"block\">This is a test description for the test.moduleFullName.</div>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1586
                + "</dd>");
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1587
        checkOutput("module-overview-frame.html", found,
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1588
                "<h2 title=\"Modules\">Modules</h2>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1589
                + "<ul title=\"Modules\">\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1590
                + "<li><a href=\"moduleB/module-frame.html\" target=\"packageListFrame\" onclick=\"updateModuleFrame('moduleB/module-type-frame.html','moduleB/module-summary.html');\">moduleB</a></li>\n"
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1591
                + "<li><a href=\"test.moduleFullName/module-frame.html\" target=\"packageListFrame\" onclick=\"updateModuleFrame('test.moduleFullName/module-type-frame.html','test.moduleFullName/module-summary.html');\">test.moduleFullName</a></li>\n"
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1592
                + "</ul>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1593
        checkOutput("test.moduleFullName/module-summary.html", !found,
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1594
                "<div class=\"header\">\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1595
                + "<h1 title=\"Module\" class=\"title\">Module&nbsp;moduleFullName</h1>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1596
                + "</div>");
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1597
        checkOutput("index-all.html", !found,
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1598
                "<dl>\n"
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1599
                + "<dt><a href=\"test.moduleFullName/module-summary.html\">moduleFullName</a> - module moduleFullName</dt>\n"
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1600
                + "<dd>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1601
                + "<div class=\"block\">This is a test description for the test.moduleFullName.</div>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1602
                + "</dd>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1603
                + "</dl>");
47300
a905ce398074 8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents: 47299
diff changeset
  1604
    }
48295
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
  1605
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
  1606
    void checkLinkOffline() {
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1607
        checkOutput("moduleB/testpkg3mdlB/package-summary.html", true,
48295
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
  1608
                "<a href=\"https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true\" "
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
  1609
                + "title=\"class or interface in java.lang\" class=\"externalLink\"><code>Link to String Class</code></a>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1610
        checkOutput("moduleB/testpkg3mdlB/package-summary.html", true,
48295
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
  1611
                "<a href=\"https://docs.oracle.com/javase/9/docs/api/java/lang/package-summary.html?is-external=true\" "
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
  1612
                + "class=\"externalLink\"><code>Link to java.lang package</code></a>");
48759
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1613
        checkOutput("moduleB/testpkg3mdlB/package-summary.html", true,
ffa68af7da87 8195795: Organize output files by module/package, not just package
jjg
parents: 48654
diff changeset
  1614
                "<a href=\"https://docs.oracle.com/javase/9/docs/api/java.base/module-summary.html?is-external=true\" "
48295
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
  1615
                + "class=\"externalLink\"><code>Link to java.base module</code></a>");
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1616
}
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1617
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1618
    void checkAllPkgsAllClasses(boolean found) {
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1619
        checkOutput("allclasses-index.html", true,
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1620
                "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Classes</span>"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1621
                + "<span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\">"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1622
                + "<span><a href=\"javascript:show(2);\">Class Summary</a></span><span class=\"tabEnd\">"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1623
                + "&nbsp;</span></span><span id=\"t6\" class=\"tableTab\"><span><a href=\"javascript:show(32);\">"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1624
                + "Annotation Types Summary</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>\n"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1625
                + "<tr>\n"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1626
                + "<th class=\"colFirst\" scope=\"col\">Class</th>\n"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1627
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1628
                + "</tr>");
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1629
        checkOutput("allpackages-index.html", true,
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1630
                "<caption><span>Package Summary</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1631
                + "<tr>\n"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1632
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1633
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1634
                + "</tr>\n");
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1635
        checkOutput("allclasses-index.html", found,
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1636
                "<table class=\"typeSummary\">\n");
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1637
        checkOutput("allpackages-index.html", found,
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1638
                "<table class=\"packagesSummary\">\n");
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1639
        checkOutput("allclasses-index.html", !found,
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1640
                "<table class=\"typeSummary\" summary=\"Class Summary table, listing classes, and an explanation\">");
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1641
        checkOutput("allpackages-index.html", !found,
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1642
                "<table class=\"packagesSummary\" summary=\"Package Summary table, listing packages, and an explanation\">");
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1643
        checkOutput("type-search-index.js", true,
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1644
                "{\"l\":\"All Classes\",\"url\":\"allclasses-index.html\"}");
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1645
        checkOutput("package-search-index.js", true,
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1646
                "{\"l\":\"All Packages\",\"url\":\"allpackages-index.html\"}");
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1647
        checkOutput("index-all.html", true,
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1648
                "<br><a href=\"allclasses-index.html\">All&nbsp;Classes</a>&nbsp;"
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1649
                + "<a href=\"allpackages-index.html\">All&nbsp;Packages</a>");
48295
c79d31ba84b9 8164407: Add module support for -link and -linkoffline javadoc option
bpatel
parents: 47861
diff changeset
  1650
}
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 50118
diff changeset
  1651
}