equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2018, 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. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4521661 8081854 |
26 * @bug 4521661 8081854 8182765 |
27 * @summary Test to make sure that there is a link with a proper anchor |
27 * @summary Test to make sure that there is a link with a proper anchor |
28 * from a serializable class to serialized-form.html. |
28 * from a serializable class to serialized-form.html. |
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 |
46 "-sourcepath", testSrc, |
46 "-sourcepath", testSrc, |
47 "pkg"); |
47 "pkg"); |
48 checkExit(Exit.OK); |
48 checkExit(Exit.OK); |
49 |
49 |
50 checkOutput("serialized-form.html", true, |
50 checkOutput("serialized-form.html", true, |
51 "<a name=\"pkg.C\">"); |
51 "<a id=\"pkg.C\">"); |
52 checkOutput("pkg/C.html", true, |
52 checkOutput("pkg/C.html", true, |
53 "<a href=\"../serialized-form.html#pkg.C\">"); |
53 "<a href=\"../serialized-form.html#pkg.C\">"); |
54 } |
54 } |
|
55 |
|
56 @Test |
|
57 void test_html4() { |
|
58 javadoc("-d", "out-html4", |
|
59 "-html4", |
|
60 "-sourcepath", testSrc, |
|
61 "pkg"); |
|
62 checkExit(Exit.OK); |
|
63 |
|
64 checkOutput("serialized-form.html", true, |
|
65 "<a name=\"pkg.C\">"); |
55 } |
66 } |
|
67 } |