langtools/test/jdk/javadoc/doclet/testModules/TestModules.java
author bpatel
Fri, 16 Dec 2016 09:07:57 -0800
changeset 42831 feff6f296019
parent 42823 58864b03c7b9
child 42842 2f0b2a65b284
permissions -rw-r--r--
8160196: Module summary page should display information based on "api" or "detail" mode. 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
/*
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
     2
 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
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
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
    26
 * @bug 8154119 8154262 8156077 8157987 8154261 8154817 8135291 8155995 8162363 8168766 8168688 8162674 8160196
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    27
 * @summary Test modules support in javadoc.
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    28
 * @author bpatel
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    29
 * @library ../lib
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    30
 * @modules jdk.javadoc/jdk.javadoc.internal.tool
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    31
 * @build JavadocTester
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    32
 * @run main TestModules
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    33
 */
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    34
public class TestModules extends JavadocTester {
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 static void main(String... args) throws Exception {
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    37
        TestModules tester = new TestModules();
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    38
        tester.runTests();
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    39
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    40
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    41
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    42
     * Test generated module pages for HTML 4.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    43
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    44
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    45
    void testHtml4() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
    46
        javadoc("-d", "out", "-use",
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    47
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
    48
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
    49
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    50
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    51
        checkDescription(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    52
        checkNoDescription(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    53
        checkOverviewSummaryModules();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    54
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    55
        checkModuleClickThroughLinks();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    56
        checkModuleClickThrough(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    57
        checkModuleFilesAndLinks(true);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
    58
        checkModulesInSearch(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
    59
        checkOverviewFrame(true);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    60
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    61
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    62
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    63
     * Test generated module pages for HTML 5.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    64
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    65
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    66
    void testHtml5() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
    67
        javadoc("-d", "out-html5", "-html5", "-use",
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    68
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
    69
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
    70
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    71
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    72
        checkHtml5Description(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    73
        checkHtml5NoDescription(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    74
        checkHtml5OverviewSummaryModules();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    75
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    76
        checkModuleClickThroughLinks();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    77
        checkModuleClickThrough(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    78
        checkModuleFilesAndLinks(true);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
    79
        checkModulesInSearch(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
    80
        checkOverviewFrame(true);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    81
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    82
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    83
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    84
     * 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
    85
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    86
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    87
    void testHtml4NoComment() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
    88
        javadoc("-d", "out-nocomment", "-nocomment", "-use",
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    89
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
    90
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
    91
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    92
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    93
        checkDescription(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    94
        checkNoDescription(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    95
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
    96
        checkModuleFilesAndLinks(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
    97
        checkOverviewFrame(true);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    98
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    99
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   100
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   101
     * 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
   102
     */
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   103
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   104
    void testHtml5NoComment() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   105
        javadoc("-d", "out-html5-nocomment", "-nocomment", "-html5", "-use",
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
   106
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   107
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   108
                "testpkgmdlA", "testpkgmdlB");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   109
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   110
        checkHtml5Description(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   111
        checkHtml5NoDescription(true);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   112
        checkModuleLink();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   113
        checkModuleFilesAndLinks(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   114
        checkOverviewFrame(true);
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   115
    }
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   116
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   117
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   118
     * Test generated pages, in an unnamed module, for HTML 4.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   119
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   120
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   121
    void testHtml4UnnamedModule() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   122
        javadoc("-d", "out-nomodule", "-use",
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   123
                "-sourcepath", testSrc,
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   124
                "testpkgnomodule", "testpkgnomodule1");
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   125
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   126
        checkOverviewSummaryPackages();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   127
        checkModuleClickThrough(false);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   128
        checkModuleFilesAndLinks(false);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   129
        checkModulesInSearch(false);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   130
        checkOverviewFrame(false);
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   131
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   132
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   133
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   134
     * 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
   135
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   136
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   137
    void testHtml5UnnamedModule() {
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   138
        javadoc("-d", "out-html5-nomodule", "-html5", "-use",
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   139
                "-sourcepath", testSrc,
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   140
                "testpkgnomodule", "testpkgnomodule1");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   141
        checkExit(Exit.OK);
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   142
        checkHtml5OverviewSummaryPackages();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   143
        checkModuleFilesAndLinks(false);
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   144
        checkModulesInSearch(false);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   145
        checkOverviewFrame(false);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   146
    }
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   147
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   148
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   149
     * Test generated module pages with javadoc tags.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   150
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   151
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   152
    void testJDTagsInModules() {
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   153
        javadoc("-d", "out-mdltags", "-author", "-version",
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   154
                "-tag", "regular:a:Regular Tag:",
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   155
                "-tag", "moduletag:s:Module Tag:",
40308
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
   156
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   157
                "--module", "moduletags,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   158
                "testpkgmdltags", "testpkgmdlB");
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   159
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   160
        checkModuleTags();
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   161
    }
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   162
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   163
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   164
     * Test generated module summary page.
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   165
     */
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   166
    @Test
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   167
    void testModuleSummary() {
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   168
        javadoc("-d", "out-moduleSummary", "-use",
40599
be40838eb215 8164887: update tests to remove use of old-style options
jjg
parents: 40511
diff changeset
   169
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   170
                "--module", "moduleA,moduleB",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   171
                "testpkgmdlA", "testpkgmdlB", "moduleB/testpkg2mdlB");
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   172
        checkExit(Exit.OK);
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   173
        checkModuleSummary();
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   174
        checkNegatedModuleSummary();
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   175
    }
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   176
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   177
    /**
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   178
     * 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
   179
     */
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   180
    @Test
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   181
    void testModuleFilesAndLinks() {
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   182
        javadoc("-d", "out-modulelinks",
40599
be40838eb215 8164887: update tests to remove use of old-style options
jjg
parents: 40511
diff changeset
   183
                "--module-source-path", testSrc,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   184
                "--module", "moduleA",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   185
                "testpkgmdlA");
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   186
        checkExit(Exit.OK);
40508
74ef30d16fb9 8159305: Enhance the javadoc tool to support module related options
ksrini
parents: 40503
diff changeset
   187
        checkModuleFilesAndLinks(true);
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   188
        checkNegatedOverviewFrame();
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   189
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   190
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   191
    /**
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   192
     * Test generated module pages for a deprecated module.
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   193
     */
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   194
    @Test
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   195
    void testModuleDeprecation() {
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   196
        javadoc("-d", "out-moduledepr",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   197
                "-tag", "regular:a:Regular Tag:",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   198
                "-tag", "moduletag:s:Module Tag:",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   199
                "--module-source-path", testSrc,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   200
                "--module", "moduleA,moduleB,moduletags",
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   201
                "testpkgmdlA", "testpkgmdlB", "testpkgmdltags");
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   202
        checkExit(Exit.OK);
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   203
        checkModuleDeprecation(true);
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   204
    }
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   205
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   206
    /**
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   207
     * Test annotations on modules.
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   208
     */
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   209
    @Test
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   210
    void testModuleAnnotation() {
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   211
        javadoc("-d", "out-moduleanno",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   212
                "--module-source-path", testSrc,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   213
                "--module", "moduleA,moduleB",
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   214
                "testpkgmdlA", "testpkgmdlB");
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   215
        checkExit(Exit.OK);
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   216
        checkModuleAnnotation();
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   217
    }
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   218
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   219
    /**
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   220
     * 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
   221
     */
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   222
    @Test
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   223
    void testApiMode() {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   224
        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
   225
                "-tag", "regular:a:Regular Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   226
                "-tag", "moduletag:s:Module Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   227
                "--module-source-path", testSrc,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   228
                "--module", "moduleA,moduleB,moduleC,moduletags",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   229
                "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
   230
        checkExit(Exit.OK);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   231
        checkModuleModeCommon();
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   232
        checkModuleModeApi(true);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   233
        checkModuleModeAll(false);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   234
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   235
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   236
    /**
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   237
     * 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
   238
     */
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   239
    @Test
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   240
    void testAllMode() {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   241
        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
   242
                "-tag", "regular:a:Regular Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   243
                "-tag", "moduletag:s:Module Tag:",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   244
                "--module-source-path", testSrc,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   245
                "--module", "moduleA,moduleB,moduleC,moduletags",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   246
                "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
   247
        checkExit(Exit.OK);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   248
        checkModuleModeCommon();
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   249
        checkModuleModeApi(false);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   250
        checkModuleModeAll(true);
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   251
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   252
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   253
    void checkDescription(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   254
        checkOutput("moduleA-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   255
                "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   256
                + "<a name=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   257
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   258
                + "</a>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   259
                + "<div class=\"block\">This is a test description for the moduleA module. Search "
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   260
                + "phrase <a id=\"searchphrase\">search phrase</a>.</div>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   261
        checkOutput("moduleB-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   262
                "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   263
                + "<a name=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   264
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   265
                + "</a>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   266
                + "<div class=\"block\">This is a test description for the moduleB module. Search "
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   267
                + "word <a id=\"search_word\">search_word</a> with no description.</div>");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   268
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   269
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   270
    void checkNoDescription(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   271
        checkOutput("moduleA-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   272
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   273
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   274
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   275
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   276
                + "<li class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   277
                + "<!-- ============ MODULES SUMMARY =========== -->");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   278
        checkOutput("moduleB-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   279
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   280
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   281
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   282
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   283
                + "<li class=\"blockList\">\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   284
                + "<!-- ============ PACKAGES SUMMARY =========== -->");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   285
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   286
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   287
    void checkHtml5Description(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   288
        checkOutput("moduleA-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   289
                "<section role=\"region\">\n"
42816
3638773ff1b0 8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents: 42494
diff changeset
   290
                + "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated, for removal:"
3638773ff1b0 8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents: 42494
diff changeset
   291
                + " This API element is subject to removal in a future version. </span>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   292
                + "<div class=\"block\"><span class=\"deprecationComment\">This module is deprecated.</span></div>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   293
                + "</div>\n"
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   294
                + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   295
                + "<a id=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   296
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   297
                + "</a>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   298
                + "<div class=\"block\">This is a test description for the moduleA module. Search "
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   299
                + "phrase <a id=\"searchphrase\">search phrase</a>.</div>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   300
        checkOutput("moduleB-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   301
                "<section role=\"region\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   302
                + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   303
                + "<a id=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   304
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   305
                + "</a>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   306
                + "<div class=\"block\">This is a test description for the moduleB module. Search "
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   307
                + "word <a id=\"search_word\">search_word</a> with no description.</div>");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   308
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   309
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   310
    void checkHtml5NoDescription(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   311
        checkOutput("moduleA-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   312
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   313
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   314
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   315
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   316
                + "<li class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   317
                + "<!-- ============ MODULES SUMMARY =========== -->");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   318
        checkOutput("moduleB-summary.html", found,
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   319
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   320
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   321
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   322
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   323
                + "<li class=\"blockList\">\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   324
                + "<!-- ============ PACKAGES SUMMARY =========== -->");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   325
    }
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   326
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   327
    void checkModuleLink() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   328
        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
   329
                "<li>Module</li>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   330
        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
   331
                "<li class=\"navBarCell1Rev\">Module</li>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   332
        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
   333
                "<li class=\"navBarCell1Rev\">Module</li>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   334
        checkOutput("testpkgmdlA/class-use/TestClassInModuleA.html", true,
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   335
                "<li><a href=\"../../moduleA-summary.html\">Module</a></li>");
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   336
        checkOutput("testpkgmdlB/package-summary.html", true,
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   337
                "<li><a href=\"../moduleB-summary.html\">Module</a></li>");
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   338
        checkOutput("testpkgmdlB/TestClassInModuleB.html", true,
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   339
                "<li><a href=\"../moduleB-summary.html\">Module</a></li>");
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   340
        checkOutput("testpkgmdlB/class-use/TestClassInModuleB.html", true,
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   341
                "<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
   342
    }
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   343
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   344
    void checkNoModuleLink() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   345
        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
   346
                "<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
   347
                + "<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
   348
        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
   349
                "<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
   350
                + "<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
   351
        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
   352
                "<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
   353
                + "<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
   354
    }
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   355
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   356
    void checkModuleTags() {
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   357
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   358
                "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
   359
                + "testpkgmdltags\"><code>TestClassInModuleTags</code></a>.",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   360
                "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
   361
                + "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
   362
                "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
   363
                "<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
   364
                + "<dd>JDK 9</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   365
                "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   366
                + "<dd>\"Test see tag\", \n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   367
                + "<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
   368
                + "TestClassInModuleTags</code></a></dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   369
                "<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
   370
                + "<dd>Just a regular simple tag.</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   371
                "<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
   372
                + "<dd>Just a simple module tag.</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   373
                "<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
   374
                + "<dd>1.0</dd>",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   375
                "<dt><span class=\"simpleTagLabel\">Author:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   376
                + "<dd>Bhavesh Patel</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   377
        checkOutput("testpkgmdltags/TestClassInModuleTags.html", false,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   378
                "<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   379
                + "<dd>Just a simple module tag.</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   380
    }
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   381
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   382
    void checkOverviewSummaryModules() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   383
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   384
                "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   385
                + "<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
   386
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   387
                + "<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
   388
                + "<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
   389
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   390
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   391
                "<table class=\"overviewSummary\" summary=\"Packages table, listing packages, and an explanation\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   392
                + "<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
   393
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   394
                + "<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
   395
                + "<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
   396
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   397
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   398
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   399
    void checkOverviewSummaryPackages() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   400
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   401
                "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   402
                + "<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
   403
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   404
                + "<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
   405
                + "<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
   406
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   407
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   408
                "<table class=\"overviewSummary\" summary=\"Packages table, listing packages, and an explanation\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   409
                + "<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
   410
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   411
                + "<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
   412
                + "<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
   413
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   414
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   415
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   416
    void checkHtml5OverviewSummaryModules() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   417
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   418
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   419
                + "<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
   420
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   421
                + "<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
   422
                + "<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
   423
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   424
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   425
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   426
                + "<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
   427
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   428
                + "<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
   429
                + "<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
   430
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   431
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   432
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   433
    void checkHtml5OverviewSummaryPackages() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   434
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   435
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   436
                + "<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
   437
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   438
                + "<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
   439
                + "<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
   440
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   441
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   442
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   443
                + "<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
   444
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   445
                + "<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
   446
                + "<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
   447
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   448
    }
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   449
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   450
    void checkModuleSummary() {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   451
        checkOutput("moduleA-summary.html", true,
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   452
                "<ul class=\"subNavList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   453
                + "<li>Module:&nbsp;</li>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   454
                + "<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
   455
                + "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
   456
                + "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
   457
                + "</ul>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   458
                "<!-- ============ MODULES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   459
                + "<a name=\"modules.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   460
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   461
                + "</a>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   462
                "<tr class=\"altColor\" id=\"i0\">\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   463
                + "<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
   464
                + "<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
   465
                + "</tr>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   466
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   467
                + "<a name=\"packages.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   468
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   469
                + "</a>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   470
                "<tr class=\"altColor\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   471
                + "<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
   472
                + "<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
   473
                + "<td class=\"colLast\">\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   474
                + "<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
   475
                + "</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   476
                + "</tr>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   477
        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
   478
                "<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
   479
                + "<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
   480
                + "Services</a></li>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   481
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   482
                + "<a name=\"packages.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   483
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   484
                + "</a>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   485
                "<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
   486
                + "<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
   487
                + "<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
   488
                + "</tr>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   489
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   490
                + "<a name=\"packages.summary\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   491
                + "<!--   -->\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   492
                + "</a>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   493
                "<!-- ============ SERVICES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   494
                + "<a name=\"services.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   495
                + "<!--   -->\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   496
                + "</a>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   497
                "<tr class=\"altColor\">\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   498
                + "<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
   499
                + "<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
   500
                + "</tr>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   501
                "<tr class=\"altColor\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   502
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkg2mdlB/TestInterface2InModuleB.html\" title=\"interface in testpkg2mdlB\">TestInterface2InModuleB</a></th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   503
                + "<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
   504
                + "</tr>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   505
                "<caption><span>Opened Packages</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
   506
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   507
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   508
                + "<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
   509
                + "</tr>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   510
                "<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
   511
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   512
                + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   513
                + "<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
   514
                + "</tr>",
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   515
                "<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
   516
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   517
                + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   518
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   519
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   520
    }
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   521
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   522
    void checkNegatedModuleSummary() {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   523
        checkOutput("moduleA-summary.html", false,
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   524
                "<!-- ============ SERVICES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   525
                + "<a name=\"services.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   526
                + "<!--   -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   527
                + "</a>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   528
    }
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   529
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   530
    void checkModuleClickThroughLinks() {
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   531
        checkOutput("module-overview-frame.html", true,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   532
                "<li><a href=\"moduleA-frame.html\" target=\"packageListFrame\" "
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   533
                + "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
   534
                + "\">moduleA</a></li>",
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   535
                "<li><a href=\"moduleB-frame.html\" target=\"packageListFrame\" "
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   536
                + "onclick=\"updateModuleFrame('moduleB-type-frame.html','moduleB-summary.html');"
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   537
                + "\">moduleB</a></li>");
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   538
        checkOutput("script.js", true,
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   539
                "function updateModuleFrame(pFrame, cFrame)\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   540
                + "{\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   541
                + "    top.packageFrame.location = pFrame;\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   542
                + "    top.classFrame.location = cFrame;\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   543
                + "}");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   544
    }
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   545
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   546
    void checkModuleClickThrough(boolean found) {
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   547
        checkFiles(found,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   548
                "moduleA-type-frame.html",
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   549
                "moduleB-type-frame.html");
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   550
    }
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   551
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   552
    void checkModuleFilesAndLinks(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   553
        checkOutput("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
   554
                "<li><a href=\"../moduleA-summary.html\">Module</a></li>",
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   555
                "<div class=\"subTitle\"><span class=\"moduleLabelInClass\">Module</span>&nbsp;"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   556
                + "<a href=\"../moduleA-summary.html\">moduleA</a></div>");
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   557
        checkOutput("testpkgmdlA/TestClassInModuleA.html", found,
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   558
                "<li><a href=\"../moduleA-summary.html\">Module</a></li>",
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   559
                "<div class=\"subTitle\"><span class=\"moduleLabelInClass\">Module</span>&nbsp;"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   560
                + "<a href=\"../moduleA-summary.html\">moduleA</a></div>");
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   561
        checkFiles(found,
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   562
                "moduleA-frame.html",
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   563
                "moduleA-summary.html",
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   564
                "module-overview-frame.html");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   565
    }
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   566
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   567
    void checkModulesInSearch(boolean found) {
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   568
        checkOutput("index-all.html", found,
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   569
                "<dl>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   570
                + "<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
   571
                + "<dd>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   572
                + "<div class=\"block\">This is a test description for the moduleA module.</div>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   573
                + "</dd>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   574
                + "<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
   575
                + "<dd>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   576
                + "<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
   577
                + "</dd>\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   578
                + "</dl>",
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   579
                "<dl>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   580
                + "<dt><span class=\"searchTagLink\"><a href=\"moduleA-summary.html#searchphrase\">"
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   581
                + "search phrase</a></span> - Search tag in moduleA</dt>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   582
                + "<dd>with description</dd>\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   583
                + "<dt><span class=\"searchTagLink\"><a href=\"moduleB-summary.html#search_word\">"
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   584
                + "search_word</a></span> - Search tag in moduleB</dt>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   585
                + "<dd>&nbsp;</dd>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   586
                + "</dl>");
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   587
}
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   588
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   589
    void checkModuleModeCommon() {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   590
        checkOutput("overview-summary.html", true,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   591
                "<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
   592
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   593
                + "<div class=\"block\">This is a test description for the moduleA module.</div>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   594
                + "</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   595
                "<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
   596
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   597
                + "<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
   598
                + "</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   599
                "<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
   600
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   601
                + "<div class=\"block\">This is a test description for the moduleA module.<br>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   602
                + " 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
   603
                + " 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
   604
                + " 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
   605
                + "</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   606
        checkOutput("moduleA-summary.html", true,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   607
                "<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
   608
                + "Modules</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;Services</li>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   609
                "<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
   610
                + "<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
   611
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   612
                + "<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
   613
                + "</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   614
                "<table class=\"packagesSummary\" summary=\"Additional Exported Packages table, listing modules, and packages\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   615
                + "<caption><span>Additional Exported Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   616
                "<table class=\"packagesSummary\" summary=\"Additional Opened Packages table, listing modules, and packages\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   617
                + "<caption><span>Additional Opened Packages</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
   618
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   619
                + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   620
                + "<th class=\"colLast\" scope=\"col\">Packages</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   621
                + "</tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   622
                + "<tbody>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   623
                + "<tr class=\"altColor\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   624
                + "<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
   625
                + "<td class=\"colLast\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   626
                + "</tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   627
                + "</tbody>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   628
                + "</table>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   629
        checkOutput("moduleB-summary.html", true,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   630
                "<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
   631
                + "<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
   632
        checkOutput("moduletags-summary.html", true,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   633
                "<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
   634
                + "</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;Services</li>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   635
                "<table class=\"requiresSummary\" summary=\"Additional Modules Required 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
   636
                + "<caption><span>Additional Modules Required</span><span class=\"tabEnd\">&nbsp;</span></caption>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   637
                "<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
   638
                + "<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
   639
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   640
                + "<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
   641
                + "</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   642
                "<table class=\"packagesSummary\" summary=\"Additional Exported Packages table, listing modules, and packages\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   643
                + "<caption><span>Additional Exported Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   644
                "<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
   645
                + "<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
   646
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   647
                + "<div class=\"block\">This is a test description for the moduleA module.</div>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   648
                + "</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   649
                "<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
   650
                + "<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
   651
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   652
                + "<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
   653
                + "<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
   654
                + "<th class=\"colLast\" scope=\"col\">Description</th>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   655
                "<table class=\"requiresSummary\" summary=\"Additional Modules Required 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
   656
                + "<caption><span>Additional Modules Required</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
   657
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   658
                + "<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
   659
                + "<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
   660
                + "<th class=\"colLast\" scope=\"col\">Description</th>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   661
                "<table class=\"packagesSummary\" summary=\"Additional Opened Packages table, listing modules, and packages\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   662
                + "<caption><span>Additional Opened Packages</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
   663
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   664
                + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   665
                + "<th class=\"colLast\" scope=\"col\">Packages</th>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   666
                + "</tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   667
                + "<tbody>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   668
                + "<tr class=\"altColor\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   669
                + "<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
   670
                + "<td class=\"colLast\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   671
                + "</tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   672
                + "</tbody>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   673
                + "</table>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   674
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   675
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   676
    void checkModuleModeApi(boolean found) {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   677
        checkOutput("moduleA-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   678
                "<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
   679
                + "<td class=\"colLast\">&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   680
        checkOutput("moduleB-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   681
                "<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
   682
                + "<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
   683
                "<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
   684
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   685
                "<table class=\"packagesSummary\" summary=\"Packages table, listing packages, and an explanation\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   686
                + "<caption><span>Opened Packages</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
   687
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   688
                + "<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
   689
                + "<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
   690
                + "</tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   691
                + "<tbody>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   692
                + "<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
   693
                + "<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
   694
                + "<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
   695
                + "</tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   696
                + "</tbody>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   697
                + "</table>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   698
        checkOutput("moduletags-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   699
                "<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
   700
                + "<td class=\"colLast\">&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   701
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   702
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   703
    void checkModuleModeAll(boolean found) {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   704
        checkOutput("moduleA-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   705
                "<td class=\"colFirst\"> </td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   706
                + "<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
   707
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   708
                "<td class=\"colFirst\"> </td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   709
                + "<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
   710
                + "<td class=\"colLast\">\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   711
                + "<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
   712
                + "</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   713
                "<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
   714
                + "<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
   715
                "<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
   716
                + "<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
   717
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   718
                "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;</span></span>"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   719
                + "<span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:showPkgs(1);\">Exported Packages</a></span>"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   720
                + "<span class=\"tabEnd\">&nbsp;</span></span><span id=\"t3\" class=\"tableTab\"><span><a href=\"javascript:showPkgs(4);\">"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   721
                + "Concealed Packages</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   722
                "<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
   723
                + "<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
   724
                + "<td class=\"colLast\">&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   725
        checkOutput("moduleB-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   726
                "<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
   727
                + "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
   728
                "<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
   729
                + "<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
   730
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   731
                "<td class=\"colFirst\"> </td>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   732
                + "<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
   733
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   734
                "<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
   735
                + "<td class=\"colLast\">&nbsp;</td>",
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   736
                "<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
   737
                + "<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
   738
                + "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
   739
                "<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
   740
                + "<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
   741
                + "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
   742
                "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   743
                + "<a href=\"javascript:showPkgs(1);\">Exported Packages</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span>"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   744
                + "<a href=\"javascript:showPkgs(2);\">Opened Packages</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   745
        checkOutput("moduleC-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   746
                "<caption><span>Exported Packages</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
   747
                + "<tr>\n"
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   748
                + "<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
   749
                + "<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
   750
                + "<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
   751
                + "</tr>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   752
        checkOutput("moduletags-summary.html", found,
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   753
                "<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
   754
                + "<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
   755
                + "<td class=\"colLast\">&nbsp;</td>");
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   756
    }
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 42823
diff changeset
   757
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   758
    void checkModuleDeprecation(boolean found) {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   759
        checkOutput("moduleA-summary.html", found,
42816
3638773ff1b0 8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents: 42494
diff changeset
   760
                "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated, for removal:"
3638773ff1b0 8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents: 42494
diff changeset
   761
                + " This API element is subject to removal in a future version. </span>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   762
                + "<div class=\"block\"><span class=\"deprecationComment\">This module is deprecated.</span></div>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   763
                + "</div>");
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   764
        checkOutput("deprecated-list.html", found,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   765
                "<ul>\n"
42816
3638773ff1b0 8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents: 42494
diff changeset
   766
                + "<li><a href=\"#forRemoval\">Deprecated For Removal</a></li>\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   767
                + "<li><a href=\"#module\">Deprecated Modules</a></li>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   768
                + "</ul>",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   769
                "<tr class=\"altColor\">\n"
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   770
                + "<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
   771
                + "<td class=\"colLast\">\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   772
                + "<div class=\"block\"><span class=\"deprecationComment\">This module is deprecated.</span></div>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   773
                + "</td>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   774
                + "</tr>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   775
        checkOutput("moduleB-summary.html", !found,
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   776
                "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   777
                + "<div class=\"block\"><span class=\"deprecationComment\">This module is deprecated using just the javadoc tag.</span></div>");
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   778
        checkOutput("moduletags-summary.html", found,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   779
                "<p>@Deprecated\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   780
                + "</p>",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   781
                "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span></div>");
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   782
    }
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   783
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   784
    void checkModuleAnnotation() {
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   785
        checkOutput("moduleB-summary.html", true,
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   786
                "<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
   787
                + "                <a href=\"testpkgmdlB/AnnotationType.html#required--\">required</a>=2016)\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   788
                + "</p>");
42822
a84956e7ee4d 8170987: Module system implementation refresh (12/2016)
alanb
parents: 42494
diff changeset
   789
        checkOutput("moduleB-summary.html", false,
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   790
                "@AnnotationTypeUndocumented");
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   791
}
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   792
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   793
    void checkOverviewFrame(boolean found) {
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   794
        checkOutput("index.html", !found,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   795
                "<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
   796
        checkOutput("index.html", found,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   797
                "<iframe src=\"module-overview-frame.html\" name=\"packageListFrame\" title=\"All Modules\"></iframe>");
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   798
}
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   799
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   800
    void checkNegatedOverviewFrame() {
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   801
        checkOutput("index.html", false,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   802
                "<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
   803
        checkOutput("index.html", false,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   804
                "<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
   805
    }
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   806
}