test/langtools/jdk/javadoc/doclet/testOptions/TestOptions.java
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 44297 langtools/test/jdk/javadoc/doclet/testOptions/TestOptions.java@e03f5fb3714b
child 47284 355349babaf4
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
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
/*
44297
e03f5fb3714b 8175200: Long method signatures disturb Method Summary table
bpatel
parents: 36709
diff changeset
     2
 * Copyright (c) 2013, 2017, 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
44297
e03f5fb3714b 8175200: Long method signatures disturb Method Summary table
bpatel
parents: 36709
diff changeset
    26
 * @bug      4749567 8071982 8175200
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    27
 * @summary  Test the output for -header, -footer, -nooverview, -nodeprecatedlist, -nonavbar, -notree, -stylesheetfile options.
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    28
 * @author   Bhavesh Patel
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    29
 * @library  ../lib
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    30
 * @modules jdk.javadoc/jdk.javadoc.internal.tool
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    31
 * @build    JavadocTester
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    32
 * @run main TestOptions
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    33
 */
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    34
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    35
import java.io.File;
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    36
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    37
public class TestOptions extends JavadocTester {
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    38
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    39
    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
    40
        TestOptions tester = new TestOptions();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    41
        tester.runTests();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    42
    }
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    43
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    44
    @Test
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    45
    void testHeaderFooter() {
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    46
        javadoc("-d", "out-1",
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    47
                "-header", "Test header",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    48
                "-footer", "Test footer",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    49
                "-sourcepath", testSrc,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    50
                "pkg");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    51
        checkExit(Exit.OK);
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    52
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    53
        checkOutput("pkg/package-summary.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    54
                "<div class=\"aboutLanguage\">Test header</div>",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    55
                "<div class=\"aboutLanguage\">Test footer</div>");
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
    56
    }
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    57
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    58
    @Test
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    59
    void testNoOverview() {
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    60
        javadoc("-d", "out-4",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    61
                "-nooverview",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    62
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    63
                "pkg", "deprecated");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    64
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    65
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    66
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    67
        checkFiles(false, "overview-summary.html");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    68
    }
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
    @Test
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    71
    void testNoDeprecatedList() {
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    72
        javadoc("-d", "out-5",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    73
                "-nodeprecatedlist",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    74
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    75
                "deprecated");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    76
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    77
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    78
        checkFiles(false, "deprecated-list.html");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    79
    }
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
    @Test
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    82
    void testNoNavbar() {
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    83
        javadoc("-d", "out-6",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    84
                "-nonavbar",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    85
                "-bottom", "Bottom text",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    86
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    87
                "pkg");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    88
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    89
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    90
        checkOutput("pkg/Foo.html", false, "navbar");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    91
        checkOutput("pkg/Foo.html", true, "Bottom text");
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
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    94
    @Test
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    95
    void testNoTree() {
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    96
        javadoc("-d", "out-7",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    97
                "-notree",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    98
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    99
                "pkg");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   100
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   101
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   102
        checkFiles(false, "overview-tree.html");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   103
        checkFiles(false, "pkg/package-tree.html");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   104
        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
   105
    }
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   106
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   107
    @Test
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   108
    void testStylesheetFile() {
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   109
        javadoc("-d", "out-8",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   110
                "-stylesheetfile", new File(testSrc, "custom-stylesheet.css").getAbsolutePath(),
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   111
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   112
                "pkg");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   113
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   114
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   115
        checkOutput("custom-stylesheet.css", true, "Custom javadoc style sheet");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   116
        checkOutput("pkg/Foo.html", true, "<link rel=\"stylesheet\" type=\"text/css\" "
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   117
                + "href=\"../custom-stylesheet.css\" title=\"Style\">");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   118
    }
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   119
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   120
    @Test
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   121
    void testLinkSource() {
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   122
        javadoc("-d", "out-9",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   123
                "-linksource",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   124
                "-javafx",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   125
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   126
                "-package",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   127
                "linksource");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   128
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   129
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   130
        checkOutput("linksource/AnnotationTypeField.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   131
                "<pre>@Documented\npublic @interface <a href="
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   132
                + "\"../src-html/linksource/AnnotationTypeField.html#line.31\">"
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   133
                + "AnnotationTypeField</a></pre>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   134
                "<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
   135
                + "<a href=\"../src-html/linksource/AnnotationTypeField.html#line.32\">"
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   136
                + "DEFAULT_NAME</a></pre>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   137
                "<h4>name</h4>\n<pre>java.lang.String&nbsp;<a href="
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   138
                + "\"../src-html/linksource/AnnotationTypeField.html#line.34\">name</a></pre>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   139
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   140
        checkOutput("src-html/linksource/AnnotationTypeField.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   141
                "<title>Source code</title>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   142
                "<span class=\"sourceLineNo\">031</span><a name=\"line.31\">"
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   143
                + "@Documented public @interface AnnotationTypeField {</a>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   144
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   145
        checkOutput("linksource/Properties.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   146
                "<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
   147
                + "Properties</a>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   148
                "<pre>public&nbsp;java.lang.Object <a href="
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   149
                + "\"../src-html/linksource/Properties.html#line.31\">someProperty</a></pre>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   150
                "<pre>public&nbsp;java.lang.Object&nbsp;<a href="
44297
e03f5fb3714b 8175200: Long method signatures disturb Method Summary table
bpatel
parents: 36709
diff changeset
   151
                + "\"../src-html/linksource/Properties.html#line.31\">someProperty</a>&#8203;()</pre>");
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   152
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   153
        checkOutput("src-html/linksource/Properties.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   154
                "<title>Source code</title>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   155
                "<span class=\"sourceLineNo\">031</span><a name=\"line.31\">    "
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   156
                + "public Object someProperty() {</a>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   157
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   158
        checkOutput("linksource/SomeClass.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   159
                "<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
   160
                + "SomeClass</a>\nextends java.lang.Object</pre>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   161
                "<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
   162
                + "field</a></pre>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   163
                "<pre>public&nbsp;<a href=\"../src-html/linksource/SomeClass.html#line.33\">"
44297
e03f5fb3714b 8175200: Long method signatures disturb Method Summary table
bpatel
parents: 36709
diff changeset
   164
                + "SomeClass</a>&#8203;()</pre>",
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   165
                "<pre>public&nbsp;int&nbsp;<a href=\"../src-html/linksource/SomeClass.html#line.36\">"
44297
e03f5fb3714b 8175200: Long method signatures disturb Method Summary table
bpatel
parents: 36709
diff changeset
   166
                + "method</a>&#8203;()</pre>");
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   167
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   168
        checkOutput("src-html/linksource/SomeClass.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   169
                "<title>Source code</title>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   170
                "<span class=\"sourceLineNo\">029</span><a name=\"line.29\">"
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   171
                + "public class SomeClass {</a>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   172
                "<span class=\"sourceLineNo\">031</span><a name=\"line.31\">    "
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   173
                + "public int field;</a>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   174
                "<span class=\"sourceLineNo\">033</span><a name=\"line.33\">    "
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   175
                + "public SomeClass() {</a>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   176
                "<span class=\"sourceLineNo\">036</span><a name=\"line.36\">    "
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   177
                + "public int method() {</a>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   178
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   179
        checkOutput("linksource/SomeEnum.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   180
                "<pre>public static final&nbsp;<a href=\"../linksource/SomeEnum.html\" "
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   181
                + "title=\"enum in linksource\">SomeEnum</a> <a href="
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   182
                + "\"../src-html/linksource/SomeEnum.html#line.29\">VALUE1</a></pre>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   183
                "<pre>public static final&nbsp;<a href=\"../linksource/SomeEnum.html\" "
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   184
                + "title=\"enum in linksource\">SomeEnum</a> <a href="
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   185
                + "\"../src-html/linksource/SomeEnum.html#line.30\">VALUE2</a></pre>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   186
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   187
        checkOutput("src-html/linksource/SomeEnum.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   188
                "<span class=\"sourceLineNo\">029</span><a name=\"line.29\">    VALUE1,</a>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   189
                "<span class=\"sourceLineNo\">030</span><a name=\"line.30\">    VALUE2</a>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   190
    }
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
    @Test
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   193
    void testNoQualifier() {
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   194
        javadoc("-d", "out-10",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   195
                "-noqualifier", "pkg",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   196
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   197
                "pkg", "deprecated");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   198
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   199
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   200
        checkOutput("pkg/Foo.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   201
                "<li>Foo</li>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   202
        checkOutput("deprecated/Foo.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   203
                "<li>deprecated.Foo</li>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   204
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   205
        javadoc("-d", "out-10a",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   206
                "-noqualifier", "all",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   207
                "-sourcepath", testSrc,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   208
                "pkg", "deprecated");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   209
        checkExit(Exit.OK);
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   210
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   211
        checkOutput("pkg/Foo.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   212
                "<li>Foo</li>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   213
        checkOutput("deprecated/Foo.html", true,
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   214
                "<li>Foo</li>");
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
   215
    }
19254
0988183c8164 4749567: stddoclet: Add CSS style for setting header/footer to be italic
bpatel
parents:
diff changeset
   216
}