test/langtools/jdk/javadoc/doclet/testOverriddenMethods/TestOverriddenMethodDocCopy.java
changeset 49139 771616d26ca1
parent 48654 36f58bd6269f
child 53097 2e82ca64b25d
equal deleted inserted replaced
49138:67912cbf784a 49139:771616d26ca1
    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:&nbsp;<code>"
    55                 "<span class=\"descfrmTypeLabel\">Description copied from class:&nbsp;<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:&nbsp;<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 }