< prev index next >
test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java
Print this page
@@ -136,11 +136,11 @@
checkOutput("p/R.html", true,
"<h1 title=\"Record R\" class=\"title\">Record R</h1>",
"public record <span class=\"typeNameLabel\">R</span>",
"<dl>\n"
+ "<dt><span class=\"paramLabel\">Record Components:</span></dt>\n"
- + "<dd><code><a id=\"param-r1\">r1</a></code> - This is a component.</dd>\n"
+ + "<dd><code><span id=\"param-r1\">r1</span></code> - This is a component.</dd>\n"
+ "</dl>",
"<code><span class=\"memberNameLink\"><a href=\"#%3Cinit%3E(int)\">R</a></span>(int r1)</code>");
}
@Test
@@ -165,11 +165,11 @@
"public record <span class=\"typeNameLabel\">R<T></span>",
"<dl>\n"
+ "<dt><span class=\"paramLabel\">Type Parameters:</span></dt>\n"
+ "<dd><code>T</code> - This is a type parameter.</dd>\n"
+ "<dt><span class=\"paramLabel\">Record Components:</span></dt>\n"
- + "<dd><code><a id=\"param-r1\">r1</a></code> - This is a component.</dd>\n"
+ + "<dd><code><span id=\"param-r1\">r1</span></code> - This is a component.</dd>\n"
+ "</dl>",
"<code><span class=\"memberNameLink\"><a href=\"#%3Cinit%3E(int)\">R</a></span>(int r1)</code>");
}
@Test
@@ -190,14 +190,14 @@
// While we don't normally test values that just come from resource files,
// in these cases, we want to verify that something non-empty was put into
// the documentation for the generated members.
checkOrder("p/R.html",
- "<section class=\"constructorSummary\">",
+ "<section class=\"constructorSummary\" id=\"constructor.summary\">",
"<a href=\"#%3Cinit%3E(int)\">R</a>",
"Creates an instance of a <code>R</code> record.",
- "<section class=\"methodSummary\">",
+ "<section class=\"methodSummary\" id=\"method.summary\">",
"<a href=\"#equals(java.lang.Object)\">equals</a>",
"Indicates whether some other object is \"equal to\" this one.",
"<a href=\"#hashCode()\">hashCode</a>",
"Returns a hash code value for this object.",
"<a href=\"#r1()\">r1</a>",
@@ -242,14 +242,14 @@
// While we don't normally test values that just come from resource files,
// in these cases, we want to verify that something non-empty was put into
// the documentation for the generated members.
checkOrder("p/R.html",
- "<section class=\"constructorSummary\">",
+ "<section class=\"constructorSummary\" id=\"constructor.summary\">",
"<a href=\"#%3Cinit%3E(int)\">R</a>",
"Creates an instance of a <code>R</code> record.",
- "<section class=\"methodSummary\">",
+ "<section class=\"methodSummary\" id=\"method.summary\">",
"<a href=\"#equals(java.lang.Object)\">equals</a>",
"Indicates whether some other object is \"equal to\" this one.",
"<a href=\"#hashCode()\">hashCode</a>",
"Returns a hash code value for this object.",
"<a href=\"#r1()\">r1</a>",
@@ -332,14 +332,14 @@
"--enable-preview", "--source", thisRelease,
"p");
checkExit(Exit.OK);
checkOrder("p/R.html",
- "<section class=\"constructorSummary\">",
+ "<section class=\"constructorSummary\" id=\"constructor.summary\">",
"<a href=\"#%3Cinit%3E(int)\">R</a>",
"User constructor.",
- "<section class=\"methodSummary\">",
+ "<section class=\"methodSummary\" id=\"method.summary\">",
"<a href=\"#equals(java.lang.Object)\">equals</a>",
"User equals.",
"<a href=\"#hashCode()\">hashCode</a>",
"User hashCode.",
"<a href=\"#r1()\">r1</a>",
< prev index next >