8081854: Javadoc should generate named anchors for HTML4 output

Reviewed-by: ksrini
This commit is contained in:
Bhavesh Patel 2015-06-23 15:41:05 -07:00
parent 63b337e82e
commit 9075df539a
15 changed files with 155 additions and 149 deletions

View file

@ -23,7 +23,7 @@
/*
* @test
* @bug 4663254 8016328 8025633 8026567
* @bug 4663254 8016328 8025633 8026567 8081854
* @summary Verify that spaces do not appear in hrefs and anchors.
* @author jamieh
* @library ../lib
@ -54,11 +54,11 @@ public class TestHref extends JavadocTester {
//Member summary table link.
"href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\"",
//Anchor test.
"<a id=\"method-int-int-java.util.ArrayList-\">\n"
"<a name=\"method-int-int-java.util.ArrayList-\">\n"
+ "<!-- -->\n"
+ "</a>",
//Backward compatibility anchor test."pkg/C1.html",
"<a id=\"method-int-int-java.util.ArrayList-\">\n"
"<a name=\"method-int-int-java.util.ArrayList-\">\n"
+ "<!-- -->\n"
+ "</a>");