test/langtools/jdk/javadoc/doclet/testOptions/TestOptions.java
author jjg
Fri, 18 Jan 2019 11:26:30 -0800
changeset 53391 a99bd2570660
parent 53097 2e82ca64b25d
child 53562 0d9dee001667
permissions -rw-r--r--
8217034: JavadocTester should check for missing files by default Reviewed-by: hannesw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
     1
/*
53391
a99bd2570660 8217034: JavadocTester should check for missing files by default
jjg
parents: 53097
diff changeset
     2
 * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
     4
 *
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
     7
 * published by the Free Software Foundation.
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
     8
 *
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    13
 * accompanied this code).
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    14
 *
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    18
 *
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    21
 * questions.
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    22
 */
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    23
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    24
/*
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    25
 * @test
53391
a99bd2570660 8217034: JavadocTester should check for missing files by default
jjg
parents: 53097
diff changeset
    26
 * @bug      4749567 8071982 8175200 8186332 8185371 8182765 8217034
47748
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
    27
 * @summary  Test the output for -header, -footer, -nooverview, -nodeprecatedlist, -nonavbar, -notree,
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
    28
 *           -stylesheetfile, --main-stylesheet, --add-stylesheet options.
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    29
 * @author   Bhavesh Patel
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
    30
 * @library  ../../lib
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    31
 * @modules jdk.javadoc/jdk.javadoc.internal.tool
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
    32
 * @build    javadoc.tester.*
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    33
 * @run main TestOptions
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    34
 */
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    35
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    36
import java.io.File;
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    37
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
    38
import javadoc.tester.JavadocTester;
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
    39
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    40
public class TestOptions extends JavadocTester {
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    41
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    42
    public static void main(String... args) throws Exception {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    43
        TestOptions tester = new TestOptions();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    44
        tester.runTests();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    45
    }
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    46
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    47
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
    48
    public void testHeaderFooter() {
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    49
        javadoc("-d", "out-1",
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    50
                "-header", "Test header",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    51
                "-footer", "Test footer",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    52
                "-sourcepath", testSrc,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    53
                "pkg");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    54
        checkExit(Exit.OK);
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    55
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    56
        checkOutput("pkg/package-summary.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    57
                "<div class=\"aboutLanguage\">Test header</div>",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    58
                "<div class=\"aboutLanguage\">Test footer</div>");
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    59
    }
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    60
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    61
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
    62
    public void testNoOverview() {
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    63
        javadoc("-d", "out-4",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    64
                "-nooverview",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    65
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    66
                "pkg", "deprecated");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    67
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    68
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    69
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    70
        checkFiles(false, "overview-summary.html");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    71
    }
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    72
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    73
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
    74
    public void testNoDeprecatedList() {
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    75
        javadoc("-d", "out-5",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    76
                "-nodeprecatedlist",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    77
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    78
                "deprecated");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    79
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    80
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    81
        checkFiles(false, "deprecated-list.html");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    82
    }
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    83
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    84
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
    85
    public void testNoNavbar() {
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    86
        javadoc("-d", "out-6",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    87
                "-nonavbar",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    88
                "-bottom", "Bottom text",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    89
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    90
                "pkg");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    91
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    92
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    93
        checkOutput("pkg/Foo.html", false, "navbar");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    94
        checkOutput("pkg/Foo.html", true, "Bottom text");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    95
    }
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    96
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    97
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
    98
    public void testNoTree() {
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    99
        javadoc("-d", "out-7",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   100
                "-notree",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   101
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   102
                "pkg");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   103
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   104
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   105
        checkFiles(false, "overview-tree.html");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   106
        checkFiles(false, "pkg/package-tree.html");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   107
        checkOutput("pkg/Foo.html", false, "<li><a href=\"package-tree.html\">Tree</a></li>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   108
    }
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   109
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   110
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
   111
    public void testStylesheetFile() {
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   112
        javadoc("-d", "out-8",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   113
                "-stylesheetfile", new File(testSrc, "custom-stylesheet.css").getAbsolutePath(),
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   114
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   115
                "pkg");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   116
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   117
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   118
        checkOutput("custom-stylesheet.css", true, "Custom javadoc style sheet");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   119
        checkOutput("pkg/Foo.html", true, "<link rel=\"stylesheet\" type=\"text/css\" "
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   120
                + "href=\"../custom-stylesheet.css\" title=\"Style\">");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   121
    }
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   122
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   123
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
   124
    public void testStylesheetFileAltOption() {
47748
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   125
        javadoc("-d", "out-stylesheet-file",
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   126
                "--main-stylesheet", new File(testSrc, "custom-stylesheet.css").getAbsolutePath(),
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   127
                "-sourcepath", testSrc,
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   128
                "pkg");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   129
        checkExit(Exit.OK);
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   130
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   131
        checkOutput("custom-stylesheet.css", true, "Custom javadoc style sheet");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   132
        checkOutput("pkg/Foo.html", true, "<link rel=\"stylesheet\" type=\"text/css\" "
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   133
                + "href=\"../custom-stylesheet.css\" title=\"Style\">");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   134
    }
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   135
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   136
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
   137
    public void testAdditionalStylesheetFile() {
47748
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   138
        javadoc("-d", "out-additional-css",
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   139
                "--add-stylesheet", new File(testSrc, "additional-stylesheet-1.css").getAbsolutePath(),
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   140
                "--add-stylesheet", new File(testSrc, "additional-stylesheet-2.css").getAbsolutePath(),
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   141
                "--add-stylesheet", new File(testSrc, "additional-stylesheet-3.css").getAbsolutePath(),
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   142
                "-sourcepath", testSrc,
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   143
                "pkg");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   144
        checkExit(Exit.OK);
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   145
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   146
        checkOutput("additional-stylesheet-1.css", true, "Additional javadoc style sheet 1");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   147
        checkOutput("additional-stylesheet-2.css", true, "Additional javadoc style sheet 2");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   148
        checkOutput("additional-stylesheet-3.css", true, "Additional javadoc style sheet 3");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   149
        checkOutput("pkg/Foo.html", true,
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   150
                "<link rel=\"stylesheet\" type=\"text/css\" href=\"../additional-stylesheet-1.css\" title=\"Style\">\n"
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   151
                + "<link rel=\"stylesheet\" type=\"text/css\" href=\"../additional-stylesheet-2.css\" title=\"Style\">\n"
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   152
                + "<link rel=\"stylesheet\" type=\"text/css\" href=\"../additional-stylesheet-3.css\" title=\"Style\">");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   153
    }
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   154
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   155
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
   156
    public void testInvalidStylesheetFile() {
47748
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   157
        javadoc("-d", "out-invalid-css",
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   158
                "--main-stylesheet", new File(testSrc, "custom-stylesheet-1.css").getAbsolutePath(),
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   159
                "-sourcepath", testSrc,
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   160
                "pkg");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   161
        checkExit(Exit.ERROR);
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   162
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   163
        checkOutput(Output.OUT, true,
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   164
                "javadoc: error - File not found:",
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   165
                "custom-stylesheet-1.css");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   166
    }
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   167
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   168
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
   169
    public void testInvalidAdditionalStylesheetFiles() {
47748
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   170
        javadoc("-d", "out-invalid-additional-css",
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   171
                "--add-stylesheet", new File(testSrc, "additional-stylesheet-4.css").getAbsolutePath(),
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   172
                "-sourcepath", testSrc,
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   173
                "pkg");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   174
        checkExit(Exit.ERROR);
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   175
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   176
        checkOutput(Output.OUT, true,
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   177
                "javadoc: error - File not found:",
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   178
                "additional-stylesheet-4.css");
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   179
    }
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   180
dfc709c80775 8185371: Support for multiple stylesheets in javadoc
bpatel
parents: 47284
diff changeset
   181
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
   182
    public void testLinkSource() {
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   183
        javadoc("-d", "out-9",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   184
                "-linksource",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   185
                "-javafx",
49879
601277b1d582 8025091: VisibleMemberMap.java possible performance improvements
ksrini
parents: 49139
diff changeset
   186
                "--disable-javafx-strict-checks",
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   187
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   188
                "-package",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   189
                "linksource");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   190
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   191
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   192
        checkOutput("linksource/AnnotationTypeField.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   193
                "<pre>@Documented\npublic @interface <a href="
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   194
                + "\"../src-html/linksource/AnnotationTypeField.html#line.31\">"
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   195
                + "AnnotationTypeField</a></pre>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   196
                "<h4>DEFAULT_NAME</h4>\n<pre>static final&nbsp;java.lang.String&nbsp;"
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   197
                + "<a href=\"../src-html/linksource/AnnotationTypeField.html#line.32\">"
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   198
                + "DEFAULT_NAME</a></pre>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   199
                "<h4>name</h4>\n<pre>java.lang.String&nbsp;<a href="
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   200
                + "\"../src-html/linksource/AnnotationTypeField.html#line.34\">name</a></pre>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   201
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   202
        checkOutput("src-html/linksource/AnnotationTypeField.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   203
                "<title>Source code</title>",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   204
                "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">"
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   205
                + "@Documented public @interface AnnotationTypeField {</a>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   206
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   207
        checkOutput("linksource/Properties.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   208
                "<pre>public class <a href=\"../src-html/linksource/Properties.html#line.29\">"
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   209
                + "Properties</a>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   210
                "<pre>public&nbsp;java.lang.Object <a href="
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   211
                + "\"../src-html/linksource/Properties.html#line.31\">someProperty</a></pre>",
51127
c2e676c2cf7b 8207190: JDK 11 javadoc generates bad code example
pmuthuswamy
parents: 49879
diff changeset
   212
                "<pre class=\"methodSignature\">public&nbsp;java.lang.Object&nbsp;<a href="
47284
355349babaf4 8186332: Fix method signature in method summary table
bpatel
parents: 47216
diff changeset
   213
                + "\"../src-html/linksource/Properties.html#line.31\">someProperty</a>()</pre>");
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   214
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   215
        checkOutput("src-html/linksource/Properties.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   216
                "<title>Source code</title>",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   217
                "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">    "
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   218
                + "public Object someProperty() {</a>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   219
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   220
        checkOutput("linksource/SomeClass.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   221
                "<pre>public class <a href=\"../src-html/linksource/SomeClass.html#line.29\">"
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   222
                + "SomeClass</a>\nextends java.lang.Object</pre>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   223
                "<pre>public&nbsp;int <a href=\"../src-html/linksource/SomeClass.html#line.31\">"
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   224
                + "field</a></pre>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   225
                "<pre>public&nbsp;<a href=\"../src-html/linksource/SomeClass.html#line.33\">"
47284
355349babaf4 8186332: Fix method signature in method summary table
bpatel
parents: 47216
diff changeset
   226
                + "SomeClass</a>()</pre>",
51127
c2e676c2cf7b 8207190: JDK 11 javadoc generates bad code example
pmuthuswamy
parents: 49879
diff changeset
   227
                "<pre class=\"methodSignature\">public&nbsp;int&nbsp;<a href=\"../src-html/linksource/SomeClass.html#line.36\">"
47284
355349babaf4 8186332: Fix method signature in method summary table
bpatel
parents: 47216
diff changeset
   228
                + "method</a>()</pre>");
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   229
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   230
        checkOutput("src-html/linksource/SomeClass.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   231
                "<title>Source code</title>",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   232
                "<span class=\"sourceLineNo\">029</span><a id=\"line.29\">"
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   233
                + "public class SomeClass {</a>",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   234
                "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">    "
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   235
                + "public int field;</a>",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   236
                "<span class=\"sourceLineNo\">033</span><a id=\"line.33\">    "
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   237
                + "public SomeClass() {</a>",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   238
                "<span class=\"sourceLineNo\">036</span><a id=\"line.36\">    "
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   239
                + "public int method() {</a>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   240
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   241
        checkOutput("linksource/SomeEnum.html", true,
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47748
diff changeset
   242
                "<pre>public static final&nbsp;<a href=\"SomeEnum.html\" "
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   243
                + "title=\"enum in linksource\">SomeEnum</a> <a href="
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   244
                + "\"../src-html/linksource/SomeEnum.html#line.29\">VALUE1</a></pre>",
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47748
diff changeset
   245
                "<pre>public static final&nbsp;<a href=\"SomeEnum.html\" "
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   246
                + "title=\"enum in linksource\">SomeEnum</a> <a href="
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   247
                + "\"../src-html/linksource/SomeEnum.html#line.30\">VALUE2</a></pre>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   248
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   249
        checkOutput("src-html/linksource/SomeEnum.html", true,
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   250
                "<span class=\"sourceLineNo\">029</span><a id=\"line.29\">    VALUE1,</a>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   251
                "<span class=\"sourceLineNo\">030</span><a id=\"line.30\">    VALUE2</a>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   252
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   253
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   254
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
   255
    public void testLinkSource_html4() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   256
        javadoc("-d", "out-9-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   257
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   258
                "-linksource",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   259
                "-javafx",
49879
601277b1d582 8025091: VisibleMemberMap.java possible performance improvements
ksrini
parents: 49139
diff changeset
   260
                "--disable-javafx-strict-checks",
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   261
                "-sourcepath", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   262
                "-package",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   263
                "linksource");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   264
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   265
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   266
        checkOutput("src-html/linksource/AnnotationTypeField.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   267
                "<span class=\"sourceLineNo\">031</span><a name=\"line.31\">"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   268
                + "@Documented public @interface AnnotationTypeField {</a>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   269
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   270
        checkOutput("src-html/linksource/Properties.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   271
                "<span class=\"sourceLineNo\">031</span><a name=\"line.31\">    "
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   272
                + "public Object someProperty() {</a>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   273
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   274
        checkOutput("src-html/linksource/SomeClass.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   275
                "<span class=\"sourceLineNo\">029</span><a name=\"line.29\">"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   276
                + "public class SomeClass {</a>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   277
                "<span class=\"sourceLineNo\">031</span><a name=\"line.31\">    "
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   278
                + "public int field;</a>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   279
                "<span class=\"sourceLineNo\">033</span><a name=\"line.33\">    "
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   280
                + "public SomeClass() {</a>",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   281
                "<span class=\"sourceLineNo\">036</span><a name=\"line.36\">    "
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   282
                + "public int method() {</a>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   283
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48654
diff changeset
   284
        checkOutput("src-html/linksource/SomeEnum.html", true,
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   285
                "<span class=\"sourceLineNo\">029</span><a name=\"line.29\">    VALUE1,</a>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   286
                "<span class=\"sourceLineNo\">030</span><a name=\"line.30\">    VALUE2</a>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   287
    }
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   288
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   289
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 51127
diff changeset
   290
    public void testNoQualifier() {
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   291
        javadoc("-d", "out-10",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   292
                "-noqualifier", "pkg",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   293
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   294
                "pkg", "deprecated");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   295
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   296
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   297
        checkOutput("pkg/Foo.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   298
                "<li>Foo</li>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   299
        checkOutput("deprecated/Foo.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   300
                "<li>deprecated.Foo</li>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   301
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   302
        javadoc("-d", "out-10a",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   303
                "-noqualifier", "all",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   304
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   305
                "pkg", "deprecated");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   306
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   307
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   308
        checkOutput("pkg/Foo.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   309
                "<li>Foo</li>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   310
        checkOutput("deprecated/Foo.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   311
                "<li>Foo</li>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   312
    }
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
   313
}