author | bpatel |
Fri, 18 Oct 2013 16:34:42 -0700 | |
changeset 21478 | fa4c7cda1b41 |
parent 20613 | ab4801a53abb |
child 21494 | eb34dbccfb60 |
permissions | -rw-r--r-- |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
1 |
/* |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
2 |
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
4 |
* |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
8 |
* |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
13 |
* accompanied this code). |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
14 |
* |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
18 |
* |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
21 |
* questions. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
22 |
*/ |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
23 |
|
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
24 |
/* |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
25 |
* @test |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
20613
diff
changeset
|
26 |
* @bug 8006124 8009684 8016921 8023700 8024096 8008164 8026567 |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
27 |
* @summary Test javadoc support for profiles. |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
28 |
* @author Bhavesh Patel, Evgeniya Stepanova |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
29 |
* @library ../lib/ |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
30 |
* @build JavadocTester TestProfiles |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
31 |
* @run main TestProfiles |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
32 |
*/ |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
33 |
public class TestProfiles extends JavadocTester { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
34 |
|
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
35 |
//Test information. |
19499
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
36 |
private static final String BUG_ID = "8006124-8009684-8016921"; |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
37 |
private static final String PROFILE_BUG_ID = BUG_ID + "-1"; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
38 |
private static final String PACKAGE_BUG_ID = BUG_ID + "-2"; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
39 |
//Javadoc arguments. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
40 |
private static final String[] ARGS1 = new String[]{ |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
41 |
"-d", PROFILE_BUG_ID, "-sourcepath", SRC_DIR, "-Xprofilespath", |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
42 |
SRC_DIR + FS + "profile-rtjar-includes.txt", "pkg1", "pkg2", |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
43 |
"pkg3", "pkg4", "pkg5", "pkgDeprecated" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
44 |
}; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
45 |
private static final String[] ARGS2 = new String[]{ |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
46 |
"-d", PACKAGE_BUG_ID, "-sourcepath", SRC_DIR, "pkg1", "pkg2", "pkg3", "pkg4", "pkg5" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
47 |
}; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
48 |
//Input for string tests for profiles. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
49 |
private static final String[][] PROFILES_TEST = { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
50 |
// Tests for profile-overview-frame.html listing all profiles. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
51 |
{PROFILE_BUG_ID + FS + "profile-overview-frame.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
52 |
"<span><a href=\"overview-frame.html\" " |
19907 | 53 |
+ "target=\"packageListFrame\">All Packages</a></span>" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
54 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
55 |
{PROFILE_BUG_ID + FS + "profile-overview-frame.html", |
16547
3dd72ee2623d
8009684: Default top left frame should be "All Packages" in the generated javadoc documentation
bpatel
parents:
15723
diff
changeset
|
56 |
"<li><a href=\"compact1-frame.html\" target=\"packageListFrame\">" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
57 |
+ "compact1</a></li>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
58 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
59 |
// Tests for profileName-frame.html listing all packages in a profile. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
60 |
{PROFILE_BUG_ID + FS + "compact2-frame.html", |
16547
3dd72ee2623d
8009684: Default top left frame should be "All Packages" in the generated javadoc documentation
bpatel
parents:
15723
diff
changeset
|
61 |
"<span><a href=\"overview-frame.html\" target=\"packageListFrame\">" |
19907 | 62 |
+ "All Packages</a></span><span><a href=\"profile-overview-frame.html\" " |
63 |
+ "target=\"packageListFrame\">All Profiles</a></span>" |
|
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
64 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
65 |
{PROFILE_BUG_ID + FS + "compact2-frame.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
66 |
"<li><a href=\"pkg4/compact2-package-frame.html\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
67 |
+ "target=\"packageFrame\">pkg4</a></li>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
68 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
69 |
// Test for profileName-package-frame.html listing all types in a |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
70 |
// package of a profile. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
71 |
{PROFILE_BUG_ID + FS + "pkg2" + FS + "compact2-package-frame.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
72 |
"<a href=\"../compact2-summary.html\" target=\"classFrame\">" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
73 |
+ "compact2</a> - <a href=\"../pkg2/compact2-package-summary.html\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
74 |
+ "target=\"classFrame\">pkg2</a>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
75 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
76 |
// Tests for profileName-summary.html listing the summary for a profile. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
77 |
{PROFILE_BUG_ID + FS + "compact2-summary.html", |
19907 | 78 |
"<li><a href=\"compact1-summary.html\">Prev Profile</a></li>" + NL |
79 |
+ "<li><a href=\"compact3-summary.html\">Next Profile</a></li>" |
|
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
80 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
81 |
{PROFILE_BUG_ID + FS + "compact2-summary.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
82 |
"<h1 title=\"Profile\" class=\"title\">Profile compact2</h1>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
83 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
84 |
{PROFILE_BUG_ID + FS + "compact2-summary.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
85 |
"<h3><a href=\"pkg2/compact2-package-summary.html\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
86 |
+ "target=\"classFrame\">pkg2</a></h3>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
87 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
88 |
// Tests for profileName-package-summary.html listing the summary for a |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
89 |
// package in a profile. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
90 |
{PROFILE_BUG_ID + FS + "pkg5" + FS + "compact3-package-summary.html", |
19907 | 91 |
"<li><a href=\"../pkg4/compact3-package-summary.html\">Prev Package" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
92 |
+ "</a></li>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
93 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
94 |
{PROFILE_BUG_ID + FS + "pkg5" + FS + "compact3-package-summary.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
95 |
"<div class=\"subTitle\">compact3</div>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
96 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
97 |
//Test for "overview-frame.html" showing the "All Profiles" link. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
98 |
{PROFILE_BUG_ID + FS + "overview-frame.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
99 |
"<span><a href=\"profile-overview-frame.html\" " |
19907 | 100 |
+ "target=\"packageListFrame\">All Profiles</a></span>" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
101 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
102 |
//Test for "className.html" showing the profile information for the type. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
103 |
{PROFILE_BUG_ID + FS + "pkg2" + FS + "Class1Pkg2.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
104 |
"<div class=\"subTitle\">compact1, compact2, compact3</div>" |
16547
3dd72ee2623d
8009684: Default top left frame should be "All Packages" in the generated javadoc documentation
bpatel
parents:
15723
diff
changeset
|
105 |
}, |
3dd72ee2623d
8009684: Default top left frame should be "All Packages" in the generated javadoc documentation
bpatel
parents:
15723
diff
changeset
|
106 |
{PROFILE_BUG_ID + FS + "index.html", |
3dd72ee2623d
8009684: Default top left frame should be "All Packages" in the generated javadoc documentation
bpatel
parents:
15723
diff
changeset
|
107 |
"<frame src=\"overview-frame.html\" name=\"packageListFrame\" " + |
3dd72ee2623d
8009684: Default top left frame should be "All Packages" in the generated javadoc documentation
bpatel
parents:
15723
diff
changeset
|
108 |
"title=\"All Packages\">" |
19499
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
109 |
}, |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
110 |
//Test for "overview-summary.html" showing the profile list. |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
111 |
{PROFILE_BUG_ID + FS + "overview-summary.html", |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
112 |
"<ul>" + NL +"<li><a href=\"compact1-summary.html\" target=\"classFrame\">" + |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
113 |
"compact1</a></li>" + NL + "<li><a href=\"compact2-summary.html\" " + |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
114 |
"target=\"classFrame\">compact2</a></li>" + NL + "<li><a href=\"" + |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
115 |
"compact3-summary.html\" target=\"classFrame\">compact3</a></li>" + NL + |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
116 |
"</ul>" |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
117 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
118 |
//Test deprecated class in profiles |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
119 |
{PROFILE_BUG_ID + FS + "compact1-summary.html","<td class=\"colFirst\">" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
120 |
+ "<a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">Class1Pkg2</a></td>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
121 |
+ NL + "<td class=\"colLast\">Deprecated" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
122 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
123 |
{PROFILE_BUG_ID + FS + "deprecated-list.html","<td class=\"colOne\">" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
124 |
+ "<a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">pkg2.Class1Pkg2</a>" |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
20613
diff
changeset
|
125 |
+ NL +"<div class=\"block\"><span class=\"deprecationComment\">Class1Pkg2. This class is deprecated</span></div>" |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
126 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
127 |
//Test deprecated package in profile |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
128 |
{PROFILE_BUG_ID + FS + "deprecated-list.html","<td class=\"colOne\">" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
129 |
+ "<a href=\"pkgDeprecated/package-summary.html\">pkgDeprecated</a>" |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
20613
diff
changeset
|
130 |
+ NL +"<div class=\"block\"><span class=\"deprecationComment\">This package is <b>Deprecated</b>." |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
131 |
+ " Use pkg1.</span></div>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
132 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
133 |
{PROFILE_BUG_ID + FS + "pkgDeprecated" + FS + "package-summary.html", |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
20613
diff
changeset
|
134 |
"<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>" |
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
20613
diff
changeset
|
135 |
+ NL + "<div class=\"block\"><span class=\"deprecationComment\">This package is <b>Deprecated</b>." |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
136 |
+ " Use pkg1.</span></div>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
137 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
138 |
// need to add teststring when JDK-8015496 will be fixed |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
139 |
//Test exception in profiles |
20613
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
20238
diff
changeset
|
140 |
{PROFILE_BUG_ID + FS + "compact1-summary.html","<table class=\"typeSummary\" " |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
141 |
+ "border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
142 |
+ "summary=\"Exception Summary table, listing exceptions, and an explanation\">" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
143 |
+ NL + "<caption><span>Exception Summary</span><span class=\"tabEnd\">" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
144 |
+ " </span></caption>" + NL + "<tr>" + NL + "<th class=\"colFirst\" " |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
145 |
+ "scope=\"col\">Exception</th>" + NL + "<th class=\"colLast\" scope=\"col\">" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
146 |
+ "Description</th>" + NL + "</tr>" + NL + "<tbody>" + NL + "<tr class=\"altColor\">" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
147 |
+ NL + "<td class=\"colFirst\"><a href=\"pkg2/ClassException.html\"" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
148 |
+ " title=\"class in pkg2\">ClassException</a></td>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
149 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
150 |
//Test errors in profiles |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
151 |
{PROFILE_BUG_ID + FS + "compact1-summary.html", |
20613
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
20238
diff
changeset
|
152 |
"<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
153 |
+ "summary=\"Error Summary table, listing errors, and an explanation\">" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
154 |
+ NL + "<caption><span>Error Summary</span><span class=\"tabEnd\"> " |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
155 |
+ "</span></caption>" + NL + "<tr>" + NL + "<th class=\"colFirst\"" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
156 |
+ " scope=\"col\">Error</th>" + NL + "<th class=\"colLast\" " |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
157 |
+ "scope=\"col\">Description</th>" + NL + "</tr>" + NL + "<tbody>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
158 |
+ NL + "<tr class=\"altColor\">" + NL + "<td class=\"colFirst\">" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
159 |
+ "<a href=\"pkg2/ClassError.html\" title=\"class in pkg2\">ClassError</a></td>" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
160 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
161 |
}; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
162 |
private static final String[][] PROFILES_NEGATED_TEST = { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
163 |
{PROFILE_BUG_ID + FS + "pkg3" + FS + "Class2Pkg3.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
164 |
"<div class=\"subTitle\">compact1" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
165 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
166 |
{PROFILE_BUG_ID + FS + "pkg3" + FS + "Interface1Pkg3.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
167 |
"<div class=\"subTitle\">compact1" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
168 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
169 |
{PROFILE_BUG_ID + FS + "pkg4" + FS + "compact2-package-frame.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
170 |
"<li><a href=\"Anno1Pkg4.html\" title=\"annotation in pkg4\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
171 |
+ "target=\"classFrame\">Anno1Pkg4</a></li>" |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
172 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
173 |
{PROFILE_BUG_ID + FS + "compact1-summary.html","<li>Use</li>" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
174 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
175 |
}; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
176 |
private static final String[][] PACKAGES_TEST = { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
177 |
{PACKAGE_BUG_ID + FS + "overview-frame.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
178 |
"<h2 title=\"Packages\">Packages</h2>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
179 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
180 |
{PACKAGE_BUG_ID + FS + "pkg4" + FS + "package-frame.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
181 |
"<h1 class=\"bar\"><a href=\"../pkg4/package-summary.html\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
182 |
+ "target=\"classFrame\">pkg4</a></h1>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
183 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
184 |
{PACKAGE_BUG_ID + FS + "pkg4" + FS + "package-summary.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
185 |
"<div class=\"header\">" + NL + "<h1 title=\"Package\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
186 |
+ "class=\"title\">Package pkg4</h1>" + NL + "</div>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
187 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
188 |
}; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
189 |
private static final String[][] PACKAGES_NEGATED_TEST = { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
190 |
{PACKAGE_BUG_ID + FS + "overview-frame.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
191 |
"<span><a href=\"profile-overview-frame.html\" " |
19907 | 192 |
+ "target=\"packageListFrame\">All Profiles</a></span>" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
193 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
194 |
{PACKAGE_BUG_ID + FS + "pkg2" + FS + "Class1Pkg2.html", |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
195 |
"<div class=\"subTitle\">compact1, compact2, compact3</div>" |
19499
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
196 |
}, |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
197 |
{PACKAGE_BUG_ID + FS + "overview-summary.html", |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
198 |
"<ul>" + NL +"<li><a href=\"compact1-summary.html\" target=\"classFrame\">" + |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
199 |
"compact1</a></li>" + NL + "<li><a href=\"compact2-summary.html\" " + |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
200 |
"target=\"classFrame\">compact2</a></li>" + NL + "<li><a href=\"" + |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
201 |
"compact3-summary.html\" target=\"classFrame\">compact3</a></li>" + NL + |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
202 |
"</ul>" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
203 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
204 |
}; |
20238
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
205 |
private static final String[] PACKAGES_NEGATED_FILE_TEST = { |
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
206 |
PACKAGE_BUG_ID + FS + "profile-overview-frame.html", |
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
207 |
PACKAGE_BUG_ID + FS + "compact2-frame.html", |
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
208 |
PACKAGE_BUG_ID + FS + "pkg2" + FS + "compact2-package-frame.html", |
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
209 |
PACKAGE_BUG_ID + FS + "compact2-summary.html", |
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
210 |
PACKAGE_BUG_ID + FS + "pkg5" + FS + "compact3-package-summary.html" |
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
211 |
}; |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
212 |
|
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
213 |
/** |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
214 |
* The entry point of the test. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
215 |
* |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
216 |
* @param args the array of command line arguments. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
217 |
*/ |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
218 |
public static void main(String[] args) { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
219 |
TestProfiles tester = new TestProfiles(); |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
220 |
run(tester, ARGS1, PROFILES_TEST, PROFILES_NEGATED_TEST); |
20238
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
221 |
run(tester, ARGS2, PACKAGES_TEST, PACKAGES_NEGATED_TEST, NO_FILE_TEST, PACKAGES_NEGATED_FILE_TEST); |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
222 |
tester.printSummary(); |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
223 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
224 |
|
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
225 |
/** |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
226 |
* {@inheritDoc} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
227 |
*/ |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
228 |
public String getBugId() { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
229 |
return BUG_ID; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
230 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
231 |
|
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
232 |
/** |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
233 |
* {@inheritDoc} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
234 |
*/ |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
235 |
public String getBugName() { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
236 |
return getClass().getName(); |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
237 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
238 |
} |