author | bpatel |
Fri, 19 Aug 2016 12:54:02 -0700 | |
changeset 40511 | 1b3c502e0bdc |
parent 40508 | 74ef30d16fb9 |
child 40599 | be40838eb215 |
permissions | -rw-r--r-- |
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 |
40511 | 26 |
* @bug 8154119 8154262 8156077 8157987 8154261 8154817 8135291 8155995 |
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 | 58 |
checkModulesInSearch(true); |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
59 |
} |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
60 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
61 |
/** |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
62 |
* Test generated module pages for HTML 5. |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
63 |
*/ |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
64 |
@Test |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
65 |
void testHtml5() { |
37943
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
66 |
javadoc("-d", "out-html5", "-html5", "-use", |
40308
274367a99f98
8136930: Simplify use of module-system options by custom launchers
jjg
parents:
40229
diff
changeset
|
67 |
"--module-source-path", testSrc, |
274367a99f98
8136930: Simplify use of module-system options by custom launchers
jjg
parents:
40229
diff
changeset
|
68 |
"--add-modules", "module1,module2", |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
69 |
"testpkgmdl1", "testpkgmdl2"); |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
70 |
checkExit(Exit.OK); |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
71 |
checkHtml5Description(true); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
72 |
checkHtml5NoDescription(false); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
73 |
checkHtml5OverviewSummaryModules(); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
74 |
checkModuleLink(); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
75 |
checkModuleClickThroughLinks(); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
76 |
checkModuleClickThrough(true); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
77 |
checkModuleFilesAndLinks(true); |
40511 | 78 |
checkModulesInSearch(true); |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
79 |
} |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
80 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
81 |
/** |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
82 |
* 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
|
83 |
*/ |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
84 |
@Test |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
85 |
void testHtml4NoComment() { |
37943
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
86 |
javadoc("-d", "out-nocomment", "-nocomment", "-use", |
40308
274367a99f98
8136930: Simplify use of module-system options by custom launchers
jjg
parents:
40229
diff
changeset
|
87 |
"--module-source-path", testSrc, |
274367a99f98
8136930: Simplify use of module-system options by custom launchers
jjg
parents:
40229
diff
changeset
|
88 |
"--add-modules", "module1,module2", |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
89 |
"testpkgmdl1", "testpkgmdl2"); |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
90 |
checkExit(Exit.OK); |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
91 |
checkDescription(false); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
92 |
checkNoDescription(true); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
93 |
checkModuleLink(); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
94 |
checkModuleFilesAndLinks(true); |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
95 |
} |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
96 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
97 |
/** |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
98 |
* 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
|
99 |
*/ |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
100 |
@Test |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
101 |
void testHtml5NoComment() { |
37943
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
102 |
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
|
103 |
"--module-source-path", testSrc, |
274367a99f98
8136930: Simplify use of module-system options by custom launchers
jjg
parents:
40229
diff
changeset
|
104 |
"--add-modules", "module1,module2", |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
105 |
"testpkgmdl1", "testpkgmdl2"); |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
106 |
checkExit(Exit.OK); |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
107 |
checkHtml5Description(false); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
108 |
checkHtml5NoDescription(true); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
109 |
checkModuleLink(); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
110 |
checkModuleFilesAndLinks(true); |
37943
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
111 |
} |
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
112 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
113 |
/** |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
114 |
* 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
|
115 |
*/ |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
116 |
@Test |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
117 |
void testHtml4UnnamedModule() { |
37943
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
118 |
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
|
119 |
"-sourcepath", testSrc, |
39586
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
120 |
"testpkgnomodule", "testpkgnomodule1"); |
37943
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
121 |
checkExit(Exit.OK); |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
122 |
checkOverviewSummaryPackages(); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
123 |
checkModuleClickThrough(false); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
124 |
checkModuleFilesAndLinks(false); |
40511 | 125 |
checkModulesInSearch(false); |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
126 |
} |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
127 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
128 |
/** |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
129 |
* 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
|
130 |
*/ |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
131 |
@Test |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
132 |
void testHtml5UnnamedModule() { |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
133 |
javadoc("-d", "out-html5-nomodule", "-html5", "-use", |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
134 |
"-sourcepath", testSrc, |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
135 |
"testpkgnomodule", "testpkgnomodule1"); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
136 |
checkExit(Exit.OK); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
137 |
checkHtml5OverviewSummaryPackages(); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
138 |
checkModuleFilesAndLinks(false); |
40511 | 139 |
checkModulesInSearch(false); |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
140 |
} |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
141 |
|
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
142 |
/** |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
143 |
* Test generated module pages with javadoc tags. |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
144 |
*/ |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
145 |
@Test |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
146 |
void testJDTagsInModules() { |
38911
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
147 |
javadoc("-d", "out-mdltags", "-author", "-version", |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
148 |
"-tag", "regular:a:Regular Tag:", |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
149 |
"-tag", "moduletag:s:Module Tag:", |
40308
274367a99f98
8136930: Simplify use of module-system options by custom launchers
jjg
parents:
40229
diff
changeset
|
150 |
"--module-source-path", testSrc, |
274367a99f98
8136930: Simplify use of module-system options by custom launchers
jjg
parents:
40229
diff
changeset
|
151 |
"--add-modules", "moduletags,module2", |
38911
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
152 |
"testpkgmdltags", "testpkgmdl2"); |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
153 |
checkExit(Exit.OK); |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
154 |
checkModuleTags(); |
38911
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
155 |
} |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
156 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
157 |
/** |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
158 |
* Test generated module summary page. |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
159 |
*/ |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
160 |
@Test |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
161 |
void testModuleSummary() { |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
162 |
javadoc("-d", "out-moduleSummary", "-use", |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
163 |
"-modulesourcepath", testSrc, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
164 |
"-addmods", "module1,module2", |
40508
74ef30d16fb9
8159305: Enhance the javadoc tool to support module related options
ksrini
parents:
40503
diff
changeset
|
165 |
"testpkgmdl1", "testpkgmdl2", "module2/testpkg2mdl2"); |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
166 |
checkExit(Exit.OK); |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
167 |
checkModuleSummary(); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
168 |
checkNegatedModuleSummary(); |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
169 |
} |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
170 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
171 |
/** |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
172 |
* Test generated module pages and pages with link to modules. |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
173 |
*/ |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
174 |
@Test |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
175 |
void testModuleFilesAndLinks() { |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
176 |
javadoc("-d", "out-modulelinks", |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
177 |
"-modulesourcepath", testSrc, |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
178 |
"-addmods", "module1", |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
179 |
"testpkgmdl1"); |
39586
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
180 |
checkExit(Exit.OK); |
40508
74ef30d16fb9
8159305: Enhance the javadoc tool to support module related options
ksrini
parents:
40503
diff
changeset
|
181 |
checkModuleFilesAndLinks(true); |
39586
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
182 |
} |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
183 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
184 |
void checkDescription(boolean found) { |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
185 |
checkOutput("module1-summary.html", found, |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
186 |
"<!-- ============ MODULE DESCRIPTION =========== -->\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
187 |
+ "<a name=\"module.description\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
188 |
+ "<!-- -->\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
189 |
+ "</a>\n" |
40511 | 190 |
+ "<div class=\"block\">This is a test description for the module1 module. Search " |
191 |
+ "phrase <a id=\"searchphrase\">search phrase</a>.</div>"); |
|
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
192 |
checkOutput("module2-summary.html", found, |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
193 |
"<!-- ============ MODULE DESCRIPTION =========== -->\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
194 |
+ "<a name=\"module.description\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
195 |
+ "<!-- -->\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
196 |
+ "</a>\n" |
40511 | 197 |
+ "<div class=\"block\">This is a test description for the module2 module. Search " |
198 |
+ "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
|
199 |
} |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
200 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
201 |
void checkNoDescription(boolean found) { |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
202 |
checkOutput("module1-summary.html", found, |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
203 |
"<div class=\"contentContainer\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
204 |
+ "<ul class=\"blockList\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
205 |
+ "<li class=\"blockList\">\n" |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
206 |
+ "<ul class=\"blockList\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
207 |
+ "<li class=\"blockList\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
208 |
+ "<!-- ============ MODULES SUMMARY =========== -->"); |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
209 |
checkOutput("module2-summary.html", found, |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
210 |
"<div class=\"contentContainer\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
211 |
+ "<ul class=\"blockList\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
212 |
+ "<li class=\"blockList\">\n" |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
213 |
+ "<ul class=\"blockList\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
214 |
+ "<li class=\"blockList\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
215 |
+ "<!-- ============ MODULES SUMMARY =========== -->"); |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
216 |
} |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
217 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
218 |
void checkHtml5Description(boolean found) { |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
219 |
checkOutput("module1-summary.html", found, |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
220 |
"<section role=\"region\">\n" |
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 id=\"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 | 225 |
+ "<div class=\"block\">This is a test description for the module1 module. Search " |
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 |
"<section role=\"region\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
229 |
+ "<!-- ============ MODULE DESCRIPTION =========== -->\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
230 |
+ "<a id=\"module.description\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
231 |
+ "<!-- -->\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
232 |
+ "</a>\n" |
40511 | 233 |
+ "<div class=\"block\">This is a test description for the module2 module. Search " |
234 |
+ "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
|
235 |
} |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
236 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
237 |
void checkHtml5NoDescription(boolean found) { |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
238 |
checkOutput("module1-summary.html", found, |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
239 |
"<div class=\"contentContainer\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
240 |
+ "<ul class=\"blockList\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
241 |
+ "<li class=\"blockList\">\n" |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
242 |
+ "<ul class=\"blockList\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
243 |
+ "<li class=\"blockList\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
244 |
+ "<!-- ============ MODULES SUMMARY =========== -->"); |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
245 |
checkOutput("module2-summary.html", found, |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
246 |
"<div class=\"contentContainer\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
247 |
+ "<ul class=\"blockList\">\n" |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
248 |
+ "<li class=\"blockList\">\n" |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
249 |
+ "<ul class=\"blockList\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
250 |
+ "<li class=\"blockList\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
251 |
+ "<!-- ============ MODULES SUMMARY =========== -->"); |
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
diff
changeset
|
252 |
} |
37943
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
253 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
254 |
void checkModuleLink() { |
37943
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
255 |
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
|
256 |
"<li>Module</li>"); |
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
257 |
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
|
258 |
"<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
|
259 |
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
|
260 |
"<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
|
261 |
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
|
262 |
"<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
|
263 |
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
|
264 |
"<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
|
265 |
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
|
266 |
"<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
|
267 |
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
|
268 |
"<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
|
269 |
} |
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
270 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
271 |
void checkNoModuleLink() { |
37943
2efb75c09230
8154262: Navigation bar in javadoc generated pages needs to be updated to display module information
bpatel
parents:
37747
diff
changeset
|
272 |
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
|
273 |
"<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
|
274 |
+ "<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
|
275 |
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
|
276 |
"<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
|
277 |
+ "<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
|
278 |
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
|
279 |
"<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
|
280 |
+ "<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
|
281 |
} |
38911
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
282 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
283 |
void checkModuleTags() { |
38911
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
284 |
checkOutput("moduletags-summary.html", true, |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
285 |
"Type Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in " |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
286 |
+ "testpkgmdltags\"><code>TestClassInModuleTags</code></a>."); |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
287 |
checkOutput("moduletags-summary.html", true, |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
288 |
"Member Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html#" |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
289 |
+ "testMethod-java.lang.String-\"><code>testMethod(String)</code></a>."); |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
290 |
checkOutput("moduletags-summary.html", true, |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
291 |
"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
|
292 |
checkOutput("moduletags-summary.html", true, |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
293 |
"<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n" |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
294 |
+ "<dd>JDK 9</dd>"); |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
295 |
checkOutput("moduletags-summary.html", true, |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
296 |
"<dt><span class=\"seeLabel\">See Also:</span></dt>\n" |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
297 |
+ "<dd>\"Test see tag\", \n" |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
298 |
+ "<a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in testpkgmdltags\"><code>" |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
299 |
+ "TestClassInModuleTags</code></a></dd>"); |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
300 |
checkOutput("moduletags-summary.html", true, |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
301 |
"<dt><span class=\"simpleTagLabel\">Regular Tag:</span></dt>\n" |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
302 |
+ "<dd>Just a regular simple tag.</dd>"); |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
303 |
checkOutput("moduletags-summary.html", true, |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
304 |
"<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n" |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
305 |
+ "<dd>Just a simple module tag.</dd>"); |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
306 |
checkOutput("moduletags-summary.html", true, |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
307 |
"<dt><span class=\"simpleTagLabel\">Version:</span></dt>\n" |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
308 |
+ "<dd>1.0</dd>"); |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
309 |
checkOutput("moduletags-summary.html", true, |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
310 |
"<dt><span class=\"simpleTagLabel\">Author:</span></dt>\n" |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
311 |
+ "<dd>Bhavesh Patel</dd>"); |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
312 |
checkOutput("testpkgmdltags/TestClassInModuleTags.html", false, |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
313 |
"<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n" |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
314 |
+ "<dd>Just a simple module tag.</dd>"); |
48a00b5ee366
8156077: Support javadoc tags in module documentation
bpatel
parents:
37943
diff
changeset
|
315 |
} |
39586
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
316 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
317 |
void checkOverviewSummaryModules() { |
39586
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
318 |
checkOutput("overview-summary.html", true, |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
319 |
"<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
|
320 |
+ "<caption><span>Modules</span><span class=\"tabEnd\"> </span></caption>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
321 |
+ "<tr>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
322 |
+ "<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
|
323 |
+ "<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
|
324 |
+ "</tr>"); |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
325 |
checkOutput("overview-summary.html", false, |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
326 |
"<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
|
327 |
+ "<caption><span>Packages</span><span class=\"tabEnd\"> </span></caption>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
328 |
+ "<tr>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
329 |
+ "<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
|
330 |
+ "<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
|
331 |
+ "</tr>"); |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
332 |
} |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
333 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
334 |
void checkOverviewSummaryPackages() { |
39586
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
335 |
checkOutput("overview-summary.html", false, |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
336 |
"<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
|
337 |
+ "<caption><span>Modules</span><span class=\"tabEnd\"> </span></caption>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
338 |
+ "<tr>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
339 |
+ "<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
|
340 |
+ "<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
|
341 |
+ "</tr>"); |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
342 |
checkOutput("overview-summary.html", true, |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
343 |
"<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
|
344 |
+ "<caption><span>Packages</span><span class=\"tabEnd\"> </span></caption>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
345 |
+ "<tr>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
346 |
+ "<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
|
347 |
+ "<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
|
348 |
+ "</tr>"); |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
349 |
} |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
350 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
351 |
void checkHtml5OverviewSummaryModules() { |
39586
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
352 |
checkOutput("overview-summary.html", true, |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
353 |
"<table class=\"overviewSummary\">\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
354 |
+ "<caption><span>Modules</span><span class=\"tabEnd\"> </span></caption>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
355 |
+ "<tr>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
356 |
+ "<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
|
357 |
+ "<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
|
358 |
+ "</tr>"); |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
359 |
checkOutput("overview-summary.html", false, |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
360 |
"<table class=\"overviewSummary\">\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
361 |
+ "<caption><span>Packages</span><span class=\"tabEnd\"> </span></caption>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
362 |
+ "<tr>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
363 |
+ "<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
|
364 |
+ "<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
|
365 |
+ "</tr>"); |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
366 |
} |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
367 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
368 |
void checkHtml5OverviewSummaryPackages() { |
39586
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
369 |
checkOutput("overview-summary.html", false, |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
370 |
"<table class=\"overviewSummary\">\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
371 |
+ "<caption><span>Modules</span><span class=\"tabEnd\"> </span></caption>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
372 |
+ "<tr>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
373 |
+ "<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
|
374 |
+ "<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
|
375 |
+ "</tr>"); |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
376 |
checkOutput("overview-summary.html", true, |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
377 |
"<table class=\"overviewSummary\">\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
378 |
+ "<caption><span>Packages</span><span class=\"tabEnd\"> </span></caption>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
379 |
+ "<tr>\n" |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
380 |
+ "<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
|
381 |
+ "<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
|
382 |
+ "</tr>"); |
e35b6ab55e00
8157987: overview-summary.html generated by javadoc should include module information
bpatel
parents:
38911
diff
changeset
|
383 |
} |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
384 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
385 |
void checkModuleSummary() { |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
386 |
checkOutput("module1-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
387 |
"<ul class=\"subNavList\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
388 |
+ "<li>Module: </li>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
389 |
+ "<li><a href=\"#module.description\">Description</a> | <a " |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
390 |
+ "href=\"#modules.summary\">Modules</a> | <a href=\"#packages.summary\">" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
391 |
+ "Packages</a> | Services</li>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
392 |
+ "</ul>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
393 |
checkOutput("module1-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
394 |
"<!-- ============ MODULES SUMMARY =========== -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
395 |
+ "<a name=\"modules.summary\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
396 |
+ "<!-- -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
397 |
+ "</a>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
398 |
checkOutput("module1-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
399 |
"<tr class=\"altColor\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
400 |
+ "<td class=\"colFirst\"><a href=\"testpkgmdl1/package-summary.html\">testpkgmdl1</a></td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
401 |
+ "<td class=\"colSecond\">All Modules</td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
402 |
+ "<td class=\"colLast\"> </td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
403 |
+ "</tr>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
404 |
checkOutput("module1-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
405 |
"<!-- ============ PACKAGES SUMMARY =========== -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
406 |
+ "<a name=\"packages.summary\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
407 |
+ "<!-- -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
408 |
+ "</a>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
409 |
checkOutput("module1-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
410 |
"<tr class=\"rowColor\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
411 |
+ "<td class=\"colFirst\"><a href=\"module2-summary.html\">module2</a></td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
412 |
+ "<td class=\"colLast\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
413 |
+ "<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
|
414 |
+ "</td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
415 |
+ "</tr>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
416 |
checkOutput("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
417 |
"<li><a href=\"#module.description\">Description</a> | <a " |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
418 |
+ "href=\"#modules.summary\">Modules</a> | <a href=\"#packages.summary\">" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
419 |
+ "Packages</a> | <a href=\"#services.summary\">Services</a></li>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
420 |
checkOutput("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
421 |
"<!-- ============ MODULES SUMMARY =========== -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
422 |
+ "<a name=\"modules.summary\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
423 |
+ "<!-- -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
424 |
+ "</a>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
425 |
checkOutput("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
426 |
"<tr class=\"rowColor\">\n" |
40508
74ef30d16fb9
8159305: Enhance the javadoc tool to support module related options
ksrini
parents:
40503
diff
changeset
|
427 |
+ "<td class=\"colFirst\"><a href=\"testpkg2mdl2/package-summary.html\">" |
74ef30d16fb9
8159305: Enhance the javadoc tool to support module related options
ksrini
parents:
40503
diff
changeset
|
428 |
+ "testpkg2mdl2</a></td>\n" |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
429 |
+ "<td class=\"colSecond\">module1</td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
430 |
+ "<td class=\"colLast\"> </td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
431 |
+ "</tr>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
432 |
checkOutput("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
433 |
"<!-- ============ PACKAGES SUMMARY =========== -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
434 |
+ "<a name=\"packages.summary\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
435 |
+ "<!-- -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
436 |
+ "</a>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
437 |
checkOutput("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
438 |
"<tr class=\"altColor\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
439 |
+ "<td class=\"colFirst\"><a href=\"java.base-summary.html\">java.base</a></td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
440 |
+ "<td class=\"colLast\"> </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("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
443 |
"<!-- ============ SERVICES SUMMARY =========== -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
444 |
+ "<a name=\"services.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("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
448 |
"<tr class=\"altColor\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
449 |
+ "<td class=\"colFirst\"><a href=\"testpkgmdl2/TestClassInModule2.html\" " |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
450 |
+ "title=\"class in testpkgmdl2\">TestClassInModule2</a></td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
451 |
+ "<td class=\"colLast\"> </td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
452 |
+ "</tr>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
453 |
checkOutput("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
454 |
"<tr class=\"altColor\">\n" |
40508
74ef30d16fb9
8159305: Enhance the javadoc tool to support module related options
ksrini
parents:
40503
diff
changeset
|
455 |
+ "<td class=\"colFirst\"><a href=\"testpkg2mdl2/TestInterfaceInModule2.html\" " |
74ef30d16fb9
8159305: Enhance the javadoc tool to support module related options
ksrini
parents:
40503
diff
changeset
|
456 |
+ "title=\"interface in testpkg2mdl2\">TestInterfaceInModule2</a><br>" |
74ef30d16fb9
8159305: Enhance the javadoc tool to support module related options
ksrini
parents:
40503
diff
changeset
|
457 |
+ "(<span class=\"implementationLabel\">Implementation:</span> " |
74ef30d16fb9
8159305: Enhance the javadoc tool to support module related options
ksrini
parents:
40503
diff
changeset
|
458 |
+ "<a href=\"testpkgmdl2/TestClassInModule2.html\" title=\"class in testpkgmdl2\">" |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
459 |
+ "TestClassInModule2</a>)</td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
460 |
+ "<td class=\"colLast\"> </td>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
461 |
+ "</tr"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
462 |
checkOutput("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
463 |
"<caption><span>Exported Packages</span><span class=\"tabEnd\"> </span></caption>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
464 |
+ "<tr>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
465 |
+ "<th class=\"colFirst\" scope=\"col\">Package</th>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
466 |
+ "<th scope=\"col\">Module</th>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
467 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
468 |
+ "</tr>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
469 |
checkOutput("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
470 |
"<caption><span>Requires</span><span class=\"tabEnd\"> </span></caption>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
471 |
+ "<tr>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
472 |
+ "<th class=\"colFirst\" scope=\"col\">Module</th>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
473 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
474 |
+ "</tr>"); |
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 |
"<caption><span>Uses</span><span class=\"tabEnd\"> </span></caption>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
477 |
+ "<tr>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
478 |
+ "<th class=\"colFirst\" scope=\"col\">Type</th>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
479 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
480 |
+ "</tr>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
481 |
checkOutput("module2-summary.html", true, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
482 |
"<caption><span>Provides</span><span class=\"tabEnd\"> </span></caption>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
483 |
+ "<tr>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
484 |
+ "<th class=\"colFirst\" scope=\"col\">Type</th>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
485 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
486 |
+ "</tr>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
487 |
} |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
488 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
489 |
void checkNegatedModuleSummary() { |
39670
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
490 |
checkOutput("module1-summary.html", false, |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
491 |
"<!-- ============ SERVICES SUMMARY =========== -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
492 |
+ "<a name=\"services.summary\">\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
493 |
+ "<!-- -->\n" |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
494 |
+ "</a>"); |
9d1eafbf29c6
8154261: Module summary page should display directives for the module
bpatel
parents:
39586
diff
changeset
|
495 |
} |
40229
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
496 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
497 |
void checkModuleClickThroughLinks() { |
40229
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
498 |
checkOutput("module-overview-frame.html", true, |
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
499 |
"<li><a href=\"module1-frame.html\" target=\"packageListFrame\" " |
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
500 |
+ "onclick=\"updateModuleFrame('module1-type-frame.html','module1-summary.html');" |
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
501 |
+ "\">module1</a></li>"); |
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
502 |
checkOutput("module-overview-frame.html", true, |
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
503 |
"<li><a href=\"module2-frame.html\" target=\"packageListFrame\" " |
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
504 |
+ "onclick=\"updateModuleFrame('module2-type-frame.html','module2-summary.html');" |
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
505 |
+ "\">module2</a></li>"); |
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
506 |
checkOutput("script.js", true, |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
507 |
"function updateModuleFrame(pFrame, cFrame)\n" |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
508 |
+ "{\n" |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
509 |
+ " top.packageFrame.location = pFrame;\n" |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
510 |
+ " top.classFrame.location = cFrame;\n" |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
511 |
+ "}"); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
512 |
} |
40229
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
513 |
|
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
514 |
void checkModuleClickThrough(boolean found) { |
40229
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
515 |
checkFiles(found, |
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
516 |
"module1-type-frame.html", |
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
517 |
"module2-type-frame.html"); |
40503
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
518 |
} |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
519 |
|
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
520 |
void checkModuleFilesAndLinks(boolean found) { |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
521 |
checkOutput("testpkgmdl1/package-summary.html", found, |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
522 |
"<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
|
523 |
checkOutput("testpkgmdl1/package-summary.html", found, |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
524 |
"<div class=\"subTitle\"><span class=\"moduleLabelInClass\">Module</span> " |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
525 |
+ "<a href=\"../module1-summary.html\">module1</a></div>"); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
526 |
checkOutput("testpkgmdl1/TestClassInModule1.html", found, |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
527 |
"<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
|
528 |
checkOutput("testpkgmdl1/TestClassInModule1.html", found, |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
529 |
"<div class=\"subTitle\"><span class=\"moduleLabelInClass\">Module</span> " |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
530 |
+ "<a href=\"../module1-summary.html\">module1</a></div>"); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
531 |
checkFiles(found, |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
532 |
"module1-frame.html", |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
533 |
"module1-summary.html", |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
534 |
"module-overview-frame.html"); |
cb34fd6e8071
8135291: [javadoc] broken link in Package com.sun.tools.jconsole
bpatel
parents:
40308
diff
changeset
|
535 |
} |
40511 | 536 |
|
537 |
void checkModulesInSearch(boolean found) { |
|
538 |
checkOutput("index-all.html", found, |
|
539 |
"<dl>\n" |
|
540 |
+ "<dt><a href=\"module1-summary.html\">module1</a> - module module1</dt>\n" |
|
541 |
+ "<dd>\n" |
|
542 |
+ "<div class=\"block\">This is a test description for the module1 module.</div>\n" |
|
543 |
+ "</dd>\n" |
|
544 |
+ "<dt><a href=\"module2-summary.html\">module2</a> - module module2</dt>\n" |
|
545 |
+ "<dd>\n" |
|
546 |
+ "<div class=\"block\">This is a test description for the module2 module.</div>\n" |
|
547 |
+ "</dd>\n" |
|
548 |
+ "</dl>"); |
|
549 |
checkOutput("index-all.html", found, |
|
550 |
"<dl>\n" |
|
551 |
+ "<dt><span class=\"searchTagLink\"><a href=\"module1-summary.html#searchphrase\">" |
|
552 |
+ "search phrase</a></span> - Search tag in module1</dt>\n" |
|
553 |
+ "<dd>with description</dd>\n" |
|
554 |
+ "<dt><span class=\"searchTagLink\"><a href=\"module2-summary.html#search_word\">" |
|
555 |
+ "search_word</a></span> - Search tag in module2</dt>\n" |
|
556 |
+ "<dd> </dd>\n" |
|
557 |
+ "</dl>"); |
|
40229
09f4478d07e5
8154817: Fix the click-through navigation for modules
bpatel
parents:
39670
diff
changeset
|
558 |
} |
40511 | 559 |
} |