equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4496290 4985072 7006178 7068595 8016328 8050031 8048351 8081854 8071982 8162363 8175200 8186332 |
26 * @bug 4496290 4985072 7006178 7068595 8016328 8050031 8048351 8081854 8071982 8162363 8175200 8186332 |
27 * 8182765 8196202 |
27 * 8182765 8196202 8202626 |
28 * @summary A simple test to ensure class-use files are correct. |
28 * @summary A simple test to ensure class-use files are correct. |
29 * @author jamieh |
29 * @author jamieh |
30 * @library ../../lib |
30 * @library ../../lib |
31 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
31 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
32 * @build javadoc.tester.* |
32 * @build javadoc.tester.* |
37 |
37 |
38 public class TestUseOption extends JavadocTester { |
38 public class TestUseOption extends JavadocTester { |
39 |
39 |
40 public static void main(String... args) throws Exception { |
40 public static void main(String... args) throws Exception { |
41 TestUseOption tester = new TestUseOption(); |
41 TestUseOption tester = new TestUseOption(); |
42 tester.setAutomaticCheckLinks(false); // @ignore JDK-8202626 |
|
43 tester.runTests(); |
42 tester.runTests(); |
44 } |
43 } |
45 |
44 |
46 @Test |
45 @Test |
47 public void test1() { |
46 public void test1() { |
199 + "<section role=\"region\"><a id=\"unnamed.package\">" |
198 + "<section role=\"region\"><a id=\"unnamed.package\">" |
200 ); |
199 ); |
201 checkOutput("package-use.html", true, |
200 checkOutput("package-use.html", true, |
202 "<th class=\"colFirst\" scope=\"row\">" |
201 "<th class=\"colFirst\" scope=\"row\">" |
203 + "<a href=\"class-use/UsedInC.html#unnamed.package\">UsedInC</a></th>", |
202 + "<a href=\"class-use/UsedInC.html#unnamed.package\">UsedInC</a></th>", |
204 "<th class=\"colFirst\" scope=\"row\"><a href=\"#%3CUnnamed%3E\"><Unnamed></a></th>\n" |
203 "<th class=\"colFirst\" scope=\"row\"><a href=\"#unnamed.package\"><Unnamed></a></th>\n" |
205 + "<td class=\"colLast\"> </td>" |
204 + "<td class=\"colLast\"> </td>" |
206 ); |
205 ); |
207 } |
206 } |
208 |
207 |
209 @Test |
208 @Test |
217 |
216 |
218 checkOutput("class-use/UsedInC.html", true, |
217 checkOutput("class-use/UsedInC.html", true, |
219 "<li class=\"blockList\"><a name=\"unnamed.package\">" |
218 "<li class=\"blockList\"><a name=\"unnamed.package\">" |
220 ); |
219 ); |
221 checkOutput("package-use.html", true, |
220 checkOutput("package-use.html", true, |
222 "<th class=\"colFirst\" scope=\"row\"><a href=\"#-Unnamed-\"><Unnamed></a></th>\n" |
221 "<th class=\"colFirst\" scope=\"row\"><a href=\"#unnamed.package\"><Unnamed></a></th>\n" |
223 + "<td class=\"colLast\"> </td>" |
222 + "<td class=\"colLast\"> </td>" |
224 ); |
223 ); |
225 } |
224 } |
226 |
225 |
227 @Test |
226 @Test |