test/langtools/jdk/javadoc/doclet/testStylesheet/TestStylesheet.java
author bpatel
Tue, 06 Mar 2018 10:45:47 -0800
changeset 49139 771616d26ca1
parent 47954 3148be499e41
child 50167 cc705c956798
permissions -rw-r--r--
8182765: HTML5 must be the default javadoc codegen mode in the near future Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
     2
 * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    21
 * questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    22
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    23
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
/*
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
 * @test
44565
41071e253324 8177417: Constructor Summary readability problems in jdk9 javadoc
bpatel
parents: 43870
diff changeset
    26
 * @bug      4494033 7028815 7052425 8007338 8023608 8008164 8016549 8072461 8154261 8162363 8160196 8151743 8177417
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
    27
 *           8175218 8176452 8181215 8182263 8183511 8169819 8183037 8185369 8182765
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
 * @summary  Run tests on doclet stylesheet.
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
 * @author   jamieh
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    30
 * @library  ../lib
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    31
 * @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
    32
 * @build    JavadocTester
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
 * @run main TestStylesheet
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
public class TestStylesheet extends JavadocTester {
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    38
    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
    39
        TestStylesheet tester = new TestStylesheet();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    40
        tester.runTests();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    41
    }
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    42
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    43
    @Test
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    44
    void test() {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    45
        javadoc("-d", "out",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    46
                "-sourcepath", testSrc,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    47
                "pkg");
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
    48
        checkExit(Exit.ERROR);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
    49
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
    50
        checkOutput(Output.OUT, true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
    51
                "attribute not supported in HTML5: name");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    53
        // TODO: most of this test seems a bit silly, since javadoc is simply
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    54
        // copying in the stylesheet from the source directory
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    55
        checkOutput("stylesheet.css", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    56
                "body {\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    57
                + "    background-color:#ffffff;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    58
                + "    color:#353833;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    59
                + "    font-family:'DejaVu Sans', Arial, Helvetica, sans-serif;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    60
                + "    font-size:14px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    61
                + "    margin:0;\n"
29429
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    62
                + "    padding:0;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    63
                + "    height:100%;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    64
                + "    width:100%;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    65
                + "}",
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    66
                "iframe {\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    67
                + "    margin:0;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    68
                + "    padding:0;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    69
                + "    height:100%;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    70
                + "    width:100%;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    71
                + "    overflow-y:scroll;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    72
                + "    border:none;\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    73
                + "}",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    74
                "ul {\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    75
                + "    list-style-type:disc;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    76
                + "}",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    77
                ".overviewSummary caption, .memberSummary caption, .typeSummary caption,\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
    78
                + ".useSummary caption, .constantsSummary caption, .deprecatedSummary caption,\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
    79
                + ".requiresSummary caption, .packagesSummary caption, .providesSummary caption, .usesSummary caption {\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    80
                + "    position:relative;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    81
                + "    text-align:left;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    82
                + "    background-repeat:no-repeat;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    83
                + "    color:#253441;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    84
                + "    font-weight:bold;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    85
                + "    clear:none;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    86
                + "    overflow:hidden;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    87
                + "    padding:0px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    88
                + "    padding-top:10px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    89
                + "    padding-left:1px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    90
                + "    margin:0px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    91
                + "    white-space:pre;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    92
                + "}",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    93
                ".overviewSummary caption span, .memberSummary caption span, .typeSummary caption span,\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
    94
                + ".useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span,\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
    95
                + ".requiresSummary caption span, .packagesSummary caption span, .providesSummary caption span,\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
    96
                + ".usesSummary caption span {\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    97
                + "    white-space:nowrap;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    98
                + "    padding-top:5px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    99
                + "    padding-left:12px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   100
                + "    padding-right:12px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   101
                + "    padding-bottom:7px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   102
                + "    display:inline-block;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   103
                + "    float:left;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   104
                + "    background-color:#F8981D;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   105
                + "    border: none;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   106
                + "    height:16px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   107
                + "}",
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47299
diff changeset
   108
                ".memberSummary caption span.activeTableTab span, .packagesSummary caption span.activeTableTab span,\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47299
diff changeset
   109
                + ".overviewSummary caption span.activeTableTab span {\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   110
                + "    white-space:nowrap;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   111
                + "    padding-top:5px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   112
                + "    padding-left:12px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   113
                + "    padding-right:12px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   114
                + "    margin-right:3px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   115
                + "    display:inline-block;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   116
                + "    float:left;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   117
                + "    background-color:#F8981D;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   118
                + "    height:16px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   119
                + "}",
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47299
diff changeset
   120
                ".memberSummary caption span.tableTab span, .packagesSummary caption span.tableTab span,\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47299
diff changeset
   121
                + ".overviewSummary caption span.tableTab span {\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   122
                + "    white-space:nowrap;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   123
                + "    padding-top:5px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   124
                + "    padding-left:12px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   125
                + "    padding-right:12px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   126
                + "    margin-right:3px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   127
                + "    display:inline-block;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   128
                + "    float:left;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   129
                + "    background-color:#4D7A97;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   130
                + "    height:16px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   131
                + "}",
29428
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   132
                // Test the formatting styles for proper content display in use and constant values pages.
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   133
                ".overviewSummary td.colFirst, .overviewSummary th.colFirst,\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
   134
                + ".requiresSummary td.colFirst, .requiresSummary th.colFirst,\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
   135
                + ".packagesSummary td.colFirst, .packagesSummary td.colSecond, .packagesSummary th.colFirst, .packagesSummary th,\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
   136
                + ".usesSummary td.colFirst, .usesSummary th.colFirst,\n"
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 41157
diff changeset
   137
                + ".providesSummary td.colFirst, .providesSummary th.colFirst,\n"
29428
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   138
                + ".memberSummary td.colFirst, .memberSummary th.colFirst,\n"
44565
41071e253324 8177417: Constructor Summary readability problems in jdk9 javadoc
bpatel
parents: 43870
diff changeset
   139
                + ".memberSummary td.colSecond, .memberSummary th.colSecond, .memberSummary th.colConstructorName,\n"
41071e253324 8177417: Constructor Summary readability problems in jdk9 javadoc
bpatel
parents: 43870
diff changeset
   140
                + ".typeSummary td.colFirst {\n"
29428
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   141
                + "    vertical-align:top;\n"
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   142
                + "}",
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   143
                ".overviewSummary td, .memberSummary td, .typeSummary td,\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
   144
                + ".useSummary td, .constantsSummary td, .deprecatedSummary td,\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
   145
                + ".requiresSummary td, .packagesSummary td, .providesSummary td, .usesSummary td {\n"
29428
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   146
                + "    text-align:left;\n"
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   147
                + "    padding:0px 0px 12px 10px;\n"
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   148
                + "}",
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 41157
diff changeset
   149
                ".memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab,\n"
47447
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47299
diff changeset
   150
                + ".packagesSummary caption span.tableTab, .packagesSummary caption span.activeTableTab,\n"
9887d1bc3e9c 8183037: Overview summary page should have a table with tabs for groups
bpatel
parents: 47299
diff changeset
   151
                + ".overviewSummary caption span.tableTab, .overviewSummary caption span.activeTableTab {\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   152
                + "    padding-top:0px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   153
                + "    padding-left:0px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   154
                + "    padding-right:0px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   155
                + "    background-image:none;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   156
                + "    float:none;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   157
                + "    display:inline;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   158
                + "}",
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 42831
diff changeset
   159
                "@import url('resources/fonts/dejavu.css');",
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 42831
diff changeset
   160
                ".navPadding {\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 42831
diff changeset
   161
                + "    padding-top: 107px;\n"
44567
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44565
diff changeset
   162
                + "}",
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44565
diff changeset
   163
                "a[name]:before, a[name]:target, a[id]:before, a[id]:target {\n"
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44565
diff changeset
   164
                + "    content:\"\";\n"
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44565
diff changeset
   165
                + "    display:inline-block;\n"
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44565
diff changeset
   166
                + "    position:relative;\n"
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44565
diff changeset
   167
                + "    padding-top:129px;\n"
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44565
diff changeset
   168
                + "    margin-top:-129px;\n"
47954
3148be499e41 8185369: Clean up the javadoc stylesheet
bpatel
parents: 47447
diff changeset
   169
                + "}",
3148be499e41 8185369: Clean up the javadoc stylesheet
bpatel
parents: 47447
diff changeset
   170
                ".searchTagResult:before, .searchTagResult:target {\n"
44567
126285be00b9 8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents: 44565
diff changeset
   171
                + "    color:red;\n"
44813
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   172
                + "}",
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   173
                "a[href]:hover, a[href]:focus {\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   174
                + "    text-decoration:none;\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   175
                + "    color:#bb7a2a;\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   176
                + "}",
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   177
                "td.colFirst a:link, td.colFirst a:visited,\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   178
                + "td.colSecond a:link, td.colSecond a:visited,\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   179
                + "th.colFirst a:link, th.colFirst a:visited,\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   180
                + "th.colSecond a:link, th.colSecond a:visited,\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   181
                + "th.colConstructorName a:link, th.colConstructorName a:visited,\n"
47299
56419ec66d4e 8169819: minor cleanup for deprecated page
bpatel
parents: 47272
diff changeset
   182
                + "th.colDeprecatedItemName a:link, th.colDeprecatedItemName a:visited, \n"
44813
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   183
                + ".constantValuesContainer td a:link, .constantValuesContainer td a:visited {\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   184
                + "    font-weight:bold;\n"
47047
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   185
                + "}",
47272
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   186
                ".deprecationBlock {\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   187
                + "    font-size:14px;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   188
                + "    font-family:'DejaVu Serif', Georgia, \"Times New Roman\", Times, serif;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   189
                + "    border-style:solid;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   190
                + "    border-width:thin;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   191
                + "    border-radius:10px;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   192
                + "    padding:10px;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   193
                + "    margin-bottom:10px;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   194
                + "    margin-right:10px;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   195
                + "    display:inline-block;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   196
                + "}",
47047
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   197
                "#reset {\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   198
                + "    background-color: rgb(255,255,255);\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   199
                + "    background-image:url('resources/x.png');\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   200
                + "    background-position:center;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   201
                + "    background-repeat:no-repeat;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   202
                + "    background-size:12px;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   203
                + "    border:0 none;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   204
                + "    width:16px;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   205
                + "    height:17px;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   206
                + "    position:relative;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   207
                + "    left:-4px;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   208
                + "    top:-4px;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   209
                + "    font-size:0px;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   210
                + "}",
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   211
                ".watermark {\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   212
                + "    color:#545454;\n"
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 42831
diff changeset
   213
                + "}");
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   214
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   215
        checkOutput("pkg/A.html", true,
44813
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   216
                // Test whether a link to the stylesheet file is inserted properly
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   217
                // in the class documentation.
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   218
                "<link rel=\"stylesheet\" type=\"text/css\" "
44813
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   219
                + "href=\"../stylesheet.css\" title=\"Style\">",
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   220
                "<div class=\"block\">Test comment for a class which has an <a name=\"named_anchor\">"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   221
                + "anchor_with_name</a> and\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   222
                + " an <a id=\"named_anchor1\">anchor_with_id</a>.</div>");
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   223
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   224
        checkOutput("pkg/package-summary.html", true,
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   225
                "<td class=\"colLast\">\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   226
                + "<div class=\"block\">Test comment for a class which has an <a name=\"named_anchor\">"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   227
                + "anchor_with_name</a> and\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   228
                + " an <a id=\"named_anchor1\">anchor_with_id</a>.</div>\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   229
                + "</td>");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
29429
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
   231
        checkOutput("index.html", true,
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
   232
                "<link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheet.css\" title=\"Style\">");
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
   233
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   234
        checkOutput("stylesheet.css", false,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   235
                "* {\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   236
                + "    margin:0;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   237
                + "    padding:0;\n"
44813
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   238
                + "}",
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   239
                "a:active {\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   240
                + "    text-decoration:none;\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   241
                + "    color:#4A6782;\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   242
                + "}",
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   243
                "a[name]:hover {\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   244
                + "    text-decoration:none;\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   245
                + "    color:#353833;\n"
45497
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   246
                + "}",
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   247
                "td.colFirst a:link, td.colFirst a:visited,\n"
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   248
                + "td.colSecond a:link, td.colSecond a:visited,\n"
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   249
                + "th.colFirst a:link, th.colFirst a:visited,\n"
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   250
                + "th.colSecond a:link, th.colSecond a:visited,\n"
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   251
                + "th.colConstructorName a:link, th.colConstructorName a:visited,\n"
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   252
                + "td.colLast a:link, td.colLast a:visited,\n"
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   253
                + ".constantValuesContainer td a:link, .constantValuesContainer td a:visited {\n"
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   254
                + "    font-weight:bold;\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   255
                + "}");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
    }
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
   257
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
   258
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
   259
    void test_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
   260
        javadoc("-d", "out-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
   261
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
   262
                "-sourcepath", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
   263
                "pkg");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
   264
        checkExit(Exit.OK);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
}
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
   266
}