test/langtools/jdk/javadoc/doclet/testPackageDeprecation/TestPackageDeprecation.java
changeset 50293 edfb87b2520e
parent 50118 919c36db208c
child 53097 2e82ca64b25d
equal deleted inserted replaced
50292:43d41f780a5b 50293:edfb87b2520e
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug      6492694 8026567 8048351 8162363 8183511 8169819 8074407
    26  * @bug      6492694 8026567 8048351 8162363 8183511 8169819 8074407 8196202
    27  * @summary  Test package deprecation.
    27  * @summary  Test package deprecation.
    28  * @author   bpatel
    28  * @author   bpatel
    29  * @library  ../lib/
    29  * @library  ../lib/
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    31  * @build    JavadocTester TestPackageDeprecation
    31  * @build    JavadocTester TestPackageDeprecation
    43     @Test
    43     @Test
    44     void testDefault() {
    44     void testDefault() {
    45         javadoc("-d", "out-default",
    45         javadoc("-d", "out-default",
    46                 "-sourcepath", testSrc,
    46                 "-sourcepath", testSrc,
    47                 "-use",
    47                 "-use",
       
    48                 "--frames",
    48                 "pkg", "pkg1", testSrc("C2.java"), testSrc("FooDepr.java"));
    49                 "pkg", "pkg1", testSrc("C2.java"), testSrc("FooDepr.java"));
    49         checkExit(Exit.OK);
    50         checkExit(Exit.OK);
    50 
    51 
    51         checkOutput("pkg1/package-summary.html", true,
    52         checkOutput("pkg1/package-summary.html", true,
    52                 "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span>\n"
    53                 "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span>\n"
    62     void testNoDeprecated() {
    63     void testNoDeprecated() {
    63         javadoc("-d", "out-nodepr",
    64         javadoc("-d", "out-nodepr",
    64                 "-sourcepath", testSrc,
    65                 "-sourcepath", testSrc,
    65                 "-use",
    66                 "-use",
    66                 "-nodeprecated",
    67                 "-nodeprecated",
       
    68                 "--frames",
    67                 "pkg", "pkg1", testSrc("C2.java"), testSrc("FooDepr.java"));
    69                 "pkg", "pkg1", testSrc("C2.java"), testSrc("FooDepr.java"));
    68         checkExit(Exit.OK);
    70         checkExit(Exit.OK);
    69 
    71 
    70         checkOutput("overview-summary.html", false,
    72         checkOutput("overview-summary.html", false,
    71                 "pkg1");
    73                 "pkg1");