< prev index next >
test/langtools/jdk/javadoc/doclet/testModules/TestModules.java
Print this page
@@ -460,18 +460,18 @@
"<!-- ============ MODULE DESCRIPTION =========== -->\n"
+ "<a name=\"module.description\">\n"
+ "<!-- -->\n"
+ "</a>\n"
+ "<div class=\"block\">This is a test description for the moduleA module with a Search "
- + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>");
+ + "phrase <span id=\"searchphrase\" class=\"searchTagResult\">search phrase</span>.</div>");
checkOutput("moduleB/module-summary.html", found,
"<!-- ============ MODULE DESCRIPTION =========== -->\n"
+ "<a name=\"module.description\">\n"
+ "<!-- -->\n"
+ "</a>\n"
+ "<div class=\"block\">This is a test description for the moduleB module. Search "
- + "word <a id=\"search_word\" class=\"searchTagResult\">search_word</a> with no description.</div>");
+ + "word <span id=\"search_word\" class=\"searchTagResult\">search_word</span> with no description.</div>");
checkOutput("index.html", found,
"</script>\n"
+ "<div class=\"contentContainer\">\n"
+ "<div class=\"block\">The overview summary page header.</div>\n"
+ "</div>\n"
@@ -508,29 +508,23 @@
+ "<!-- ============ PACKAGES SUMMARY =========== -->");
}
void checkHtml5Description(boolean found) {
checkOutput("moduleA/module-summary.html", found,
- "<section class=\"moduleDescription\">\n"
+ "<section class=\"moduleDescription\" id=\"module.description\">\n"
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal:"
+ " This API element is subject to removal in a future version.</span>\n"
+ "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
+ "</div>\n"
+ "<!-- ============ MODULE DESCRIPTION =========== -->\n"
- + "<a id=\"module.description\">\n"
- + "<!-- -->\n"
- + "</a>\n"
+ "<div class=\"block\">This is a test description for the moduleA module with a Search "
- + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>");
+ + "phrase <span id=\"searchphrase\" class=\"searchTagResult\">search phrase</span>.</div>");
checkOutput("moduleB/module-summary.html", found,
- "<section class=\"moduleDescription\">\n"
+ "<section class=\"moduleDescription\" id=\"module.description\">\n"
+ "<!-- ============ MODULE DESCRIPTION =========== -->\n"
- + "<a id=\"module.description\">\n"
- + "<!-- -->\n"
- + "</a>\n"
+ "<div class=\"block\">This is a test description for the moduleB module. Search "
- + "word <a id=\"search_word\" class=\"searchTagResult\">search_word</a> with no description.</div>");
+ + "word <span id=\"search_word\" class=\"searchTagResult\">search_word</span> with no description.</div>");
checkOutput("index.html", found,
"</nav>\n"
+ "</header>\n"
+ "<div class=\"flexContent\">\n"
+ "<main role=\"main\">\n"
@@ -557,18 +551,18 @@
checkOutput("moduleA/module-summary.html", found,
"<div class=\"contentContainer\">\n"
+ "<section class=\"summary\">\n"
+ "<ul class=\"blockList\">\n"
+ "<li class=\"blockList\">\n"
- + "<section class=\"packagesSummary\">\n"
+ + "<section class=\"packagesSummary\" id=\"packages.summary\">\n"
+ "<!-- ============ PACKAGES SUMMARY =========== -->");
checkOutput("moduleB/module-summary.html", found,
"<div class=\"contentContainer\">\n"
+ "<section class=\"summary\">\n"
+ "<ul class=\"blockList\">\n"
+ "<li class=\"blockList\">\n"
- + "<section class=\"packagesSummary\">\n"
+ + "<section class=\"packagesSummary\" id=\"packages.summary\">\n"
+ "<!-- ============ PACKAGES SUMMARY =========== -->");
}
void checkModuleLink() {
checkOutput("index.html", true,
@@ -763,22 +757,20 @@
+ "<li><a href=\"#module.description\">Description</a> | </li>\n"
+ "<li><a href=\"#modules.summary\">Modules</a> | </li>\n"
+ "<li><a href=\"#packages.summary\">Packages</a> | </li>\n"
+ "<li>Services</li>\n"
+ "</ul>",
- "<!-- ============ MODULES SUMMARY =========== -->\n"
- + "<a id=\"modules.summary\">\n"
- + "<!-- -->\n"
- + "</a>",
+ "<section class=\"modulesSummary\" id=\"modules.summary\">\n"
+ + "<!-- ============ MODULES SUMMARY =========== -->\n"
+ + "<h2>Modules</h2>",
"<tr class=\"altColor\" id=\"i0\">\n"
+ "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlA/package-summary.html\">testpkgmdlA</a></th>\n"
+ "<td class=\"colLast\"> </td>\n"
+ "</tr>",
- "<!-- ============ PACKAGES SUMMARY =========== -->\n"
- + "<a id=\"packages.summary\">\n"
- + "<!-- -->\n"
- + "</a>",
+ "<section class=\"packagesSummary\" id=\"packages.summary\">\n"
+ + "<!-- ============ PACKAGES SUMMARY =========== -->\n"
+ + "<h2>Packages</h2>",
"<tr class=\"altColor\">\n"
+ "<td class=\"colFirst\">transitive</td>\n"
+ "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
+ "<td class=\"colLast\">\n"
+ "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
@@ -788,25 +780,19 @@
"<li><a href=\"#module.description\">Description</a> | </li>\n"
+ "<li>Modules | </li>\n"
+ "<li><a href=\"#packages.summary\">Packages</a> | </li>\n"
+ "<li><a href=\"#services.summary\">Services</a></li>",
"<!-- ============ PACKAGES SUMMARY =========== -->\n"
- + "<a id=\"packages.summary\">\n"
- + "<!-- -->\n"
- + "</a>",
+ + "<h2>Packages</h2>",
"<tr class=\"altColor\" id=\"i0\">\n"
+ "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
+ "<td class=\"colLast\"> </td>\n"
+ "</tr>",
"<!-- ============ PACKAGES SUMMARY =========== -->\n"
- + "<a id=\"packages.summary\">\n"
- + "<!-- -->\n"
- + "</a>",
+ + "<h2>Packages</h2>",
"<!-- ============ SERVICES SUMMARY =========== -->\n"
- + "<a id=\"services.summary\">\n"
- + "<!-- -->\n"
- + "</a>",
+ + "<h2>Services</h2>",
"<tr class=\"altColor\">\n"
+ "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClassInModuleB.html\" title=\"class in testpkgmdlB\">TestClassInModuleB</a></th>\n"
+ "<td class=\"colLast\">\n"
+ "<div class=\"block\">With a test description for uses.</div>\n</td>\n"
+ "</tr>",
@@ -837,11 +823,11 @@
checkOutput("moduleT/module-summary.html", true,
"<div class=\"header\">\n"
+ "<h1 title=\"Module\" class=\"title\">Module moduleT</h1>\n"
+ "</div>",
"<div class=\"block\">This is a test description for the moduleT module. "
- + "Search phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>. "
+ + "Search phrase <span id=\"searchphrase\" class=\"searchTagResult\">search phrase</span>. "
+ "Make sure there are no exported packages.</div>",
"<tbody>\n"
+ "<tr class=\"altColor\">\n"
+ "<td class=\"colFirst\">transitive</td>\n"
+ "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleA/module-summary.html\">moduleA</a></th>\n"
@@ -861,13 +847,11 @@
}
void checkNegatedModuleSummary() {
checkOutput("moduleA/module-summary.html", false,
"<!-- ============ SERVICES SUMMARY =========== -->\n"
- + "<a id=\"services.summary\">\n"
- + "<!-- -->\n"
- + "</a>");
+ + "<h2>Services</h2>");
}
void checkModuleFilesAndLinks(boolean found) {
checkFileAndOutput("moduleA/testpkgmdlA/package-summary.html", found,
"<li><a href=\"../module-summary.html\">Module</a></li>",
@@ -1123,13 +1107,11 @@
}
void checkModuleSummaryNoExported(boolean found) {
checkOutput("moduleNoExport/module-summary.html", found,
"<!-- ============ PACKAGES SUMMARY =========== -->\n"
- + "<a id=\"packages.summary\">\n"
- + "<!-- -->\n"
- + "</a>",
+ + "<h2>Packages</h2>",
"<caption><span>Concealed</span><span class=\"tabEnd\"> </span></caption>");
}
void checkGroupOption() {
checkOutput("index.html", true,
@@ -1241,11 +1223,11 @@
checkOutput("test.moduleFullName/module-summary.html", found,
"<div class=\"header\">\n"
+ "<h1 title=\"Module\" class=\"title\">Module test.moduleFullName</h1>\n"
+ "</div>");
checkOutput("index-all.html", found,
- "<h2 class=\"title\">T</h2>\n"
+ "<h2 class=\"title\" id=\"I:T\">T</h2>\n"
+ "<dl>\n"
+ "<dt><a href=\"test.moduleFullName/module-summary.html\">test.moduleFullName</a> - module test.moduleFullName</dt>\n"
+ "<dd>\n"
+ "<div class=\"block\">This is a test description for the test.moduleFullName.</div>\n"
+ "</dd>");
@@ -1285,25 +1267,25 @@
checkOutput("moduleA/testpkgmdlA/TestClassInModuleA.html", true,
"<section class=\"description\">\n<hr>\n"
+ "<pre>public class <a href=\"../../src-html/moduleA/testpkgmdlA/TestClassInModuleA.html#line.25\">"
+ "TestClassInModuleA</a>\nextends java.lang.Object</pre>\n</section>");
checkOutput("src-html/moduleA/testpkgmdlA/TestClassInModuleA.html", true,
- "<span class=\"sourceLineNo\">019</span><a id=\"line.19\"> * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA</a>\n"
- + "<span class=\"sourceLineNo\">020</span><a id=\"line.20\"> * or visit www.oracle.com if you need additional information or have any</a>\n"
- + "<span class=\"sourceLineNo\">021</span><a id=\"line.21\"> * questions.</a>\n"
- + "<span class=\"sourceLineNo\">022</span><a id=\"line.22\"> */</a>\n"
- + "<span class=\"sourceLineNo\">023</span><a id=\"line.23\">package testpkgmdlA;</a>\n"
- + "<span class=\"sourceLineNo\">024</span><a id=\"line.24\"></a>\n"
- + "<span class=\"sourceLineNo\">025</span><a id=\"line.25\">public class TestClassInModuleA {</a>\n"
- + "<span class=\"sourceLineNo\">026</span><a id=\"line.26\">}</a>");
+ "<span class=\"sourceLineNo\">019</span><span id=\"line.19\"> * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA</span>\n"
+ + "<span class=\"sourceLineNo\">020</span><span id=\"line.20\"> * or visit www.oracle.com if you need additional information or have any</span>\n"
+ + "<span class=\"sourceLineNo\">021</span><span id=\"line.21\"> * questions.</span>\n"
+ + "<span class=\"sourceLineNo\">022</span><span id=\"line.22\"> */</span>\n"
+ + "<span class=\"sourceLineNo\">023</span><span id=\"line.23\">package testpkgmdlA;</span>\n"
+ + "<span class=\"sourceLineNo\">024</span><span id=\"line.24\"></span>\n"
+ + "<span class=\"sourceLineNo\">025</span><span id=\"line.25\">public class TestClassInModuleA {</span>\n"
+ + "<span class=\"sourceLineNo\">026</span><span id=\"line.26\">}</span>");
if (includePrivate) {
checkOutput("src-html/moduleA/concealedpkgmdlA/ConcealedClassInModuleA.html", true,
- "<span class=\"sourceLineNo\">024</span><a id=\"line.24\">package concealedpkgmdlA;</a>\n"
- + "<span class=\"sourceLineNo\">025</span><a id=\"line.25\"></a>\n"
- + "<span class=\"sourceLineNo\">026</span><a id=\"line.26\">public class ConcealedClassInModuleA {</a>\n"
- + "<span class=\"sourceLineNo\">027</span><a id=\"line.27\"> public void testMethodConcealedClass() { }</a>\n"
- + "<span class=\"sourceLineNo\">028</span><a id=\"line.28\">}</a>");
+ "<span class=\"sourceLineNo\">024</span><span id=\"line.24\">package concealedpkgmdlA;</span>\n"
+ + "<span class=\"sourceLineNo\">025</span><span id=\"line.25\"></span>\n"
+ + "<span class=\"sourceLineNo\">026</span><span id=\"line.26\">public class ConcealedClassInModuleA {</span>\n"
+ + "<span class=\"sourceLineNo\">027</span><span id=\"line.27\"> public void testMethodConcealedClass() { }</span>\n"
+ + "<span class=\"sourceLineNo\">028</span><span id=\"line.28\">}</span>");
}
}
void checkAllPkgsAllClasses(boolean found) {
checkOutput("allclasses-index.html", true,
< prev index next >