test/langtools/jdk/javadoc/doclet/testOverriddenMethods/TestOverriddenMethodDocCopy.java
equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4368820 8025633 8026567 |
26 * @bug 4368820 8025633 8026567 8182765 |
27 * @summary Inherited comment should link directly to member, not just |
27 * @summary Inherited comment should link directly to member, not just |
28 * class |
28 * class |
29 * @author jamieh |
29 * @author jamieh |
30 * @library ../lib |
30 * @library ../lib |
31 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
31 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
51 "pkg1", "pkg2"); |
51 "pkg1", "pkg2"); |
52 checkExit(Exit.OK); |
52 checkExit(Exit.OK); |
53 |
53 |
54 checkOutput("pkg1/SubClass.html", true, |
54 checkOutput("pkg1/SubClass.html", true, |
55 "<span class=\"descfrmTypeLabel\">Description copied from class: <code>" |
55 "<span class=\"descfrmTypeLabel\">Description copied from class: <code>" |
|
56 + "<a href=\"BaseClass.html#overridenMethodWithDocsToCopy()\">" |
|
57 + "BaseClass</a></code></span>"); |
|
58 } |
|
59 |
|
60 @Test |
|
61 void test_html4() { |
|
62 javadoc("-d", "out-html4", |
|
63 "-html4", |
|
64 "-sourcepath", testSrc, |
|
65 "pkg1", "pkg2"); |
|
66 checkExit(Exit.OK); |
|
67 |
|
68 checkOutput("pkg1/SubClass.html", true, |
|
69 "<span class=\"descfrmTypeLabel\">Description copied from class: <code>" |
56 + "<a href=\"BaseClass.html#overridenMethodWithDocsToCopy--\">" |
70 + "<a href=\"BaseClass.html#overridenMethodWithDocsToCopy--\">" |
57 + "BaseClass</a></code></span>"); |
71 + "BaseClass</a></code></span>"); |
58 } |
72 } |
59 } |
73 } |