equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2017, 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 4637604 4775148 |
26 * @bug 4637604 4775148 8183037 |
27 * @summary Test the tables for summary attribute |
27 * @summary Test the tables for summary attribute |
28 * @author dkramer |
28 * @author dkramer |
29 * @library ../lib |
29 * @library ../lib |
30 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
30 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
31 * @build JavadocTester |
31 * @build JavadocTester |
46 @Test |
46 @Test |
47 void testAccessSummary() { |
47 void testAccessSummary() { |
48 javadoc("-d", "out", "-sourcepath", testSrc, "p1", "p2"); |
48 javadoc("-d", "out", "-sourcepath", testSrc, "p1", "p2"); |
49 checkExit(Exit.OK); |
49 checkExit(Exit.OK); |
50 checkOutput("overview-summary.html", true, |
50 checkOutput("overview-summary.html", true, |
51 "summary=\"Packages table, listing packages, and an explanation\""); |
51 "summary=\"Package Summary table, listing packages, and an explanation\""); |
52 |
52 |
53 // Test that the summary attribute appears |
53 // Test that the summary attribute appears |
54 checkOutput("p1/C1.html", true, |
54 checkOutput("p1/C1.html", true, |
55 "summary=\"Constructor Summary table, listing constructors, and an explanation\""); |
55 "summary=\"Constructor Summary table, listing constructors, and an explanation\""); |
56 |
56 |