test/langtools/jdk/javadoc/doclet/testModules/TestModules.java
author bpatel
Wed, 25 Oct 2017 12:29:00 -0700
changeset 47447 9887d1bc3e9c
parent 47300 a905ce398074
child 47846 4e78aba768f0
permissions -rw-r--r--
8183037: Overview summary page should have a table with tabs for groups Reviewed-by: jjg, ksrini
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
/*
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
     2
 * Copyright (c) 2016, 2017, 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
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
    27
 *      8168766 8168688 8162674 8160196 8175799 8174974 8176778 8177562 8175218 8175823 8166306
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
    28
 *      8178043 8181622 8183511 8169819 8074407 8183037
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    29
 * @summary Test modules support in javadoc.
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    30
 * @author bpatel
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    31
 * @library ../lib
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    32
 * @modules jdk.javadoc/jdk.javadoc.internal.tool
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    33
 * @build JavadocTester
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    34
 * @run main TestModules
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    35
 */
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    36
public class TestModules extends JavadocTester {
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    37
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    38
    public static void main(String... args) throws Exception {
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    39
        TestModules tester = new TestModules();
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    40
        tester.runTests();
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    41
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    42
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    43
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    44
     * Test generated module pages for HTML 4.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    45
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    46
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    47
    void testHtml4() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
    48
        javadoc("-d", "out", "-use",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
    49
                "-overview", testSrc("overview.html"),
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    50
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
    51
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
    52
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    53
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    54
        checkDescription(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    55
        checkNoDescription(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    56
        checkOverviewSummaryModules();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    57
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    58
        checkModuleClickThroughLinks();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    59
        checkModuleClickThrough(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    60
        checkModuleFilesAndLinks(true);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
    61
        checkModulesInSearch(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
    62
        checkOverviewFrame(true);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    63
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    64
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    65
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    66
     * Test generated module pages for HTML 5.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    67
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    68
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    69
    void testHtml5() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
    70
        javadoc("-d", "out-html5", "-html5", "-use",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
    71
                "-overview", testSrc("overview.html"),
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    72
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
    73
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
    74
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    75
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    76
        checkHtml5Description(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    77
        checkHtml5NoDescription(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    78
        checkHtml5OverviewSummaryModules();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    79
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    80
        checkModuleClickThroughLinks();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    81
        checkModuleClickThrough(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    82
        checkModuleFilesAndLinks(true);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
    83
        checkModulesInSearch(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
    84
        checkOverviewFrame(true);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    85
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    86
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    87
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    88
     * 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
    89
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    90
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    91
    void testHtml4NoComment() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
    92
        javadoc("-d", "out-nocomment", "-nocomment", "-use",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
    93
                "-overview", testSrc("overview.html"),
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    94
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
    95
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
    96
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    97
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    98
        checkDescription(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    99
        checkNoDescription(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   100
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   101
        checkModuleFilesAndLinks(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   102
        checkOverviewFrame(true);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   103
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   104
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   105
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   106
     * 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
   107
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   108
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   109
    void testHtml5NoComment() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   110
        javadoc("-d", "out-html5-nocomment", "-nocomment", "-html5", "-use",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   111
                "-overview", testSrc("overview.html"),
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
   112
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   113
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   114
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   115
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   116
        checkHtml5Description(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   117
        checkHtml5NoDescription(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   118
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   119
        checkModuleFilesAndLinks(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   120
        checkOverviewFrame(true);
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   121
    }
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   122
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   123
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   124
     * 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
   125
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   126
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   127
    void testHtml4UnnamedModule() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   128
        javadoc("-d", "out-nomodule", "-use",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   129
                "-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
   130
                "-sourcepath", testSrc,
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   131
                "testpkgnomodule", "testpkgnomodule1");
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   132
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   133
        checkOverviewSummaryPackages();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   134
        checkModuleClickThrough(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   135
        checkModuleFilesAndLinks(false);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   136
        checkModulesInSearch(false);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   137
        checkOverviewFrame(false);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   138
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   139
40503
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 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
   142
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   143
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   144
    void testHtml5UnnamedModule() {
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   145
        javadoc("-d", "out-html5-nomodule", "-html5", "-use",
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   146
                "-overview", testSrc("overview.html"),
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   147
                "-sourcepath", testSrc,
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   148
                "testpkgnomodule", "testpkgnomodule1");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   149
        checkExit(Exit.OK);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   150
        checkHtml5OverviewSummaryPackages();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   151
        checkModuleFilesAndLinks(false);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   152
        checkModulesInSearch(false);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   153
        checkOverviewFrame(false);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   154
    }
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   155
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   156
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   157
     * Test generated module pages with javadoc tags.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   158
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   159
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   160
    void testJDTagsInModules() {
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   161
        javadoc("-d", "out-mdltags", "-author", "-version",
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   162
                "-tag", "regular:a:Regular Tag:",
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   163
                "-tag", "moduletag:s:Module Tag:",
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
   164
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   165
                "--module", "moduletags,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   166
                "testpkgmdltags", "testpkgmdlB");
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   167
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   168
        checkModuleTags();
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   169
    }
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   170
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   171
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   172
     * Test generated module summary page.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   173
     */
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   174
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   175
    void testModuleSummary() {
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   176
        javadoc("-d", "out-moduleSummary", "-use",
40599
be40838eb215 8164887: update tests to remove use of old-style options
jjg
parents: 40511
diff changeset
   177
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   178
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   179
                "testpkgmdlA", "testpkgmdlB", "moduleB/testpkg2mdlB");
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   180
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   181
        checkModuleSummary();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   182
        checkNegatedModuleSummary();
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   183
    }
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   184
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   185
    /**
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   186
     * 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
   187
     */
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   188
    @Test
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   189
    void testAggregatorModuleSummary() {
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   190
        javadoc("-d", "out-aggregatorModuleSummary", "-use",
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   191
                "--module-source-path", testSrc,
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   192
                "--expand-requires", "transitive",
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   193
                "--module", "moduleT");
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   194
        checkExit(Exit.OK);
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   195
        checkAggregatorModuleSummary();
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   196
    }
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   197
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   198
    /**
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   199
     * 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
   200
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   201
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   202
    void testModuleFilesAndLinks() {
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   203
        javadoc("-d", "out-modulelinks",
40599
be40838eb215 8164887: update tests to remove use of old-style options
jjg
parents: 40511
diff changeset
   204
                "--module-source-path", testSrc,
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   205
                "--module", "moduleA,moduleB",
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   206
                "testpkgmdlA", "testpkgmdlB");
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   207
        checkExit(Exit.OK);
40508
74ef30d16fb9 8159305: Enhance the javadoc tool to support module related options
ksrini
parents: 40503
diff changeset
   208
        checkModuleFilesAndLinks(true);
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   209
        checkOverviewFrame(true);
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   210
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   211
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   212
    /**
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   213
     * Test generated module pages for a deprecated module.
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   214
     */
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   215
    @Test
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   216
    void testModuleDeprecation() {
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   217
        javadoc("-d", "out-moduledepr",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   218
                "-tag", "regular:a:Regular Tag:",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   219
                "-tag", "moduletag:s:Module Tag:",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   220
                "--module-source-path", testSrc,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   221
                "--module", "moduleA,moduleB,moduletags",
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   222
                "testpkgmdlA", "testpkgmdlB", "testpkgmdltags");
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   223
        checkExit(Exit.OK);
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   224
        checkModuleDeprecation(true);
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   225
    }
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   226
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   227
    /**
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   228
     * Test annotations on modules.
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   229
     */
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   230
    @Test
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   231
    void testModuleAnnotation() {
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   232
        javadoc("-d", "out-moduleanno",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   233
                "--module-source-path", testSrc,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   234
                "--module", "moduleA,moduleB",
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   235
                "testpkgmdlA", "testpkgmdlB");
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   236
        checkExit(Exit.OK);
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   237
        checkModuleAnnotation();
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   238
    }
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   239
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   240
    /**
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   241
     * 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
   242
     */
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   243
    @Test
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   244
    void testApiMode() {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   245
        javadoc("-d", "out-api", "-use", "--show-module-contents=api", "-author", "-version",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   246
                "-tag", "regular:a:Regular Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   247
                "-tag", "moduletag:s:Module Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   248
                "--module-source-path", testSrc,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   249
                "--module", "moduleA,moduleB,moduleC,moduletags",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   250
                "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
   251
        checkExit(Exit.OK);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   252
        checkModuleModeCommon();
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   253
        checkModuleModeApi(true);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   254
        checkModuleModeAll(false);
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   255
        checkModuleFrameFiles(true);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   256
        checkAllModulesLink(true);
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   257
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   258
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   259
    /**
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   260
     * 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
   261
     */
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   262
    @Test
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   263
    void testAllMode() {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   264
        javadoc("-d", "out-all", "-use", "--show-module-contents=all", "-author", "-version",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   265
                "-tag", "regular:a:Regular Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   266
                "-tag", "moduletag:s:Module Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   267
                "--module-source-path", testSrc,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   268
                "--module", "moduleA,moduleB,moduleC,moduletags",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   269
                "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
   270
        checkExit(Exit.OK);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   271
        checkModuleModeCommon();
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   272
        checkModuleModeApi(false);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   273
        checkModuleModeAll(true);
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   274
        checkModuleFrameFiles(true);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   275
        checkAllModulesLink(true);
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   276
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   277
44689
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   278
    /**
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   279
     * 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
   280
     */
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   281
    @Test
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   282
    void testModuleSummaryNoExportedPkgAll() {
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   283
        javadoc("-d", "out-ModuleSummaryNoExportedPkgAll", "-use", "--show-module-contents=all",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   284
                "-sourcepath", testSrc + "/moduleNoExport",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   285
                "--module", "moduleNoExport",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   286
                "testpkgmdlNoExport");
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   287
        checkExit(Exit.OK);
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   288
        checkModuleSummaryNoExported(true);
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   289
    }
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   290
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   291
    /**
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   292
     * 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
   293
     */
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   294
    @Test
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   295
    void testModuleSummaryNoExportedPkgApi() {
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   296
        javadoc("-d", "out-ModuleSummaryNoExportedPkgApi", "-use",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   297
                "-sourcepath", testSrc + "/moduleNoExport",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   298
                "--module", "moduleNoExport",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   299
                "testpkgmdlNoExport");
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   300
        checkExit(Exit.OK);
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   301
        checkModuleSummaryNoExported(false);
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   302
    }
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
   303
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   304
    /**
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   305
     * 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
   306
     */
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   307
    @Test
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   308
    void testSingleModuleSinglePkg() {
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   309
        javadoc("-d", "out-singlemod",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   310
                "--module-source-path", testSrc,
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   311
                "--module", "moduleC",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   312
                "testpkgmdlC");
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   313
        checkExit(Exit.OK);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   314
        checkModuleFrameFiles(false);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   315
    }
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   316
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   317
    /**
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   318
     * 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
   319
     */
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   320
    @Test
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   321
    void testSingleModuleMultiplePkg() {
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   322
        javadoc("-d", "out-singlemodmultiplepkg", "--show-module-contents=all",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   323
                "--module-source-path", testSrc,
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   324
                "--module", "moduleB",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   325
                "testpkg2mdlB", "testpkgmdlB");
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   326
        checkExit(Exit.OK);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   327
        checkAllModulesLink(false);
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   328
    }
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   329
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   330
    /**
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   331
     * 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
   332
     */
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   333
    @Test
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   334
    void testGroupOption() {
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   335
        javadoc("-d", "out-group", "--show-module-contents=all",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   336
                "-tag", "regular:a:Regular Tag:",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   337
                "-tag", "moduletag:s:Module Tag:",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   338
                "--module-source-path", testSrc,
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   339
                "-group", "Module Group A", "moduleA*",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   340
                "-group", "Module Group B & C", "moduleB*:moduleC*",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   341
                "-group", "Java SE Modules", "java*",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   342
                "--module", "moduleA,moduleB,moduleC,moduletags",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   343
                "moduleA/concealedpkgmdlA", "testpkgmdlA", "testpkg2mdlB", "testpkgmdlB", "testpkgmdlC",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   344
                "testpkgmdltags");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   345
        checkExit(Exit.OK);
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   346
        checkGroupOption();
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   347
    }
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   348
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   349
    /**
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   350
     * 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
   351
     * 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
   352
     * 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
   353
     */
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   354
    @Test
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   355
    void testGroupOptionOrdering() {
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   356
        javadoc("-d", "out-groupOrder", "--show-module-contents=all",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   357
                "-tag", "regular:a:Regular Tag:",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   358
                "-tag", "moduletag:s:Module Tag:",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   359
                "--module-source-path", testSrc,
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   360
                "-group", "B Group", "moduleB*",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   361
                "-group", "C Group", "moduleC*",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   362
                "-group", "A Group", "moduleA*",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   363
                "-group", "Java SE Modules", "java*",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   364
                "--module", "moduleA,moduleB,moduleC,moduletags",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   365
                "moduleA/concealedpkgmdlA", "testpkgmdlA", "testpkg2mdlB", "testpkgmdlB", "testpkgmdlC",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   366
                "testpkgmdltags");
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   367
        checkExit(Exit.OK);
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   368
        checkGroupOptionOrdering();
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   369
    }
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   370
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   371
    /**
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   372
     * 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
   373
     */
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   374
    @Test
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   375
    void testUnnamedModuleGroupOption() {
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   376
        javadoc("-d", "out-groupnomodule", "-use",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   377
                "-overview", testSrc("overview.html"),
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   378
                "-sourcepath", testSrc,
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   379
                "-group", "Package Group 0", "testpkgnomodule",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   380
                "-group", "Package Group 1", "testpkgnomodule1",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   381
                "testpkgnomodule", "testpkgnomodule1");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   382
        checkExit(Exit.OK);
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   383
        checkUnnamedModuleGroupOption();
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   384
    }
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   385
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   386
    /**
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   387
     * 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
   388
     * 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
   389
     * 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
   390
     */
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   391
    @Test
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   392
    void testGroupOptionPackageOrdering() {
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   393
        javadoc("-d", "out-groupPkgOrder", "-use",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   394
                "-overview", testSrc("overview.html"),
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   395
                "-sourcepath", testSrc,
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   396
                "-group", "Z Group", "testpkgnomodule",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   397
                "-group", "A Group", "testpkgnomodule1",
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   398
                "testpkgnomodule", "testpkgnomodule1");
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   399
        checkExit(Exit.OK);
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   400
        checkGroupOptionPackageOrdering();
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   401
    }
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   402
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   403
    /**
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   404
     * Test -group option for a single module.
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   405
     */
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   406
    @Test
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   407
    void testGroupOptionSingleModule() {
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   408
        javadoc("-d", "out-groupsinglemodule", "-use",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   409
                "--module-source-path", testSrc,
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   410
                "-group", "Module Group B", "moduleB*",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   411
                "--module", "moduleB",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   412
                "testpkg2mdlB", "testpkgmdlB");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   413
        checkExit(Exit.OK);
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   414
        checkGroupOptionSingleModule();
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   415
    }
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   416
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   417
    /**
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   418
     * Test -group option for a single module.
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   419
     */
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   420
    @Test
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   421
    void testModuleName() {
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   422
        javadoc("-d", "out-modulename", "-use",
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   423
                "--module-source-path", testSrc,
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   424
                "--module", "moduleB,test.moduleFullName",
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   425
                "testpkg2mdlB", "testpkgmdlB", "testpkgmdlfullname");
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   426
        checkExit(Exit.OK);
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
   427
        checkModuleName(true);
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   428
    }
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   429
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   430
    void checkDescription(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   431
        checkOutput("moduleA-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   432
                "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   433
                + "<a name=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   434
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   435
                + "</a>\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   436
                + "<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
   437
                + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   438
        checkOutput("moduleB-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   439
                "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   440
                + "<a name=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   441
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   442
                + "</a>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   443
                + "<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
   444
                + "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
   445
        checkOutput("overview-summary.html", found,
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   446
                "</script>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   447
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   448
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   449
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   450
                + "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   451
                + "<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
   452
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   453
        checkOutput("overview-summary.html", false,
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   454
                "</table>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   455
                + "</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   456
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   457
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   458
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   459
                + "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   460
                + "<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
   461
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   462
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   463
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   464
    void checkNoDescription(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   465
        checkOutput("moduleA-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   466
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   467
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   468
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   469
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   470
                + "<li class=\"blockList\">\n"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   471
                + "<!-- ============ PACKAGES SUMMARY =========== -->");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   472
        checkOutput("moduleB-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   473
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   474
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   475
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   476
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   477
                + "<li class=\"blockList\">\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   478
                + "<!-- ============ PACKAGES SUMMARY =========== -->");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   479
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   480
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   481
    void checkHtml5Description(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   482
        checkOutput("moduleA-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   483
                "<section role=\"region\">\n"
47272
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   484
                + "<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
   485
                + " 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
   486
                + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   487
                + "</div>\n"
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   488
                + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   489
                + "<a id=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   490
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   491
                + "</a>\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   492
                + "<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
   493
                + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   494
        checkOutput("moduleB-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   495
                "<section role=\"region\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   496
                + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   497
                + "<a id=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   498
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   499
                + "</a>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   500
                + "<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
   501
                + "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
   502
        checkOutput("overview-summary.html", found,
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   503
                "</nav>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   504
                + "</header>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   505
                + "<main role=\"main\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   506
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   507
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   508
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   509
                + "<div class=\"contentContainer\">\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   510
                + "<table class=\"overviewSummary\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   511
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   512
        checkOutput("overview-summary.html", false,
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   513
                "</table>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   514
                + "</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   515
                + "</main>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   516
                + "<main role=\"main\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   517
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   518
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   519
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   520
                + "<div class=\"contentContainer\">\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   521
                + "<table class=\"overviewSummary\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   522
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   523
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   524
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   525
    void checkHtml5NoDescription(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   526
        checkOutput("moduleA-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   527
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   528
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   529
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   530
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   531
                + "<li class=\"blockList\">\n"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   532
                + "<!-- ============ PACKAGES SUMMARY =========== -->");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   533
        checkOutput("moduleB-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   534
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   535
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   536
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   537
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   538
                + "<li class=\"blockList\">\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   539
                + "<!-- ============ PACKAGES SUMMARY =========== -->");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   540
    }
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   541
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   542
    void checkModuleLink() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   543
        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
   544
                "<li>Module</li>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   545
        checkOutput("moduleA-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
   546
                "<li class=\"navBarCell1Rev\">Module</li>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   547
        checkOutput("moduleB-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
   548
                "<li class=\"navBarCell1Rev\">Module</li>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   549
        checkOutput("testpkgmdlA/class-use/TestClassInModuleA.html", true,
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   550
                "<li><a href=\"../../moduleA-summary.html\">Module</a></li>");
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   551
        checkOutput("testpkgmdlB/package-summary.html", true,
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   552
                "<li><a href=\"../moduleB-summary.html\">Module</a></li>");
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   553
        checkOutput("testpkgmdlB/TestClassInModuleB.html", true,
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   554
                "<li><a href=\"../moduleB-summary.html\">Module</a></li>");
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   555
        checkOutput("testpkgmdlB/class-use/TestClassInModuleB.html", true,
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   556
                "<li><a href=\"../../moduleB-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
   557
    }
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   558
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   559
    void checkNoModuleLink() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   560
        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
   561
                "<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
   562
                + "<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
   563
        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
   564
                "<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
   565
                + "<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
   566
        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
   567
                "<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
   568
                + "<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
   569
    }
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   570
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   571
    void checkModuleTags() {
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   572
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   573
                "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
   574
                + "testpkgmdltags\"><code>TestClassInModuleTags</code></a>.",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   575
                "Member Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html#"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   576
                + "testMethod-java.lang.String-\"><code>testMethod(String)</code></a>.",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   577
                "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
   578
                "<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
   579
                + "<dd>JDK 9</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   580
                "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   581
                + "<dd>\"Test see tag\", \n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   582
                + "<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
   583
                + "TestClassInModuleTags</code></a></dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   584
                "<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
   585
                + "<dd>Just a regular simple tag.</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   586
                "<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
   587
                + "<dd>Just a simple module tag.</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   588
                "<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
   589
                + "<dd>1.0</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   590
                "<dt><span class=\"simpleTagLabel\">Author:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   591
                + "<dd>Bhavesh Patel</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   592
        checkOutput("testpkgmdltags/TestClassInModuleTags.html", false,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   593
                "<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   594
                + "<dd>Just a simple module tag.</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   595
    }
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   596
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   597
    void checkOverviewSummaryModules() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   598
        checkOutput("overview-summary.html", true,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   599
                "<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
   600
                + "<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
   601
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   602
                + "<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
   603
                + "<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
   604
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   605
        checkOutput("overview-summary.html", false,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   606
                "<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
   607
                + "<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
   608
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   609
                + "<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
   610
                + "<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
   611
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   612
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   613
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   614
    void checkOverviewSummaryPackages() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   615
        checkOutput("overview-summary.html", false,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   616
                "<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
   617
                + "<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
   618
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   619
                + "<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
   620
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   621
                + "</tr>",
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   622
                "</table>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   623
                + "</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   624
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   625
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   626
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   627
                + "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   628
                + "<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
   629
                + "<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
   630
        checkOutput("overview-summary.html", true,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   631
                "<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
   632
                + "<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
   633
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   634
                + "<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
   635
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   636
                + "</tr>",
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   637
                "</script>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   638
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   639
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   640
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   641
                + "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   642
                + "<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
   643
                + "<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
   644
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   645
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   646
    void checkHtml5OverviewSummaryModules() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   647
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   648
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   649
                + "<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
   650
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   651
                + "<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
   652
                + "<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
   653
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   654
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   655
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   656
                + "<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
   657
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   658
                + "<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
   659
                + "<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
   660
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   661
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   662
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   663
    void checkHtml5OverviewSummaryPackages() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   664
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   665
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   666
                + "<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
   667
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   668
                + "<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
   669
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   670
                + "</tr>",
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   671
                "</table>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   672
                + "</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   673
                + "</main>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   674
                + "<main role=\"main\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   675
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   676
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   677
                + "</div>\n"
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   678
                + "<div class=\"contentContainer\"><a id=\"Packages\">\n"
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   679
                + "<!--   -->\n"
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
   680
                + "</a>\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   681
                + "<table class=\"overviewSummary\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   682
                + "<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
   683
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   684
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   685
                + "<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
   686
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   687
                + "<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
   688
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   689
                + "</tr>",
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   690
                "</script>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   691
                + "</nav>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   692
                + "</header>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   693
                + "<main role=\"main\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   694
                + "<div class=\"contentContainer\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   695
                + "<div class=\"block\">The overview summary page header.</div>\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   696
                + "</div>\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
   697
                + "<div class=\"contentContainer\">\n"
44195
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   698
                + "<table class=\"overviewSummary\">\n"
5860769fe2f4 8175799: module summary page shows duplicated output
bpatel
parents: 42842
diff changeset
   699
                + "<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
   700
    }
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   701
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   702
    void checkModuleSummary() {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   703
        checkOutput("moduleA-summary.html", true,
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   704
                "<ul class=\"subNavList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   705
                + "<li>Module:&nbsp;</li>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   706
                + "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a "
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   707
                + "href=\"#modules.summary\">Modules</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   708
                + "Packages</a>&nbsp;|&nbsp;Services</li>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   709
                + "</ul>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   710
                "<!-- ============ MODULES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   711
                + "<a name=\"modules.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   712
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   713
                + "</a>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   714
                "<tr class=\"altColor\" id=\"i0\">\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   715
                + "<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
   716
                + "<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
   717
                + "</tr>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   718
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   719
                + "<a name=\"packages.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   720
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   721
                + "</a>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   722
                "<tr class=\"altColor\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   723
                + "<td class=\"colFirst\">transitive</td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   724
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   725
                + "<td class=\"colLast\">\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   726
                + "<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
   727
                + "</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   728
                + "</tr>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   729
        checkOutput("moduleB-summary.html", true,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   730
                "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;Modules&nbsp;|&nbsp;"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   731
                + "<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;<a href=\"#services.summary\">"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   732
                + "Services</a></li>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   733
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   734
                + "<a name=\"packages.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   735
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   736
                + "</a>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   737
                "<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
   738
                + "<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
   739
                + "<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
   740
                + "</tr>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   741
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   742
                + "<a name=\"packages.summary\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   743
                + "<!--   -->\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   744
                + "</a>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   745
                "<!-- ============ SERVICES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   746
                + "<a name=\"services.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   747
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   748
                + "</a>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   749
                "<tr class=\"altColor\">\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   750
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClassInModuleB.html\" title=\"class in testpkgmdlB\">TestClassInModuleB</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   751
                + "<td class=\"colLast\">With a test description for uses.&nbsp;</td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   752
                + "</tr>",
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   753
                "<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
   754
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   755
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   756
                + "<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
   757
                + "</tr>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   758
                "<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
   759
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   760
                + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   761
                + "<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
   762
                + "</tr>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   763
                "<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
   764
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   765
                + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   766
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   767
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   768
    }
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   769
44293
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   770
    void checkAggregatorModuleSummary() {
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   771
        checkOutput("moduleT-summary.html", true,
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   772
                "<div class=\"header\">\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   773
                + "<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
   774
                + "</div>",
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   775
                "<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
   776
                + "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
   777
                + "Make sure there are no exported packages.</div>",
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   778
                "<tbody>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   779
                + "<tr class=\"altColor\">\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   780
                + "<td class=\"colFirst\">transitive</td>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   781
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleA-summary.html\">moduleA</a></th>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   782
                + "<td class=\"colLast\">\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   783
                + "<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
   784
                + "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
   785
                + "</td>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   786
                + "</tr>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   787
                + "<tr class=\"rowColor\">\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   788
                + "<td class=\"colFirst\">transitive</td>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   789
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   790
                + "<td class=\"colLast\">\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   791
                + "<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
   792
                + "</td>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   793
                + "</tr>\n"
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   794
                + "</tbody>");
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   795
    }
2f47b2c16612 8176778: javadoc does not produce summary pages for aggregated modules
ksrini
parents: 44196
diff changeset
   796
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   797
    void checkNegatedModuleSummary() {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   798
        checkOutput("moduleA-summary.html", false,
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   799
                "<!-- ============ SERVICES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   800
                + "<a name=\"services.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   801
                + "<!--   -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   802
                + "</a>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   803
    }
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   804
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   805
    void checkModuleClickThroughLinks() {
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   806
        checkOutput("module-overview-frame.html", true,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   807
                "<li><a href=\"moduleA-frame.html\" target=\"packageListFrame\" "
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   808
                + "onclick=\"updateModuleFrame('moduleA-type-frame.html','moduleA-summary.html');"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   809
                + "\">moduleA</a></li>",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   810
                "<li><a href=\"moduleB-frame.html\" target=\"packageListFrame\" "
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   811
                + "onclick=\"updateModuleFrame('moduleB-type-frame.html','moduleB-summary.html');"
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   812
                + "\">moduleB</a></li>");
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   813
        checkOutput("script.js", true,
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   814
                "function updateModuleFrame(pFrame, cFrame)\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   815
                + "{\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   816
                + "    top.packageFrame.location = pFrame;\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   817
                + "    top.classFrame.location = cFrame;\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   818
                + "}");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   819
    }
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   820
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   821
    void checkModuleClickThrough(boolean found) {
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   822
        checkFiles(found,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   823
                "moduleA-type-frame.html",
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   824
                "moduleB-type-frame.html");
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   825
    }
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   826
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   827
    void checkModuleFilesAndLinks(boolean found) {
42842
2f0b2a65b284 8171413: jdk/javadoc/doclet/testModules/TestModules.java failed due to some subtests failed
jjg
parents: 42831
diff changeset
   828
        checkFileAndOutput("testpkgmdlA/package-summary.html", found,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   829
                "<li><a href=\"../moduleA-summary.html\">Module</a></li>",
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   830
                "<div class=\"subTitle\"><span class=\"moduleLabelInPackage\">Module</span>&nbsp;"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   831
                + "<a href=\"../moduleA-summary.html\">moduleA</a></div>");
42842
2f0b2a65b284 8171413: jdk/javadoc/doclet/testModules/TestModules.java failed due to some subtests failed
jjg
parents: 42831
diff changeset
   832
        checkFileAndOutput("testpkgmdlA/TestClassInModuleA.html", found,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   833
                "<li><a href=\"../moduleA-summary.html\">Module</a></li>",
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   834
                "<div class=\"subTitle\"><span class=\"moduleLabelInType\">Module</span>&nbsp;"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   835
                + "<a href=\"../moduleA-summary.html\">moduleA</a></div>");
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   836
        checkFileAndOutput("testpkgmdlB/AnnotationType.html", found,
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   837
                "<div class=\"subTitle\"><span class=\"moduleLabelInType\">Module</span>&nbsp;"
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   838
                + "<a href=\"../moduleB-summary.html\">moduleB</a></div>",
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   839
                "<div class=\"subTitle\"><span class=\"packageLabelInType\">"
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   840
                + "Package</span>&nbsp;<a href=\"../testpkgmdlB/package-summary.html\">testpkgmdlB</a></div>");
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   841
        checkFiles(found,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   842
                "moduleA-frame.html",
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   843
                "moduleA-summary.html",
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   844
                "module-overview-frame.html");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   845
    }
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   846
44879
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   847
    void checkModuleFrameFiles(boolean found) {
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   848
        checkFiles(found,
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   849
                "moduleC-frame.html",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   850
                "moduleC-type-frame.html",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   851
                "module-overview-frame.html");
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   852
        checkFiles(true,
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   853
                "moduleC-summary.html",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   854
                "allclasses-frame.html",
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   855
                "allclasses-noframe.html");
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   856
    }
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   857
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   858
    void checkAllModulesLink(boolean found) {
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   859
        checkOutput("overview-frame.html", found,
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   860
                "<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
   861
    }
49beafe2faf3 8166306: Broken link for All Packages in java.jnlp module
bpatel
parents: 44807
diff changeset
   862
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   863
    void checkModulesInSearch(boolean found) {
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   864
        checkOutput("index-all.html", found,
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   865
                "<dl>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   866
                + "<dt><a href=\"moduleA-summary.html\">moduleA</a> - module moduleA</dt>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   867
                + "<dd>\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   868
                + "<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
   869
                + "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
   870
                + "</dd>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   871
                + "<dt><a href=\"moduleB-summary.html\">moduleB</a> - module moduleB</dt>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   872
                + "<dd>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   873
                + "<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
   874
                + "</dd>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   875
                + "</dl>",
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   876
                "<dl>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   877
                + "<dt><span class=\"searchTagLink\"><a href=\"moduleA-summary.html#searchphrase\">"
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   878
                + "search phrase</a></span> - Search tag in moduleA</dt>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   879
                + "<dd>with description</dd>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   880
                + "<dt><span class=\"searchTagLink\"><a href=\"moduleB-summary.html#search_word\">"
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   881
                + "search_word</a></span> - Search tag in moduleB</dt>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   882
                + "<dd>&nbsp;</dd>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   883
                + "</dl>");
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   884
        checkOutput("index-all.html", false,
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   885
                "<dt><span class=\"searchTagLink\"><a href=\"moduleA-summary.html#searchphrase\">"
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   886
                + "search phrase</a></span> - Search tag in moduleA</dt>\n"
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   887
                + "<dd>with description</dd>\n"
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   888
                + "<dt><span class=\"searchTagLink\"><a href=\"moduleA-summary.html#searchphrase\">"
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   889
                + "search phrase</a></span> - Search tag in moduleA</dt>\n"
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   890
                + "<dd>with description</dd>");
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
   891
    }
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   892
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   893
    void checkModuleModeCommon() {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   894
        checkOutput("overview-summary.html", true,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   895
                "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleA-summary.html\">moduleA</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   896
                + "<td class=\"colLast\">\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   897
                + "<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
   898
                + "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
   899
                + "</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   900
                "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   901
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   902
                + "<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
   903
                + "</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   904
                "<th class=\"colFirst\" scope=\"row\"><a href=\"moduletags-summary.html\">moduletags</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   905
                + "<td class=\"colLast\">\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   906
                + "<div class=\"block\">This is a test description for the moduletags module.<br>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   907
                + " Type Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in testpkgmdltags\"><code>TestClassInModuleTags</code></a>.<br>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   908
                + " Member Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html#testMethod-java.lang.String-\"><code>testMethod(String)</code></a>.<br>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   909
                + " Package Link: <a href=\"testpkgmdltags/package-summary.html\"><code>testpkgmdltags</code></a>.<br></div>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   910
                + "</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   911
        checkOutput("moduleA-summary.html", true,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   912
                "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a href=\"#modules.summary\">"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   913
                + "Modules</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;Services</li>",
42842
2f0b2a65b284 8171413: jdk/javadoc/doclet/testModules/TestModules.java failed due to some subtests failed
jjg
parents: 42831
diff changeset
   914
                "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
2f0b2a65b284 8171413: jdk/javadoc/doclet/testModules/TestModules.java failed due to some subtests failed
jjg
parents: 42831
diff changeset
   915
                + "<td class=\"colLast\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></td>\n");
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   916
        checkOutput("moduleB-summary.html", true,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   917
                "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClassInModuleB.html\" title=\"class in testpkgmdlB\">TestClassInModuleB</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   918
                + "<td class=\"colLast\">With a test description for uses.&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   919
        checkOutput("moduletags-summary.html", true,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   920
                "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a href=\"#modules.summary\">Modules"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   921
                + "</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;Services</li>",
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   922
                "<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
   923
                + "<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
   924
                "<td class=\"colFirst\">transitive</td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   925
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   926
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   927
                + "<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
   928
                + "</td>",
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   929
                "<table class=\"packagesSummary\" summary=\"Indirect Exports table, listing modules, and packages\">\n"
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   930
                + "<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
   931
                "<td class=\"colFirst\">transitive static</td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   932
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleA-summary.html\">moduleA</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   933
                + "<td class=\"colLast\">\n"
45913
90f6a96c1603 8181622: new {@index} tag generates multiple index entries
bpatel
parents: 45771
diff changeset
   934
                + "<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
   935
                + "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
   936
                + "</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   937
                "<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
   938
                + "<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
   939
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   940
                + "<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
   941
                + "<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
   942
                + "<th class=\"colLast\" scope=\"col\">Description</th>",
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   943
                "<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
   944
                + "<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
   945
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   946
                + "<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
   947
                + "<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
   948
                + "<th class=\"colLast\" scope=\"col\">Description</th>",
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   949
                "<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
   950
                + "<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
   951
                + "<tr>\n"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   952
                + "<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
   953
                + "<th class=\"colLast\" scope=\"col\">Packages</th>\n"
42842
2f0b2a65b284 8171413: jdk/javadoc/doclet/testModules/TestModules.java failed due to some subtests failed
jjg
parents: 42831
diff changeset
   954
                + "</tr>\n",
2f0b2a65b284 8171413: jdk/javadoc/doclet/testModules/TestModules.java failed due to some subtests failed
jjg
parents: 42831
diff changeset
   955
                "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
2f0b2a65b284 8171413: jdk/javadoc/doclet/testModules/TestModules.java failed due to some subtests failed
jjg
parents: 42831
diff changeset
   956
                + "<td class=\"colLast\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></td>\n");
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   957
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   958
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   959
    void checkModuleModeApi(boolean found) {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   960
        checkOutput("moduleA-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   961
                "<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
   962
                + "<td class=\"colLast\">&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   963
        checkOutput("moduleB-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   964
                "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;Modules&nbsp;|&nbsp;"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   965
                + "<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;<a href=\"#services.summary\">Services</a></li>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   966
                "<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
   967
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   968
                "<table class=\"packagesSummary\" summary=\"Packages table, listing packages, and an explanation\">\n"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
   969
                + "<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
   970
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   971
                + "<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
   972
                + "<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
   973
                + "</tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   974
                + "<tbody>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   975
                + "<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
   976
                + "<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
   977
                + "<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
   978
                + "</tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   979
                + "</tbody>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   980
                + "</table>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   981
        checkOutput("moduletags-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   982
                "<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
   983
                + "<td class=\"colLast\">&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   984
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   985
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   986
    void checkModuleModeAll(boolean found) {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   987
        checkOutput("moduleA-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   988
                "<td class=\"colFirst\"> </td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   989
                + "<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
   990
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   991
                "<td class=\"colFirst\"> </td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   992
                + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleC-summary.html\">moduleC</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   993
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   994
                + "<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
   995
                + "</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   996
                "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleC-summary.html\">moduleC</a></th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   997
                + "<td class=\"colLast\"><a href=\"testpkgmdlC/package-summary.html\">testpkgmdlC</a></td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   998
                "<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
   999
                + "<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
  1000
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1001
                "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;</span></span>"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1002
                + "<span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:showPkgs(1);\">Exports</a></span>"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1003
                + "<span class=\"tabEnd\">&nbsp;</span></span><span id=\"t3\" class=\"tableTab\"><span><a href=\"javascript:showPkgs(4);\">"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1004
                + "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
  1005
                "<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
  1006
                + "<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
  1007
                + "<td class=\"colLast\">&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1008
        checkOutput("moduleB-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1009
                "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a href=\"#modules.summary\">"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1010
                + "Modules</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;<a href=\"#services.summary\">Services</a></li>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1011
                "<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
  1012
                + "<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
  1013
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1014
                "<td class=\"colFirst\"> </td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1015
                + "<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
  1016
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1017
                "<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
  1018
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1019
                "<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
  1020
                + "<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
  1021
                + "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
  1022
                "<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
  1023
                + "<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
  1024
                + "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
  1025
                "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1026
                + "<a href=\"javascript:showPkgs(1);\">Exports</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span>"
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1027
                + "<a href=\"javascript:showPkgs(2);\">Opens</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
  1028
        checkOutput("moduleC-summary.html", found,
44564
4e1df2513486 8177562: Small updates to module summary page
jjg
parents: 44293
diff changeset
  1029
                "<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
  1030
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1031
                + "<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
  1032
                + "<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
  1033
                + "<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
  1034
                + "</tr>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1035
        checkOutput("moduletags-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1036
                "<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
  1037
                + "<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
  1038
                + "<td class=\"colLast\">&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1039
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
  1040
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1041
    void checkModuleDeprecation(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1042
        checkOutput("moduleA-summary.html", found,
47272
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
  1043
                "<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
  1044
                + " 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
  1045
                + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1046
                + "</div>");
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1047
        checkOutput("deprecated-list.html", found,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1048
                "<ul>\n"
47299
56419ec66d4e 8169819: minor cleanup for deprecated page
bpatel
parents: 47272
diff changeset
  1049
                + "<li><a href=\"#forRemoval\">For Removal</a></li>\n"
56419ec66d4e 8169819: minor cleanup for deprecated page
bpatel
parents: 47272
diff changeset
  1050
                + "<li><a href=\"#module\">Modules</a></li>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1051
                + "</ul>",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1052
                "<tr class=\"altColor\">\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1053
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleA-summary.html\">moduleA</a></th>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1054
                + "<td class=\"colLast\">\n"
47300
a905ce398074 8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents: 47299
diff changeset
  1055
                + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1056
                + "</td>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1057
                + "</tr>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1058
        checkOutput("moduleB-summary.html", !found,
47272
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
  1059
                "<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
  1060
                + "<div class=\"deprecationComment\">This module is deprecated using just the javadoc tag.</div>\n");
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1061
        checkOutput("moduletags-summary.html", found,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1062
                "<p>@Deprecated\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1063
                + "</p>",
47272
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
  1064
                "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span></div>");
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1065
    }
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1066
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1067
    void checkModuleAnnotation() {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1068
        checkOutput("moduleB-summary.html", true,
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1069
                "<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
  1070
                + "                <a href=\"testpkgmdlB/AnnotationType.html#required--\">required</a>=2016)\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1071
                + "</p>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
  1072
        checkOutput("moduleB-summary.html", false,
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
  1073
                "@AnnotationTypeUndocumented");
44196
f88c0e9cb102 8174974: Annotation type pages generated by javadoc is missing module information
bpatel
parents: 44195
diff changeset
  1074
    }
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1075
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1076
    void checkOverviewFrame(boolean found) {
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1077
        checkOutput("index.html", !found,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1078
                "<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
  1079
        checkOutput("index.html", found,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1080
                "<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
  1081
    }
44689
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1082
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1083
    void checkModuleSummaryNoExported(boolean found) {
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1084
        checkOutput("moduleNoExport-summary.html", found,
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1085
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1086
                + "<a name=\"packages.summary\">\n"
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1087
                + "<!--   -->\n"
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1088
                + "</a>",
53c703004306 8175823: doclet crashes when documenting a single class in a module.
bpatel
parents: 44684
diff changeset
  1089
                "<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
  1090
    }
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1091
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1092
    void checkGroupOption() {
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1093
        checkOutput("overview-summary.html", true,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1094
                "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1095
                + "<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
  1096
                + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span class=\"tabEnd\">&nbsp;"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1097
                + "</span></span><span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:showGroups(1);\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1098
                + "Module Group A</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1099
                + "<span><a href=\"javascript:showGroups(2);\">Module Group B &amp; C</a></span><span class=\"tabEnd\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1100
                + "&nbsp;</span></span><span id=\"t4\" class=\"tableTab\"><span><a href=\"javascript:showGroups(4);\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1101
                + "Other Modules</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
  1102
                "var groups = {\"i0\":1,\"i1\":2,\"i2\":2,\"i3\":4};\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1103
                + "var tabs = {65535:[\"t0\",\"All Modules\"],1:[\"t1\",\"Module Group A\"],2:[\"t2\",\"Module Group B &amp; C\"],4:[\"t4\",\"Other Modules\"]};\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1104
                + "var altColor = \"altColor\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1105
                + "var rowColor = \"rowColor\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1106
                + "var tableTab = \"tableTab\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1107
                + "var activeTableTab = \"activeTableTab\";");
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1108
        checkOutput("overview-summary.html", false,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1109
                "<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
  1110
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>",
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1111
                "Java SE Modules");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1112
    }
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1113
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1114
    void checkGroupOptionOrdering() {
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1115
        checkOutput("overview-summary.html", true,
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1116
                "<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
  1117
                + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1118
                + "<a href=\"javascript:showGroups(1);\">B Group</a></span><span class=\"tabEnd\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1119
                + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1120
                + "C Group</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1121
                + "<span><a href=\"javascript:showGroups(4);\">A Group</a></span><span class=\"tabEnd\">&nbsp;</span>"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1122
                + "</span><span id=\"t8\" class=\"tableTab\"><span><a href=\"javascript:showGroups(8);\">Other Modules"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1123
                + "</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
  1124
                "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
  1125
                + "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
  1126
        checkOutput("overview-summary.html", false,
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1127
                "<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
  1128
                + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1129
                + "<a href=\"javascript:showGroups(1);\">A Group</a></span><span class=\"tabEnd\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1130
                + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1131
                + "B Group</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1132
                + "<span><a href=\"javascript:showGroups(4);\">C Group</a></span><span class=\"tabEnd\">&nbsp;</span>"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1133
                + "</span><span id=\"t8\" class=\"tableTab\"><span><a href=\"javascript:showGroups(8);\">Other Modules"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1134
                + "</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
  1135
                "Java SE Modules");
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1136
    }
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1137
45157
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1138
    void checkUnnamedModuleGroupOption() {
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1139
        checkOutput("overview-summary.html", true,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1140
                "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1141
                + "<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
  1142
                + "</div>\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1143
                + "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1144
                + "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1145
                + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1146
                + "</span></span><span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:showGroups(1);\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1147
                + "Package Group 0</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" "
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1148
                + "class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">Package Group 1</a></span>"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1149
                + "<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
  1150
                "var groups = {\"i0\":1,\"i1\":2};\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1151
                + "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
  1152
                + "var altColor = \"altColor\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1153
                + "var rowColor = \"rowColor\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1154
                + "var tableTab = \"tableTab\";\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1155
                + "var activeTableTab = \"activeTableTab\";");
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1156
    }
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1157
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1158
    void checkGroupOptionPackageOrdering() {
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1159
        checkOutput("overview-summary.html", true,
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1160
                "<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
  1161
                + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1162
                + "<a href=\"javascript:showGroups(1);\">Z Group</a></span><span class=\"tabEnd\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1163
                + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1164
                + "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
  1165
                "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
  1166
    }
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1167
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1168
    void checkGroupOptionSingleModule() {
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1169
        checkOutput("overview-summary.html", true,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1170
                "<div class=\"contentContainer\">\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1171
                + "<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
  1172
                + "<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
  1173
        checkOutput("overview-summary.html", false,
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47300
diff changeset
  1174
                "<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
  1175
                + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
f5f796453339 8178043: Support grouping modules in unified javadoc
bpatel
parents: 44879
diff changeset
  1176
    }
45771
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1177
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1178
    void checkModuleName(boolean found) {
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1179
        checkOutput("test.moduleFullName-summary.html", found,
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1180
                "<div class=\"header\">\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1181
                + "<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
  1182
                + "</div>");
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1183
        checkOutput("index-all.html", found,
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1184
                "<h2 class=\"title\">T</h2>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1185
                + "<dl>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1186
                + "<dt><a href=\"test.moduleFullName-summary.html\">test.moduleFullName</a> - module test.moduleFullName</dt>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1187
                + "<dd>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1188
                + "<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
  1189
                + "</dd>");
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1190
        checkOutput("module-overview-frame.html", found,
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1191
                "<h2 title=\"Modules\">Modules</h2>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1192
                + "<ul title=\"Modules\">\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1193
                + "<li><a href=\"moduleB-frame.html\" target=\"packageListFrame\" onclick=\"updateModuleFrame('moduleB-type-frame.html','moduleB-summary.html');\">moduleB</a></li>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1194
                + "<li><a href=\"test.moduleFullName-frame.html\" target=\"packageListFrame\" onclick=\"updateModuleFrame('test.moduleFullName-type-frame.html','test.moduleFullName-summary.html');\">test.moduleFullName</a></li>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1195
                + "</ul>");
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1196
        checkOutput("test.moduleFullName-summary.html", !found,
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1197
                "<div class=\"header\">\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1198
                + "<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
  1199
                + "</div>");
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1200
        checkOutput("index-all.html", !found,
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1201
                "<dl>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1202
                + "<dt><a href=\"test.moduleFullName-summary.html\">moduleFullName</a> - module moduleFullName</dt>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1203
                + "<dd>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1204
                + "<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
  1205
                + "</dd>\n"
e447c20c3ff9 8182736: javadoc generates bad names and broken module graph links
jjg
parents: 45157
diff changeset
  1206
                + "</dl>");
47300
a905ce398074 8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents: 47299
diff changeset
  1207
    }
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
  1208
}