author | bpatel |
Tue, 06 Mar 2018 10:45:47 -0800 | |
changeset 49139 | 771616d26ca1 |
parent 48756 | ce608a09a666 |
child 49551 | 0d4786e42471 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
48654
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2003, 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 |
|
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
26 |
* @bug 4131628 4664607 7025314 8023700 7198273 8025633 8026567 8081854 8150188 8151743 8196027 8182765 |
10 | 27 |
* @summary Make sure the Next/Prev Class links iterate through all types. |
28 |
* Make sure the navagation is 2 columns, not 3. |
|
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 | 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 |
19659 | 33 |
* @run main TestNavigation |
10 | 34 |
*/ |
35 |
||
19659 | 36 |
public class TestNavigation extends JavadocTester { |
10 | 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 |
TestNavigation tester = new TestNavigation(); |
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() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
45 |
javadoc("-d", "out", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
46 |
"-overview", testSrc("overview.html"), |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
47 |
"-sourcepath", testSrc, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
48 |
"pkg"); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
49 |
checkExit(Exit.OK); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
50 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
51 |
checkOutput("pkg/A.html", true, |
48756
ce608a09a666
8196027: Remove "Prev" and "Next" links from the javadoc navigation
bpatel
parents:
48654
diff
changeset
|
52 |
"<ul class=\"navList\" title=\"Navigation\">\n" + |
36705 | 53 |
"<li><a href=\"../overview-summary.html\">Overview</a></li>"); |
10 | 54 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
55 |
checkOutput("pkg/C.html", true, |
48756
ce608a09a666
8196027: Remove "Prev" and "Next" links from the javadoc navigation
bpatel
parents:
48654
diff
changeset
|
56 |
"<ul class=\"navList\" title=\"Navigation\">\n" + |
36705 | 57 |
"<li><a href=\"../overview-summary.html\">Overview</a></li>"); |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
58 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
59 |
checkOutput("pkg/E.html", true, |
48756
ce608a09a666
8196027: Remove "Prev" and "Next" links from the javadoc navigation
bpatel
parents:
48654
diff
changeset
|
60 |
"<ul class=\"navList\" title=\"Navigation\">\n" + |
36705 | 61 |
"<li><a href=\"../overview-summary.html\">Overview</a></li>"); |
10 | 62 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
63 |
checkOutput("pkg/I.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
64 |
// Test for 4664607 |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
65 |
"<div class=\"skipNav\"><a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a></div>\n" |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
66 |
+ "<a id=\"navbar.top.firstrow\">\n" |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
67 |
+ "<!-- -->\n" |
36705 | 68 |
+ "</a>", |
69 |
"<li><a href=\"../overview-summary.html\">Overview</a></li>"); |
|
36526 | 70 |
|
71 |
// Remaining tests check for additional padding to offset the fixed navigation bar. |
|
72 |
checkOutput("pkg/A.html", true, |
|
73 |
"<!-- ========= END OF TOP NAVBAR ========= -->\n" |
|
74 |
+ "</div>\n" |
|
75 |
+ "<div class=\"navPadding\"> </div>\n" |
|
43870
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
76 |
+ "<script type=\"text/javascript\"><!--\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
77 |
+ "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
78 |
+ "//-->\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
79 |
+ "</script>\n" |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
80 |
+ "</nav>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
81 |
+ "</header>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
82 |
+ "<!-- ======== START OF CLASS DATA ======== -->"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
83 |
|
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
84 |
checkOutput("pkg/package-summary.html", true, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
85 |
"<!-- ========= END OF TOP NAVBAR ========= -->\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
86 |
+ "</div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
87 |
+ "<div class=\"navPadding\"> </div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
88 |
+ "<script type=\"text/javascript\"><!--\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
89 |
+ "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
90 |
+ "//-->\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
91 |
+ "</script>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
92 |
+ "</nav>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
93 |
+ "</header>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
94 |
+ "<main role=\"main\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
95 |
+ "<div class=\"header\">"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
96 |
} |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
97 |
|
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
98 |
@Test |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
99 |
void test_html4() { |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
100 |
javadoc("-d", "out-html4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
101 |
"-html4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
102 |
"-overview", testSrc("overview.html"), |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
103 |
"-sourcepath", testSrc, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
104 |
"pkg"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
105 |
checkExit(Exit.OK); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
106 |
|
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
107 |
checkOutput("pkg/I.html", true, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
108 |
// Test for 4664607 |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
109 |
"<div class=\"skipNav\"><a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a></div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
110 |
+ "<a name=\"navbar.top.firstrow\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
111 |
+ "<!-- -->\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
112 |
+ "</a>"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
113 |
|
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
114 |
// Remaining tests check for additional padding to offset the fixed navigation bar. |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
115 |
checkOutput("pkg/A.html", true, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
116 |
"<!-- ========= END OF TOP NAVBAR ========= -->\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
117 |
+ "</div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
118 |
+ "<div class=\"navPadding\"> </div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
119 |
+ "<script type=\"text/javascript\"><!--\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
120 |
+ "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
121 |
+ "//-->\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
122 |
+ "</script>\n" |
36526 | 123 |
+ "<!-- ======== START OF CLASS DATA ======== -->"); |
124 |
||
125 |
checkOutput("pkg/package-summary.html", true, |
|
126 |
"<!-- ========= END OF TOP NAVBAR ========= -->\n" |
|
127 |
+ "</div>\n" |
|
128 |
+ "<div class=\"navPadding\"> </div>\n" |
|
43870
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
129 |
+ "<script type=\"text/javascript\"><!--\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
130 |
+ "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
131 |
+ "//-->\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
132 |
+ "</script>\n" |
36526 | 133 |
+ "<div class=\"header\">"); |
134 |
} |
|
135 |
||
136 |
// Test for checking additional padding to offset the fixed navigation bar in HTML5. |
|
137 |
@Test |
|
138 |
void test1() { |
|
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
139 |
javadoc("-d", "out-1", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
140 |
"-html5", |
36526 | 141 |
"-sourcepath", testSrc, |
142 |
"pkg"); |
|
143 |
checkExit(Exit.OK); |
|
144 |
||
145 |
checkOutput("pkg/A.html", true, |
|
146 |
"<!-- ========= END OF TOP NAVBAR ========= -->\n" |
|
147 |
+ "</div>\n" |
|
148 |
+ "<div class=\"navPadding\"> </div>\n" |
|
43870
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
149 |
+ "<script type=\"text/javascript\"><!--\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
150 |
+ "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
151 |
+ "//-->\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
152 |
+ "</script>\n" |
36526 | 153 |
+ "</nav>\n" |
154 |
+ "</header>\n" |
|
155 |
+ "<!-- ======== START OF CLASS DATA ======== -->"); |
|
156 |
||
157 |
checkOutput("pkg/package-summary.html", true, |
|
158 |
"<!-- ========= END OF TOP NAVBAR ========= -->\n" |
|
159 |
+ "</div>\n" |
|
160 |
+ "<div class=\"navPadding\"> </div>\n" |
|
43870
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
161 |
+ "<script type=\"text/javascript\"><!--\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
162 |
+ "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
163 |
+ "//-->\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
164 |
+ "</script>\n" |
36526 | 165 |
+ "</nav>"); |
166 |
} |
|
167 |
||
168 |
// Test to make sure that no extra padding for nav bar gets generated if -nonavbar is specified for HTML4. |
|
169 |
@Test |
|
170 |
void test2() { |
|
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
171 |
javadoc("-d", "out-2", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
172 |
"-nonavbar", |
36526 | 173 |
"-sourcepath", testSrc, |
174 |
"pkg"); |
|
175 |
checkExit(Exit.OK); |
|
176 |
||
177 |
checkOutput("pkg/A.html", false, |
|
178 |
"<!-- ========= END OF TOP NAVBAR ========= -->\n" |
|
179 |
+ "</div>\n" |
|
180 |
+ "<div class=\"navPadding\"> </div>\n" |
|
43870
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
181 |
+ "<script type=\"text/javascript\"><!--\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
182 |
+ "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
183 |
+ "//-->\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
184 |
+ "</script>\n" |
36526 | 185 |
+ "<!-- ======== START OF CLASS DATA ======== -->"); |
186 |
||
187 |
checkOutput("pkg/package-summary.html", false, |
|
188 |
"<!-- ========= END OF TOP NAVBAR ========= -->\n" |
|
189 |
+ "</div>\n" |
|
190 |
+ "<div class=\"navPadding\"> </div>\n" |
|
43870
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
191 |
+ "<script type=\"text/javascript\"><!--\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
192 |
+ "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
193 |
+ "//-->\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
194 |
+ "</script>\n" |
36526 | 195 |
+ "<div class=\"header\">"); |
196 |
} |
|
197 |
||
198 |
// Test to make sure that no extra padding for nav bar gets generated if -nonavbar is specified for HTML5. |
|
199 |
@Test |
|
200 |
void test3() { |
|
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
201 |
javadoc("-d", "out-3", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
202 |
"-html5", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48756
diff
changeset
|
203 |
"-nonavbar", |
36526 | 204 |
"-sourcepath", testSrc, |
205 |
"pkg"); |
|
206 |
checkExit(Exit.OK); |
|
207 |
||
208 |
checkOutput("pkg/A.html", false, |
|
209 |
"<!-- ========= END OF TOP NAVBAR ========= -->\n" |
|
210 |
+ "</div>\n" |
|
211 |
+ "<div class=\"navPadding\"> </div>\n" |
|
43870
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
212 |
+ "<script type=\"text/javascript\"><!--\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
213 |
+ "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
214 |
+ "//-->\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
215 |
+ "</script>\n" |
36526 | 216 |
+ "</nav>\n" |
217 |
+ "</header>\n" |
|
218 |
+ "<!-- ======== START OF CLASS DATA ======== -->"); |
|
219 |
||
220 |
checkOutput("pkg/package-summary.html", false, |
|
221 |
"<!-- ========= END OF TOP NAVBAR ========= -->\n" |
|
222 |
+ "</div>\n" |
|
223 |
+ "<div class=\"navPadding\"> </div>\n" |
|
43870
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
224 |
+ "<script type=\"text/javascript\"><!--\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
225 |
+ "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
226 |
+ "//-->\n" |
8805a0acaded
8151743: Header can still disappear behind the navbar
bpatel
parents:
36709
diff
changeset
|
227 |
+ "</script>\n" |
36526 | 228 |
+ "</nav>"); |
10 | 229 |
} |
230 |
} |