22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4131628 4664607 7025314 8023700 7198273 8025633 8026567 8081854 8150188 8151743 8196027 8182765 |
26 * @bug 4131628 4664607 7025314 8023700 7198273 8025633 8026567 8081854 8150188 8151743 8196027 8182765 |
27 * 8196200 8196202 |
27 * 8196200 8196202 8223378 |
28 * @summary Make sure the Next/Prev Class links iterate through all types. |
28 * @summary Make sure the Next/Prev Class links iterate through all types. |
29 * Make sure the navagation is 2 columns, not 3. |
29 * Make sure the navagation is 2 columns, not 3. |
30 * @author jamieh |
30 * @author jamieh |
31 * @library /tools/lib ../../lib |
31 * @library /tools/lib ../../lib |
32 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
32 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
83 "<li><a href=\"../index.html\">Overview</a></li>"); |
83 "<li><a href=\"../index.html\">Overview</a></li>"); |
84 |
84 |
85 // Remaining tests check for additional padding to offset the fixed navigation bar. |
85 // Remaining tests check for additional padding to offset the fixed navigation bar. |
86 checkOutput("pkg/A.html", true, |
86 checkOutput("pkg/A.html", true, |
87 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
87 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
88 + "</div>\n" |
88 + "<div class=\"skipNav\"><a id=\"skip.navbar.top\">\n" |
89 + "<div class=\"navPadding\"> </div>\n" |
89 + "<!-- -->\n" |
90 + "<script type=\"text/javascript\"><!--\n" |
90 + "</a></div>\n" |
91 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
91 + "</nav>\n" |
92 + "//-->\n" |
92 + "</header>\n" |
93 + "</script>\n" |
93 + "<div class=\"flexContent\">\n" |
94 + "</nav>\n" |
94 + "<main role=\"main\">\n" |
95 + "</header>\n" |
|
96 + "<!-- ======== START OF CLASS DATA ======== -->"); |
95 + "<!-- ======== START OF CLASS DATA ======== -->"); |
97 |
96 |
98 checkOutput("pkg/package-summary.html", true, |
97 checkOutput("pkg/package-summary.html", true, |
99 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
98 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
100 + "</div>\n" |
99 + "<div class=\"skipNav\"><a id=\"skip.navbar.top\">\n" |
101 + "<div class=\"navPadding\"> </div>\n" |
100 + "<!-- -->\n" |
102 + "<script type=\"text/javascript\"><!--\n" |
101 + "</a></div>\n" |
103 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
102 + "</nav>\n" |
104 + "//-->\n" |
103 + "</header>\n" |
105 + "</script>\n" |
104 + "<div class=\"flexContent\">\n" |
106 + "</nav>\n" |
|
107 + "</header>\n" |
|
108 + "<main role=\"main\">\n" |
105 + "<main role=\"main\">\n" |
109 + "<div class=\"header\">"); |
106 + "<div class=\"header\">"); |
110 } |
107 } |
111 |
108 |
112 // Test for checking additional padding to offset the fixed navigation bar in HTML5. |
109 // Test for checking additional padding to offset the fixed navigation bar in HTML5. |
119 checkExit(Exit.OK); |
116 checkExit(Exit.OK); |
120 checkSubNav(); |
117 checkSubNav(); |
121 |
118 |
122 checkOutput("pkg/A.html", true, |
119 checkOutput("pkg/A.html", true, |
123 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
120 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
124 + "</div>\n" |
121 + "<div class=\"skipNav\"><a id=\"skip.navbar.top\">\n" |
125 + "<div class=\"navPadding\"> </div>\n" |
122 + "<!-- -->\n" |
126 + "<script type=\"text/javascript\"><!--\n" |
123 + "</a></div>\n" |
127 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
124 + "</nav>\n" |
128 + "//-->\n" |
125 + "</header>\n" |
129 + "</script>\n" |
126 + "<div class=\"flexContent\">\n" |
130 + "</nav>\n" |
127 + "<main role=\"main\">\n" |
131 + "</header>\n" |
|
132 + "<!-- ======== START OF CLASS DATA ======== -->"); |
128 + "<!-- ======== START OF CLASS DATA ======== -->"); |
133 |
129 |
134 checkOutput("pkg/package-summary.html", true, |
130 checkOutput("pkg/package-summary.html", true, |
135 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
131 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
136 + "</div>\n" |
132 + "<div class=\"skipNav\"><a id=\"skip.navbar.top\">\n" |
137 + "<div class=\"navPadding\"> </div>\n" |
133 + "<!-- -->\n" |
138 + "<script type=\"text/javascript\"><!--\n" |
134 + "</a></div>\n" |
139 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
|
140 + "//-->\n" |
|
141 + "</script>\n" |
|
142 + "</nav>"); |
135 + "</nav>"); |
143 } |
136 } |
144 |
137 |
145 // Test to make sure that no extra padding for nav bar gets generated if -nonavbar is specified. |
138 // Test to make sure that no extra padding for nav bar gets generated if -nonavbar is specified. |
146 @Test |
139 @Test |
153 checkSubNav(); |
146 checkSubNav(); |
154 |
147 |
155 checkOutput("pkg/A.html", false, |
148 checkOutput("pkg/A.html", false, |
156 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
149 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
157 + "</div>\n" |
150 + "</div>\n" |
158 + "<div class=\"navPadding\"> </div>\n" |
151 + "<div class=\"skipNav\"><a id=\"skip.navbar.top\">\n" |
159 + "<script type=\"text/javascript\"><!--\n" |
152 + "<!-- -->\n" |
160 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
153 + "</a></div>\n" |
161 + "//-->\n" |
|
162 + "</script>\n" |
|
163 + "</nav>\n" |
154 + "</nav>\n" |
164 + "</header>\n" |
155 + "</header>\n" |
165 + "<!-- ======== START OF CLASS DATA ======== -->"); |
156 + "<!-- ======== START OF CLASS DATA ======== -->"); |
166 |
157 |
167 checkOutput("pkg/package-summary.html", false, |
158 checkOutput("pkg/package-summary.html", false, |
168 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
159 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
169 + "</div>\n" |
160 + "</div>\n" |
170 + "<div class=\"navPadding\"> </div>\n" |
161 + "<div class=\"skipNav\"><a id=\"skip.navbar.top\">\n" |
171 + "<script type=\"text/javascript\"><!--\n" |
162 + "<!-- -->\n" |
172 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
163 + "</a></div>\n" |
173 + "//-->\n" |
|
174 + "</script>\n" |
|
175 + "</nav>"); |
164 + "</nav>"); |
176 } |
165 } |
177 |
166 |
178 @Test |
167 @Test |
179 public void test3(Path base) throws IOException { |
168 public void test3(Path base) throws IOException { |