test/langtools/jdk/javadoc/doclet/testStylesheet/TestStylesheet.java
author hannesw
Wed, 27 Nov 2019 13:08:16 +0100
changeset 59294 48b88b9c11eb
parent 55197 0ca8e495bbba
permissions -rw-r--r--
8223378: CSS solution for navbar problem with <a> elements is not ideal Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
53562
0d9dee001667 8215577: Remove javadoc support for HTML 4
pmuthuswamy
parents: 53097
diff changeset
     2
 * Copyright (c) 2005, 2019, 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
59294
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 55197
diff changeset
    27
 *           8175218 8176452 8181215 8182263 8183511 8169819 8183037 8185369 8182765 8196201 8184205 8223378
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
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 52616
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: 52616
diff changeset
    32
 * @build    javadoc.tester.*
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
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 52616
diff changeset
    36
import javadoc.tester.JavadocTester;
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 52616
diff changeset
    37
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
public class TestStylesheet extends JavadocTester {
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    40
    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
    41
        TestStylesheet tester = new TestStylesheet();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    42
        tester.runTests();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    43
    }
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    44
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    45
    @Test
53097
2e82ca64b25d 8215516: Move JavadocTester to a named package
jjg
parents: 52616
diff changeset
    46
    public void test() {
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    47
        javadoc("-d", "out",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    48
                "-sourcepath", testSrc,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    49
                "pkg");
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
    50
        checkExit(Exit.ERROR);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
    51
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
    52
        checkOutput(Output.OUT, true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 47954
diff changeset
    53
                "attribute not supported in HTML5: name");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    55
        // 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
    56
        // 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
    57
        checkOutput("stylesheet.css", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    58
                "body {\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    59
                + "    background-color:#ffffff;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    60
                + "    color:#353833;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    61
                + "    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
    62
                + "    font-size:14px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    63
                + "    margin:0;\n"
29429
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    64
                + "    padding:0;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    65
                + "    height:100%;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    66
                + "    width:100%;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    67
                + "}",
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    68
                "iframe {\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    69
                + "    margin:0;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    70
                + "    padding:0;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    71
                + "    height:100%;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    72
                + "    width:100%;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    73
                + "    overflow-y:scroll;\n"
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
    74
                + "    border:none;\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    75
                + "}",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    76
                "ul {\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    77
                + "    list-style-type:disc;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    78
                + "}",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    79
                ".overviewSummary caption, .memberSummary caption, .typeSummary caption,\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
    80
                + ".useSummary caption, .constantsSummary caption, .deprecatedSummary caption,\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
    81
                + ".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
    82
                + "    position:relative;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    83
                + "    text-align:left;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    84
                + "    background-repeat:no-repeat;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    85
                + "    color:#253441;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    86
                + "    font-weight:bold;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    87
                + "    clear:none;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    88
                + "    overflow:hidden;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    89
                + "    padding:0px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    90
                + "    padding-top:10px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    91
                + "    padding-left:1px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    92
                + "    margin:0px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    93
                + "    white-space:pre;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    94
                + "}",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    95
                ".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
    96
                + ".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
    97
                + ".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
    98
                + ".usesSummary caption span {\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    99
                + "    white-space:nowrap;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   100
                + "    padding-top:5px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   101
                + "    padding-left:12px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   102
                + "    padding-right:12px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   103
                + "    padding-bottom:7px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   104
                + "    display:inline-block;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   105
                + "    float:left;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   106
                + "    background-color:#F8981D;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   107
                + "    border: none;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   108
                + "    height:16px;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   109
                + "}",
52616
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   110
                ".overviewSummary [role=tablist] button, .memberSummary [role=tablist] button,\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   111
                + ".typeSummary [role=tablist] button, .packagesSummary [role=tablist] button {\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   112
                + "   border: none;\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   113
                + "   cursor: pointer;\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   114
                + "   padding: 5px 12px 7px 12px;\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   115
                + "   font-weight: bold;\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   116
                + "   margin-right: 3px;\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   117
                + "}",
52616
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   118
                ".overviewSummary [role=tablist] .activeTableTab, .memberSummary [role=tablist] .activeTableTab,\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   119
                + ".typeSummary [role=tablist] .activeTableTab, .packagesSummary [role=tablist] .activeTableTab {\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   120
                + "   background: #F8981D;\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   121
                + "   color: #253441;\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   122
                + "}",
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   123
                ".overviewSummary [role=tablist] .tableTab, .memberSummary [role=tablist] .tableTab,\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   124
                + ".typeSummary [role=tablist] .tableTab, .packagesSummary [role=tablist] .tableTab {\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   125
                + "   background: #4D7A97;\n"
1a395165c09b 8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents: 50167
diff changeset
   126
                + "   color: #FFFFFF;\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   127
                + "}",
29428
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   128
                // 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
   129
                ".overviewSummary td.colFirst, .overviewSummary th.colFirst,\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
   130
                + ".requiresSummary td.colFirst, .requiresSummary th.colFirst,\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
   131
                + ".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
   132
                + ".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
   133
                + ".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
   134
                + ".memberSummary td.colFirst, .memberSummary th.colFirst,\n"
44565
41071e253324 8177417: Constructor Summary readability problems in jdk9 javadoc
bpatel
parents: 43870
diff changeset
   135
                + ".memberSummary td.colSecond, .memberSummary th.colSecond, .memberSummary th.colConstructorName,\n"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 49139
diff changeset
   136
                + ".typeSummary td.colFirst, .typeSummary 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
   137
                + "    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
   138
                + "}",
f720ab1e8427 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
bpatel
parents: 24399
diff changeset
   139
                ".overviewSummary td, .memberSummary td, .typeSummary td,\n"
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
   140
                + ".useSummary td, .constantsSummary td, .deprecatedSummary td,\n"
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 36526
diff changeset
   141
                + ".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
   142
                + "    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
   143
                + "    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
   144
                + "}",
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 42831
diff changeset
   145
                "@import url('resources/fonts/dejavu.css');",
59294
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 55197
diff changeset
   146
                ".searchTagResult:target {\n"
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 55197
diff changeset
   147
                + "    background-color:yellow;\n"
44813
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   148
                + "}",
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   149
                "a[href]:hover, a[href]:focus {\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   150
                + "    text-decoration:none;\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   151
                + "    color:#bb7a2a;\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   152
                + "}",
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   153
                "td.colFirst a:link, td.colFirst a:visited,\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   154
                + "td.colSecond a:link, td.colSecond a:visited,\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   155
                + "th.colFirst a:link, th.colFirst a:visited,\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   156
                + "th.colSecond a:link, th.colSecond a:visited,\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   157
                + "th.colConstructorName a:link, th.colConstructorName a:visited,\n"
55197
0ca8e495bbba 8214126: Method signatures not formatted correctly in browser
hannesw
parents: 53562
diff changeset
   158
                + "th.colDeprecatedItemName a:link, th.colDeprecatedItemName a:visited,\n"
0ca8e495bbba 8214126: Method signatures not formatted correctly in browser
hannesw
parents: 53562
diff changeset
   159
                + ".constantValuesContainer td a:link, .constantValuesContainer td a:visited,\n"
0ca8e495bbba 8214126: Method signatures not formatted correctly in browser
hannesw
parents: 53562
diff changeset
   160
                + ".allClassesContainer td a:link, .allClassesContainer td a:visited,\n"
50167
cc705c956798 8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents: 49139
diff changeset
   161
                + ".allPackagesContainer td a:link, .allPackagesContainer td a:visited {\n"
44813
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   162
                + "    font-weight:bold;\n"
47047
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   163
                + "}",
47272
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   164
                ".deprecationBlock {\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   165
                + "    font-size:14px;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   166
                + "    font-family:'DejaVu Serif', Georgia, \"Times New Roman\", Times, serif;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   167
                + "    border-style:solid;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   168
                + "    border-width:thin;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   169
                + "    border-radius:10px;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   170
                + "    padding:10px;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   171
                + "    margin-bottom:10px;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   172
                + "    margin-right:10px;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   173
                + "    display:inline-block;\n"
e0d686cdf608 8183511: improve style for deprecated text
bpatel
parents: 47216
diff changeset
   174
                + "}",
47047
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   175
                "#reset {\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   176
                + "    background-color: rgb(255,255,255);\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   177
                + "    background-image:url('resources/x.png');\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   178
                + "    background-position:center;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   179
                + "    background-repeat:no-repeat;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   180
                + "    background-size:12px;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   181
                + "    border:0 none;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   182
                + "    width:16px;\n"
59294
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 55197
diff changeset
   183
                + "    height:16px;\n"
47047
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   184
                + "    position:relative;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   185
                + "    left:-4px;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   186
                + "    top:-4px;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   187
                + "    font-size:0px;\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   188
                + "}",
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   189
                ".watermark {\n"
91082c3c1d05 8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents: 45497
diff changeset
   190
                + "    color:#545454;\n"
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 42831
diff changeset
   191
                + "}");
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   192
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   193
        checkOutput("pkg/A.html", true,
44813
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   194
                // 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
   195
                // in the class documentation.
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   196
                "<link rel=\"stylesheet\" type=\"text/css\" "
44813
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   197
                + "href=\"../stylesheet.css\" title=\"Style\">",
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   198
                "<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
   199
                + "anchor_with_name</a> and\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   200
                + " 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
   201
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   202
        checkOutput("pkg/package-summary.html", true,
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   203
                "<td class=\"colLast\">\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   204
                + "<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
   205
                + "anchor_with_name</a> and\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   206
                + " 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
   207
                + "</td>");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
29429
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
   209
        checkOutput("index.html", true,
964498d4dcec 8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents: 29428
diff changeset
   210
                "<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
   211
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   212
        checkOutput("stylesheet.css", false,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   213
                "* {\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   214
                + "    margin:0;\n"
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   215
                + "    padding:0;\n"
44813
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   216
                + "}",
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   217
                "a:active {\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   218
                + "    text-decoration:none;\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   219
                + "    color:#4A6782;\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   220
                + "}",
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   221
                "a[name]:hover {\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   222
                + "    text-decoration:none;\n"
eac0b6c86a43 8176452: Javadoc UI style issue with index in description.
bpatel
parents: 44567
diff changeset
   223
                + "    color:#353833;\n"
45497
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   224
                + "}",
cdf29c5063f8 8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents: 44813
diff changeset
   225
                "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
   226
                + "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
   227
                + "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
   228
                + "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
   229
                + "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
   230
                + "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
   231
                + ".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
   232
                + "    font-weight:bold;\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   233
                + "}");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
}