langtools/test/jdk/javadoc/doclet/testModules/TestModules.java
author bpatel
Thu, 08 Dec 2016 12:46:59 -0800
changeset 42494 8c5efe520e34
parent 42407 f3702cff2933
child 42822 a84956e7ee4d
child 42816 3638773ff1b0
permissions -rw-r--r--
8168688: javadoc top left frame should display all modules while in module mode Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
     1
/*
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
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
    26
 * @bug 8154119 8154262 8156077 8157987 8154261 8154817 8135291 8155995 8162363 8168766 8168688
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,
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    48
                "--add-modules", "module1,module2",
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    49
                "testpkgmdl1", "testpkgmdl2");
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,
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    69
                "--add-modules", "module1,module2",
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    70
                "testpkgmdl1", "testpkgmdl2");
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,
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
    90
                "--add-modules", "module1,module2",
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
    91
                "testpkgmdl1", "testpkgmdl2");
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,
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
   107
                "--add-modules", "module1,module2",
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   108
                "testpkgmdl1", "testpkgmdl2");
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,
274367a99f98 8136930: Simplify use of module-system options by custom launchers
jjg
parents: 40229
diff changeset
   157
                "--add-modules", "moduletags,module2",
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   158
                "testpkgmdltags", "testpkgmdl2");
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,
be40838eb215 8164887: update tests to remove use of old-style options
jjg
parents: 40511
diff changeset
   170
                "--add-modules", "module1,module2",
40508
74ef30d16fb9 8159305: Enhance the javadoc tool to support module related options
ksrini
parents: 40503
diff changeset
   171
                "testpkgmdl1", "testpkgmdl2", "module2/testpkg2mdl2");
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,
be40838eb215 8164887: update tests to remove use of old-style options
jjg
parents: 40511
diff changeset
   184
                "--add-modules", "module1",
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   185
                "testpkgmdl1");
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,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   200
                "--module", "module1,module2,moduletags",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   201
                "testpkgmdl1", "testpkgmdl2", "testpkgmdltags");
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,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   213
                "--module", "module1,module2",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   214
                "testpkgmdl1", "testpkgmdl2");
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
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   219
    void checkDescription(boolean found) {
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   220
        checkOutput("module1-summary.html", found,
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   221
                "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   222
                + "<a name=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   223
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   224
                + "</a>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   225
                + "<div class=\"block\">This is a test description for the module1 module. Search "
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   226
                + "phrase <a id=\"searchphrase\">search phrase</a>.</div>");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   227
        checkOutput("module2-summary.html", found,
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   228
                "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   229
                + "<a name=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   230
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   231
                + "</a>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   232
                + "<div class=\"block\">This is a test description for the module2 module. Search "
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   233
                + "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
   234
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   235
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   236
    void checkNoDescription(boolean found) {
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   237
        checkOutput("module1-summary.html", found,
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   238
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   239
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   240
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   241
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   242
                + "<li class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   243
                + "<!-- ============ MODULES SUMMARY =========== -->");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   244
        checkOutput("module2-summary.html", found,
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   245
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   246
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   247
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   248
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   249
                + "<li class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   250
                + "<!-- ============ MODULES SUMMARY =========== -->");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   251
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   252
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   253
    void checkHtml5Description(boolean found) {
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   254
        checkOutput("module1-summary.html", found,
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   255
                "<section role=\"region\">\n"
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   256
                + "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   257
                + "<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
   258
                + "</div>\n"
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   259
                + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   260
                + "<a id=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   261
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   262
                + "</a>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   263
                + "<div class=\"block\">This is a test description for the module1 module. Search "
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   264
                + "phrase <a id=\"searchphrase\">search phrase</a>.</div>");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   265
        checkOutput("module2-summary.html", found,
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   266
                "<section role=\"region\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   267
                + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   268
                + "<a id=\"module.description\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   269
                + "<!--   -->\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   270
                + "</a>\n"
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   271
                + "<div class=\"block\">This is a test description for the module2 module. Search "
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   272
                + "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
   273
    }
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   274
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   275
    void checkHtml5NoDescription(boolean found) {
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   276
        checkOutput("module1-summary.html", found,
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   277
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   278
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   279
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   280
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   281
                + "<li class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   282
                + "<!-- ============ MODULES SUMMARY =========== -->");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   283
        checkOutput("module2-summary.html", found,
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   284
                "<div class=\"contentContainer\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   285
                + "<ul class=\"blockList\">\n"
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   286
                + "<li class=\"blockList\">\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   287
                + "<ul class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   288
                + "<li class=\"blockList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   289
                + "<!-- ============ MODULES SUMMARY =========== -->");
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents:
diff changeset
   290
    }
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   291
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   292
    void checkModuleLink() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   293
        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
   294
                "<li>Module</li>");
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   295
        checkOutput("module1-summary.html", true,
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   296
                "<li class=\"navBarCell1Rev\">Module</li>");
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   297
        checkOutput("module2-summary.html", true,
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   298
                "<li class=\"navBarCell1Rev\">Module</li>");
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   299
        checkOutput("testpkgmdl1/class-use/TestClassInModule1.html", true,
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   300
                "<li><a href=\"../../module1-summary.html\">Module</a></li>");
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   301
        checkOutput("testpkgmdl2/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
   302
                "<li><a href=\"../module2-summary.html\">Module</a></li>");
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   303
        checkOutput("testpkgmdl2/TestClassInModule2.html", true,
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   304
                "<li><a href=\"../module2-summary.html\">Module</a></li>");
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   305
        checkOutput("testpkgmdl2/class-use/TestClassInModule2.html", true,
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   306
                "<li><a href=\"../../module2-summary.html\">Module</a></li>");
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   307
    }
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   308
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   309
    void checkNoModuleLink() {
37943
2efb75c09230 8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents: 37747
diff changeset
   310
        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
   311
                "<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
   312
                + "<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
   313
        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
   314
                "<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
   315
                + "<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
   316
        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
   317
                "<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
   318
                + "<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
   319
    }
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   320
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   321
    void checkModuleTags() {
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   322
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   323
                "Type Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in "
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   324
                + "testpkgmdltags\"><code>TestClassInModuleTags</code></a>.");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   325
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   326
                "Member Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html#"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   327
                + "testMethod-java.lang.String-\"><code>testMethod(String)</code></a>.");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   328
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   329
                "Package Link: <a href=\"testpkgmdltags/package-summary.html\"><code>testpkgmdltags</code></a>.");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   330
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   331
                "<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   332
                + "<dd>JDK 9</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   333
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   334
                "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   335
                + "<dd>\"Test see tag\", \n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   336
                + "<a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in testpkgmdltags\"><code>"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   337
                + "TestClassInModuleTags</code></a></dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   338
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   339
                "<dt><span class=\"simpleTagLabel\">Regular Tag:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   340
                + "<dd>Just a regular simple tag.</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   341
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   342
                "<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   343
                + "<dd>Just a simple module tag.</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   344
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   345
                "<dt><span class=\"simpleTagLabel\">Version:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   346
                + "<dd>1.0</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   347
        checkOutput("moduletags-summary.html", true,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   348
                "<dt><span class=\"simpleTagLabel\">Author:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   349
                + "<dd>Bhavesh Patel</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   350
        checkOutput("testpkgmdltags/TestClassInModuleTags.html", false,
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   351
                "<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n"
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   352
                + "<dd>Just a simple module tag.</dd>");
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37943
diff changeset
   353
    }
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   354
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   355
    void checkOverviewSummaryModules() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   356
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   357
                "<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
   358
                + "<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
   359
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   360
                + "<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
   361
                + "<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
   362
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   363
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   364
                "<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
   365
                + "<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
   366
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   367
                + "<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
   368
                + "<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
   369
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   370
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   371
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   372
    void checkOverviewSummaryPackages() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   373
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   374
                "<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
   375
                + "<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
   376
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   377
                + "<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
   378
                + "<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
   379
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   380
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   381
                "<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
   382
                + "<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
   383
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   384
                + "<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
   385
                + "<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
   386
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   387
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   388
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   389
    void checkHtml5OverviewSummaryModules() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   390
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   391
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   392
                + "<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
   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\">Module</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
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   398
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   399
                + "<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
   400
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   401
                + "<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
   402
                + "<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
   403
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   404
    }
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   405
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   406
    void checkHtml5OverviewSummaryPackages() {
39586
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   407
        checkOutput("overview-summary.html", false,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   408
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   409
                + "<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
   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\">Module</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
        checkOutput("overview-summary.html", true,
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   415
                "<table class=\"overviewSummary\">\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   416
                + "<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
   417
                + "<tr>\n"
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   418
                + "<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
   419
                + "<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
   420
                + "</tr>");
e35b6ab55e00 8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents: 38911
diff changeset
   421
    }
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   422
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   423
    void checkModuleSummary() {
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   424
        checkOutput("module1-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   425
                "<ul class=\"subNavList\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   426
                + "<li>Module:&nbsp;</li>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   427
                + "<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
   428
                + "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
   429
                + "Packages</a>&nbsp;|&nbsp;Services</li>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   430
                + "</ul>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   431
        checkOutput("module1-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   432
                "<!-- ============ MODULES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   433
                + "<a name=\"modules.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   434
                + "<!--   -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   435
                + "</a>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   436
        checkOutput("module1-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   437
                "<tr class=\"altColor\">\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 40599
diff changeset
   438
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdl1/package-summary.html\">testpkgmdl1</a></th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   439
                + "<td class=\"colSecond\">All Modules</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   440
                + "<td class=\"colLast\">&nbsp;</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   441
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   442
        checkOutput("module1-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   443
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   444
                + "<a name=\"packages.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   445
                + "<!--   -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   446
                + "</a>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   447
        checkOutput("module1-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   448
                "<tr class=\"rowColor\">\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 40599
diff changeset
   449
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"module2-summary.html\">module2</a></th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   450
                + "<td class=\"colLast\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   451
                + "<div class=\"block\">This is a test description for the module2 module.</div>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   452
                + "</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   453
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   454
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   455
                "<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
   456
                + "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
   457
                + "Packages</a>&nbsp;|&nbsp;<a href=\"#services.summary\">Services</a></li>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   458
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   459
                "<!-- ============ MODULES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   460
                + "<a name=\"modules.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   461
                + "<!--   -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   462
                + "</a>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   463
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   464
                "<tr class=\"rowColor\">\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 40599
diff changeset
   465
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkg2mdl2/package-summary.html\">"
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 40599
diff changeset
   466
                + "testpkg2mdl2</a></th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   467
                + "<td class=\"colSecond\">module1</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   468
                + "<td class=\"colLast\">&nbsp;</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   469
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   470
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   471
                "<!-- ============ PACKAGES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   472
                + "<a name=\"packages.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   473
                + "<!--   -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   474
                + "</a>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   475
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   476
                "<tr class=\"altColor\">\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 40599
diff changeset
   477
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"java.base-summary.html\">java.base</a></th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   478
                + "<td class=\"colLast\">&nbsp;</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   479
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   480
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   481
                "<!-- ============ SERVICES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   482
                + "<a name=\"services.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   483
                + "<!--   -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   484
                + "</a>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   485
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   486
                "<tr class=\"altColor\">\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 40599
diff changeset
   487
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdl2/TestClassInModule2.html\" "
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 40599
diff changeset
   488
                + "title=\"class in testpkgmdl2\">TestClassInModule2</a></th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   489
                + "<td class=\"colLast\">&nbsp;</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   490
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   491
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   492
                "<tr class=\"altColor\">\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 40599
diff changeset
   493
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkg2mdl2/TestInterfaceInModule2.html\" "
40508
74ef30d16fb9 8159305: Enhance the javadoc tool to support module related options
ksrini
parents: 40503
diff changeset
   494
                + "title=\"interface in testpkg2mdl2\">TestInterfaceInModule2</a><br>"
74ef30d16fb9 8159305: Enhance the javadoc tool to support module related options
ksrini
parents: 40503
diff changeset
   495
                + "(<span class=\"implementationLabel\">Implementation:</span>&nbsp;"
74ef30d16fb9 8159305: Enhance the javadoc tool to support module related options
ksrini
parents: 40503
diff changeset
   496
                + "<a href=\"testpkgmdl2/TestClassInModule2.html\" title=\"class in testpkgmdl2\">"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 40599
diff changeset
   497
                + "TestClassInModule2</a>)</th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   498
                + "<td class=\"colLast\">&nbsp;</td>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   499
                + "</tr");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   500
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   501
                "<caption><span>Exported Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   502
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   503
                + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
41157
b235a429089a 8162363: Tables in javadoc documentation missing row headers
bpatel
parents: 40599
diff changeset
   504
                + "<th class=\"colSecond\" scope=\"col\">Module</th>\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   505
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   506
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   507
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   508
                "<caption><span>Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   509
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   510
                + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   511
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   512
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   513
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   514
                "<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
   515
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   516
                + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   517
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   518
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   519
        checkOutput("module2-summary.html", true,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   520
                "<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
   521
                + "<tr>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   522
                + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   523
                + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   524
                + "</tr>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   525
    }
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   526
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   527
    void checkNegatedModuleSummary() {
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   528
        checkOutput("module1-summary.html", false,
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   529
                "<!-- ============ SERVICES SUMMARY =========== -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   530
                + "<a name=\"services.summary\">\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   531
                + "<!--   -->\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   532
                + "</a>");
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 39586
diff changeset
   533
    }
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   534
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   535
    void checkModuleClickThroughLinks() {
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   536
        checkOutput("module-overview-frame.html", true,
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   537
                "<li><a href=\"module1-frame.html\" target=\"packageListFrame\" "
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   538
                + "onclick=\"updateModuleFrame('module1-type-frame.html','module1-summary.html');"
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   539
                + "\">module1</a></li>");
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   540
        checkOutput("module-overview-frame.html", true,
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   541
                "<li><a href=\"module2-frame.html\" target=\"packageListFrame\" "
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   542
                + "onclick=\"updateModuleFrame('module2-type-frame.html','module2-summary.html');"
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   543
                + "\">module2</a></li>");
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   544
        checkOutput("script.js", true,
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   545
                "function updateModuleFrame(pFrame, cFrame)\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   546
                + "{\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   547
                + "    top.packageFrame.location = pFrame;\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   548
                + "    top.classFrame.location = cFrame;\n"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   549
                + "}");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   550
    }
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   551
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   552
    void checkModuleClickThrough(boolean found) {
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   553
        checkFiles(found,
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   554
                "module1-type-frame.html",
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   555
                "module2-type-frame.html");
40503
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   556
    }
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   557
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   558
    void checkModuleFilesAndLinks(boolean found) {
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   559
        checkOutput("testpkgmdl1/package-summary.html", found,
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   560
                "<li><a href=\"../module1-summary.html\">Module</a></li>");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   561
        checkOutput("testpkgmdl1/package-summary.html", found,
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   562
                "<div class=\"subTitle\"><span class=\"moduleLabelInClass\">Module</span>&nbsp;"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   563
                + "<a href=\"../module1-summary.html\">module1</a></div>");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   564
        checkOutput("testpkgmdl1/TestClassInModule1.html", found,
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   565
                "<li><a href=\"../module1-summary.html\">Module</a></li>");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   566
        checkOutput("testpkgmdl1/TestClassInModule1.html", found,
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   567
                "<div class=\"subTitle\"><span class=\"moduleLabelInClass\">Module</span>&nbsp;"
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   568
                + "<a href=\"../module1-summary.html\">module1</a></div>");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   569
        checkFiles(found,
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   570
                "module1-frame.html",
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   571
                "module1-summary.html",
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   572
                "module-overview-frame.html");
cb34fd6e8071 8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents: 40308
diff changeset
   573
    }
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   574
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   575
    void checkModulesInSearch(boolean found) {
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   576
        checkOutput("index-all.html", found,
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   577
                "<dl>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   578
                + "<dt><a href=\"module1-summary.html\">module1</a> - module module1</dt>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   579
                + "<dd>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   580
                + "<div class=\"block\">This is a test description for the module1 module.</div>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   581
                + "</dd>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   582
                + "<dt><a href=\"module2-summary.html\">module2</a> - module module2</dt>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   583
                + "<dd>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   584
                + "<div class=\"block\">This is a test description for the module2 module.</div>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   585
                + "</dd>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   586
                + "</dl>");
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   587
        checkOutput("index-all.html", found,
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   588
                "<dl>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   589
                + "<dt><span class=\"searchTagLink\"><a href=\"module1-summary.html#searchphrase\">"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   590
                + "search phrase</a></span> - Search tag in module1</dt>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   591
                + "<dd>with description</dd>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   592
                + "<dt><span class=\"searchTagLink\"><a href=\"module2-summary.html#search_word\">"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   593
                + "search_word</a></span> - Search tag in module2</dt>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   594
                + "<dd>&nbsp;</dd>\n"
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   595
                + "</dl>");
40229
09f4478d07e5 8154817: Fix the click-through navigation for modules
bpatel
parents: 39670
diff changeset
   596
}
42407
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   597
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   598
    void checkModuleDeprecation(boolean found) {
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   599
        checkOutput("module1-summary.html", found,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   600
                "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   601
                + "<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
   602
                + "</div>");
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   603
        checkOutput("deprecated-list.html", found,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   604
                "<ul>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   605
                + "<li><a href=\"#module\">Deprecated Modules</a></li>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   606
                + "</ul>",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   607
                "<tr class=\"altColor\">\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   608
                + "<th class=\"colFirst\" scope=\"row\"><a href=\"module1-summary.html\">module1</a></th>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   609
                + "<td class=\"colLast\">\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   610
                + "<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
   611
                + "</td>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   612
                + "</tr>");
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   613
        checkOutput("module2-summary.html", !found,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   614
                "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   615
                + "<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
   616
        checkOutput("moduletags-summary.html", found,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   617
                "<p>@Deprecated\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   618
                + "</p>",
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   619
                "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span></div>");
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   620
    }
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   621
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   622
    void checkModuleAnnotation() {
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   623
        checkOutput("module2-summary.html", true,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   624
                "<p><a href=\"testpkgmdl2/AnnotationType.html\" title=\"annotation in testpkgmdl2\">@AnnotationType</a>(<a href=\"testpkgmdl2/AnnotationType.html#optional--\">optional</a>=\"Module Annotation\",\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   625
                + "                <a href=\"testpkgmdl2/AnnotationType.html#required--\">required</a>=2016)\n"
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   626
                + "</p>");
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   627
        checkOutput("module2-summary.html", false,
f3702cff2933 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41157
diff changeset
   628
                "@AnnotationTypeUndocumented");
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 40508
diff changeset
   629
}
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   630
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   631
    void checkOverviewFrame(boolean found) {
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   632
        checkOutput("index.html", !found,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   633
                "<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
   634
        checkOutput("index.html", found,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   635
                "<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
   636
}
42494
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   637
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   638
    void checkNegatedOverviewFrame() {
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   639
        checkOutput("index.html", false,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   640
                "<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
   641
        checkOutput("index.html", false,
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   642
                "<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
   643
    }
8c5efe520e34 8168688: javadoc top left frame should display all modules while in module mode
bpatel
parents: 42407
diff changeset
   644
}