author | jjg |
Fri, 21 Dec 2018 10:38:33 -0800 | |
changeset 53097 | 2e82ca64b25d |
parent 52616 | 1a395165c09b |
child 53562 | 0d9dee001667 |
permissions | -rw-r--r-- |
10 | 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 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5520 | 19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
10 | 22 |
*/ |
23 |
||
24 |
/* |
|
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 |
52616
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50167
diff
changeset
|
27 |
* 8175218 8176452 8181215 8182263 8183511 8169819 8183037 8185369 8182765 8196201 8184205 |
10 | 28 |
* @summary Run tests on doclet stylesheet. |
29 |
* @author jamieh |
|
53097 | 30 |
* @library ../../lib |
36526 | 31 |
* @modules jdk.javadoc/jdk.javadoc.internal.tool |
53097 | 32 |
* @build javadoc.tester.* |
10 | 33 |
* @run main TestStylesheet |
34 |
*/ |
|
35 |
||
53097 | 36 |
import javadoc.tester.JavadocTester; |
37 |
||
10 | 38 |
public class TestStylesheet extends JavadocTester { |
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 | 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 | 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');", |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
42831
diff
changeset
|
146 |
".navPadding {\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
42831
diff
changeset
|
147 |
+ " padding-top: 107px;\n" |
44567
126285be00b9
8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents:
44565
diff
changeset
|
148 |
+ "}", |
126285be00b9
8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents:
44565
diff
changeset
|
149 |
"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
|
150 |
+ " content:\"\";\n" |
126285be00b9
8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents:
44565
diff
changeset
|
151 |
+ " display:inline-block;\n" |
126285be00b9
8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents:
44565
diff
changeset
|
152 |
+ " position:relative;\n" |
126285be00b9
8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents:
44565
diff
changeset
|
153 |
+ " padding-top:129px;\n" |
126285be00b9
8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents:
44565
diff
changeset
|
154 |
+ " margin-top:-129px;\n" |
47954 | 155 |
+ "}", |
156 |
".searchTagResult:before, .searchTagResult:target {\n" |
|
44567
126285be00b9
8175218: The fix for JDK-8141492 broke formatting of some javadoc documentation.
bpatel
parents:
44565
diff
changeset
|
157 |
+ " color:red;\n" |
44813
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
158 |
+ "}", |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
159 |
"a[href]:hover, a[href]:focus {\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
160 |
+ " text-decoration:none;\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
161 |
+ " color:#bb7a2a;\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
162 |
+ "}", |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
163 |
"td.colFirst a:link, td.colFirst a:visited,\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
164 |
+ "td.colSecond a:link, td.colSecond a:visited,\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
165 |
+ "th.colFirst a:link, th.colFirst a:visited,\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
166 |
+ "th.colSecond a:link, th.colSecond a:visited,\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
167 |
+ "th.colConstructorName a:link, th.colConstructorName a:visited,\n" |
47299 | 168 |
+ "th.colDeprecatedItemName a:link, th.colDeprecatedItemName a:visited, \n" |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
49139
diff
changeset
|
169 |
+ ".constantValuesContainer td a:link, .constantValuesContainer td a:visited, \n" |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
49139
diff
changeset
|
170 |
+ ".allClassesContainer td a:link, .allClassesContainer td a:visited, \n" |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
49139
diff
changeset
|
171 |
+ ".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
|
172 |
+ " font-weight:bold;\n" |
47047
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
173 |
+ "}", |
47272 | 174 |
".deprecationBlock {\n" |
175 |
+ " font-size:14px;\n" |
|
176 |
+ " font-family:'DejaVu Serif', Georgia, \"Times New Roman\", Times, serif;\n" |
|
177 |
+ " border-style:solid;\n" |
|
178 |
+ " border-width:thin;\n" |
|
179 |
+ " border-radius:10px;\n" |
|
180 |
+ " padding:10px;\n" |
|
181 |
+ " margin-bottom:10px;\n" |
|
182 |
+ " margin-right:10px;\n" |
|
183 |
+ " display:inline-block;\n" |
|
184 |
+ "}", |
|
47047
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
185 |
"#reset {\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
186 |
+ " background-color: rgb(255,255,255);\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
187 |
+ " background-image:url('resources/x.png');\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
188 |
+ " background-position:center;\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
189 |
+ " background-repeat:no-repeat;\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
190 |
+ " background-size:12px;\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
191 |
+ " border:0 none;\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
192 |
+ " width:16px;\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
193 |
+ " height:17px;\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
194 |
+ " position:relative;\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
195 |
+ " left:-4px;\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
196 |
+ " top:-4px;\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
197 |
+ " font-size:0px;\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
198 |
+ "}", |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
199 |
".watermark {\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45497
diff
changeset
|
200 |
+ " color:#545454;\n" |
43870
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
42831
diff
changeset
|
201 |
+ "}"); |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
202 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
203 |
checkOutput("pkg/A.html", true, |
44813
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
204 |
// 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
|
205 |
// in the class documentation. |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
206 |
"<link rel=\"stylesheet\" type=\"text/css\" " |
44813
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
207 |
+ "href=\"../stylesheet.css\" title=\"Style\">", |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
208 |
"<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
|
209 |
+ "anchor_with_name</a> and\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
210 |
+ " 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
|
211 |
|
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
212 |
checkOutput("pkg/package-summary.html", true, |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
213 |
"<td class=\"colLast\">\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
214 |
+ "<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
|
215 |
+ "anchor_with_name</a> and\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
216 |
+ " 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
|
217 |
+ "</td>"); |
10 | 218 |
|
29429
964498d4dcec
8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents:
29428
diff
changeset
|
219 |
checkOutput("index.html", true, |
964498d4dcec
8074521: Generate iframe instead of frame and frameset for index.html page
bpatel
parents:
29428
diff
changeset
|
220 |
"<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
|
221 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
222 |
checkOutput("stylesheet.css", false, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
223 |
"* {\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
224 |
+ " margin:0;\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
225 |
+ " padding:0;\n" |
44813
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
226 |
+ "}", |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
227 |
"a:active {\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
228 |
+ " text-decoration:none;\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
229 |
+ " color:#4A6782;\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
230 |
+ "}", |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
231 |
"a[name]:hover {\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
232 |
+ " text-decoration:none;\n" |
eac0b6c86a43
8176452: Javadoc UI style issue with index in description.
bpatel
parents:
44567
diff
changeset
|
233 |
+ " color:#353833;\n" |
45497
cdf29c5063f8
8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents:
44813
diff
changeset
|
234 |
+ "}", |
cdf29c5063f8
8181215: Links incorrectly appear bold in some javadoc generated tables
bpatel
parents:
44813
diff
changeset
|
235 |
"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
|
236 |
+ "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
|
237 |
+ "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
|
238 |
+ "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
|
239 |
+ "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
|
240 |
+ "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
|
241 |
+ ".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
|
242 |
+ " font-weight:bold;\n" |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
243 |
+ "}"); |
10 | 244 |
} |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47954
diff
changeset
|
245 |
|
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47954
diff
changeset
|
246 |
@Test |
53097 | 247 |
public void test_html4() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47954
diff
changeset
|
248 |
javadoc("-d", "out-html4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47954
diff
changeset
|
249 |
"-html4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47954
diff
changeset
|
250 |
"-sourcepath", testSrc, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47954
diff
changeset
|
251 |
"pkg"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47954
diff
changeset
|
252 |
checkExit(Exit.OK); |
10 | 253 |
} |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47954
diff
changeset
|
254 |
} |