author | akulyakh |
Thu, 21 May 2015 11:41:04 -0700 | |
changeset 30730 | d3ce7619db2c |
parent 29957 | 7740f9657f56 |
permissions | -rw-r--r-- |
20613
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
1 |
/* |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25295
diff
changeset
|
2 |
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
20613
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
4 |
* |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
8 |
* |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
13 |
* accompanied this code). |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
14 |
* |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
18 |
* |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
21 |
* questions. |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
22 |
*/ |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
23 |
|
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
24 |
/* |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
25 |
* @test |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
26 |
* @bug 8008164 |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
27 |
* @summary Test styles on HTML tables generated by javadoc. |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
28 |
* @author Bhavesh Patel |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
29 |
* @library ../lib |
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
29957
diff
changeset
|
30 |
* @modules jdk.javadoc |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
31 |
* @build JavadocTester |
20613
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
32 |
* @run main TestHtmlTableStyles |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
33 |
*/ |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
34 |
|
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
35 |
public class TestHtmlTableStyles extends JavadocTester { |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
36 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
37 |
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
|
38 |
TestHtmlTableStyles tester = new TestHtmlTableStyles(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
39 |
tester.runTests(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
40 |
} |
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 |
@Test |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
43 |
void test() { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
44 |
javadoc("-d", "out", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
45 |
"-sourcepath", testSrc, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
46 |
"-use", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
47 |
"pkg1", "pkg2"); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
48 |
checkExit(Exit.OK); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
49 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
50 |
checkOutput("pkg1/TestTable.html", true, |
25295
bb0339807d3c
8048168: update 2 javadoc tests to add summary attribute for table tag
sogoel
parents:
24399
diff
changeset
|
51 |
"<table summary=\"Summary\" border cellpadding=3 cellspacing=1>", |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25295
diff
changeset
|
52 |
"<table class=\"memberSummary\" summary=\"Field Summary table, listing fields, " |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
53 |
+ "and an explanation\">", |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25295
diff
changeset
|
54 |
"<table class=\"memberSummary\" summary=\"Constructor Summary table, listing " |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
55 |
+ "constructors, and an explanation\">", |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25295
diff
changeset
|
56 |
"<table class=\"memberSummary\" summary=\"Method Summary table, listing methods, " |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
57 |
+ "and an explanation\">"); |
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("pkg1/package-summary.html", true, |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25295
diff
changeset
|
60 |
"<table class=\"typeSummary\" summary=\"Class Summary table, listing classes, " |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
61 |
+ "and an explanation\">"); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
62 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
63 |
checkOutput("pkg1/class-use/TestTable.html", true, |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25295
diff
changeset
|
64 |
"<table class=\"useSummary\" summary=\"Use table, listing fields, and an explanation\">"); |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
65 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
66 |
checkOutput("overview-summary.html", true, |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25295
diff
changeset
|
67 |
"<table class=\"overviewSummary\" " |
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25295
diff
changeset
|
68 |
+ "summary=\"Packages table, listing packages, and an explanation\">"); |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
69 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
70 |
checkOutput("deprecated-list.html", true, |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25295
diff
changeset
|
71 |
"<table class=\"deprecatedSummary\" summary=\"Deprecated Methods table, listing " + |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
72 |
"deprecated methods, and an explanation\">"); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
73 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
74 |
checkOutput("constant-values.html", true, |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25295
diff
changeset
|
75 |
"<table class=\"constantsSummary\" summary=\"Constant Field Values table, listing " + |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
76 |
"constant fields, and values\">"); |
20613
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
77 |
} |
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff
changeset
|
78 |
} |