author | jjg |
Wed, 16 Apr 2014 16:17:09 -0700 | |
changeset 23971 | f5ff1f5a8dee |
parent 21494 | eb34dbccfb60 |
child 24065 | fc4022e50129 |
permissions | -rw-r--r-- |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
1 |
/* |
23971 | 2 |
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
15723
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 |
21494
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
26 |
* @bug 8006124 8009684 8016921 8023700 8024096 8008164 8026567 8026770 |
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", |
23971 | 42 |
SRC_DIR + "/profile-rtjar-includes.txt", "pkg1", "pkg2", |
19913
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[]{ |
23971 | 46 |
"-d", PACKAGE_BUG_ID, "-sourcepath", SRC_DIR, "pkg1", "pkg2", |
47 |
"pkg3", "pkg4", "pkg5" |
|
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
48 |
}; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
49 |
//Input for string tests for profiles. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
50 |
private static final String[][] PROFILES_TEST = { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
51 |
// Tests for profile-overview-frame.html listing all profiles. |
23971 | 52 |
{PROFILE_BUG_ID + "/profile-overview-frame.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
53 |
"<span><a href=\"overview-frame.html\" " |
19907 | 54 |
+ "target=\"packageListFrame\">All Packages</a></span>" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
55 |
}, |
23971 | 56 |
{PROFILE_BUG_ID + "/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
|
57 |
"<li><a href=\"compact1-frame.html\" target=\"packageListFrame\">" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
58 |
+ "compact1</a></li>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
59 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
60 |
// Tests for profileName-frame.html listing all packages in a profile. |
23971 | 61 |
{PROFILE_BUG_ID + "/compact2-frame.html", |
16547
3dd72ee2623d
8009684: Default top left frame should be "All Packages" in the generated javadoc documentation
bpatel
parents:
15723
diff
changeset
|
62 |
"<span><a href=\"overview-frame.html\" target=\"packageListFrame\">" |
19907 | 63 |
+ "All Packages</a></span><span><a href=\"profile-overview-frame.html\" " |
64 |
+ "target=\"packageListFrame\">All Profiles</a></span>" |
|
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
65 |
}, |
23971 | 66 |
{PROFILE_BUG_ID + "/compact2-frame.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
67 |
"<li><a href=\"pkg4/compact2-package-frame.html\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
68 |
+ "target=\"packageFrame\">pkg4</a></li>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
69 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
70 |
// 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
|
71 |
// package of a profile. |
23971 | 72 |
{PROFILE_BUG_ID + "/pkg2/compact2-package-frame.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
73 |
"<a href=\"../compact2-summary.html\" target=\"classFrame\">" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
74 |
+ "compact2</a> - <a href=\"../pkg2/compact2-package-summary.html\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
75 |
+ "target=\"classFrame\">pkg2</a>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
76 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
77 |
// Tests for profileName-summary.html listing the summary for a profile. |
23971 | 78 |
{PROFILE_BUG_ID + "/compact2-summary.html", |
79 |
"<li><a href=\"compact1-summary.html\">Prev Profile</a></li>\n" |
|
19907 | 80 |
+ "<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
|
81 |
}, |
23971 | 82 |
{PROFILE_BUG_ID + "/compact2-summary.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
83 |
"<h1 title=\"Profile\" class=\"title\">Profile compact2</h1>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
84 |
}, |
23971 | 85 |
{PROFILE_BUG_ID + "/compact2-summary.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
86 |
"<h3><a href=\"pkg2/compact2-package-summary.html\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
87 |
+ "target=\"classFrame\">pkg2</a></h3>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
88 |
}, |
23971 | 89 |
{PROFILE_BUG_ID + "/compact2-summary.html", |
90 |
"<ul class=\"blockList\">\n" + |
|
91 |
"<li class=\"blockList\">\n" |
|
21494
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
92 |
+ "<h3><a href=\"pkg2/compact2-package-summary.html\" target=\"classFrame\">" |
23971 | 93 |
+ "pkg2</a></h3>\n" + |
94 |
"<table class=\"typeSummary\" border=\"0\" " |
|
21494
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
95 |
+ "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, " |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
96 |
+ "listing classes, and an explanation\">" |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
97 |
}, |
23971 | 98 |
{PROFILE_BUG_ID + "/compact2-summary.html", |
99 |
"<ul class=\"blockList\">\n" + |
|
100 |
"<li class=\"blockList\">\n" |
|
21494
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
101 |
+ "<h3><a href=\"pkg4/compact2-package-summary.html\" target=\"classFrame\">" |
23971 | 102 |
+ "pkg4</a></h3>\n" + |
103 |
"<table class=\"typeSummary\" border=\"0\" " |
|
21494
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
104 |
+ "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, " |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
105 |
+ "listing classes, and an explanation\">" |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
106 |
}, |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
107 |
// 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
|
108 |
// package in a profile. |
23971 | 109 |
{PROFILE_BUG_ID + "/pkg5/compact3-package-summary.html", |
19907 | 110 |
"<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
|
111 |
+ "</a></li>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
112 |
}, |
23971 | 113 |
{PROFILE_BUG_ID + "/pkg5/compact3-package-summary.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
114 |
"<div class=\"subTitle\">compact3</div>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
115 |
}, |
23971 | 116 |
{PROFILE_BUG_ID + "/pkg5/compact3-package-summary.html", |
117 |
"<ul class=\"blockList\">\n" + |
|
118 |
"<li class=\"blockList\">\n" |
|
21494
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
119 |
+ "<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" " |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
120 |
+ "cellspacing=\"0\" summary=\"Interface Summary table, listing " |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
121 |
+ "interfaces, and an explanation\">" |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
122 |
}, |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
123 |
//Test for "overview-frame.html" showing the "All Profiles" link. |
23971 | 124 |
{PROFILE_BUG_ID + "/overview-frame.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
125 |
"<span><a href=\"profile-overview-frame.html\" " |
19907 | 126 |
+ "target=\"packageListFrame\">All Profiles</a></span>" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
127 |
}, |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
128 |
//Test for "className.html" showing the profile information for the type. |
23971 | 129 |
{PROFILE_BUG_ID + "/pkg2/Class1Pkg2.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
130 |
"<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
|
131 |
}, |
23971 | 132 |
{PROFILE_BUG_ID + "/index.html", |
16547
3dd72ee2623d
8009684: Default top left frame should be "All Packages" in the generated javadoc documentation
bpatel
parents:
15723
diff
changeset
|
133 |
"<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
|
134 |
"title=\"All Packages\">" |
19499
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
135 |
}, |
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
136 |
//Test for "overview-summary.html" showing the profile list. |
23971 | 137 |
{PROFILE_BUG_ID + "/overview-summary.html", |
138 |
"<ul>\n" + |
|
139 |
"<li><a href=\"compact1-summary.html\" target=\"classFrame\">" + |
|
140 |
"compact1</a></li>\n" + |
|
141 |
"<li><a href=\"compact2-summary.html\" " + |
|
142 |
"target=\"classFrame\">compact2</a></li>\n" + |
|
143 |
"<li><a href=\"" + |
|
144 |
"compact3-summary.html\" target=\"classFrame\">compact3</a></li>\n" + |
|
19499
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
145 |
"</ul>" |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
146 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
147 |
//Test deprecated class in profiles |
23971 | 148 |
{PROFILE_BUG_ID + "/compact1-summary.html","<td class=\"colFirst\">" |
149 |
+ "<a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">Class1Pkg2</a></td>\n" |
|
150 |
+ "<td class=\"colLast\">Deprecated" |
|
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
151 |
}, |
23971 | 152 |
{PROFILE_BUG_ID + "/deprecated-list.html","<td class=\"colOne\">" |
153 |
+ "<a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">pkg2.Class1Pkg2</a>\n" |
|
154 |
+"<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
|
155 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
156 |
//Test deprecated package in profile |
23971 | 157 |
{PROFILE_BUG_ID + "/deprecated-list.html","<td class=\"colOne\">" |
158 |
+ "<a href=\"pkgDeprecated/package-summary.html\">pkgDeprecated</a>\n" |
|
159 |
+"<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
|
160 |
+ " Use pkg1.</span></div>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
161 |
}, |
23971 | 162 |
{PROFILE_BUG_ID + "/pkgDeprecated/package-summary.html", |
163 |
"<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>\n" |
|
164 |
+ "<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
|
165 |
+ " Use pkg1.</span></div>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
166 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
167 |
// 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
|
168 |
//Test exception in profiles |
23971 | 169 |
{PROFILE_BUG_ID + "/compact1-summary.html", |
170 |
"<table class=\"typeSummary\" " |
|
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
171 |
+ "border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " |
23971 | 172 |
+ "summary=\"Exception Summary table, listing exceptions, and an explanation\">\n" |
173 |
+ "<caption><span>Exception Summary</span><span class=\"tabEnd\">" |
|
174 |
+ " </span></caption>\n" + |
|
175 |
"<tr>\n" + |
|
176 |
"<th class=\"colFirst\" " |
|
177 |
+ "scope=\"col\">Exception</th>\n" + |
|
178 |
"<th class=\"colLast\" scope=\"col\">" |
|
179 |
+ "Description</th>\n" + |
|
180 |
"</tr>\n" + |
|
181 |
"<tbody>\n" + |
|
182 |
"<tr class=\"altColor\">\n" |
|
183 |
+ "<td class=\"colFirst\"><a href=\"pkg2/ClassException.html\"" |
|
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
184 |
+ " 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
|
185 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
186 |
//Test errors in profiles |
23971 | 187 |
{PROFILE_BUG_ID + "/compact1-summary.html", |
20613
ab4801a53abb
8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
20238
diff
changeset
|
188 |
"<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " |
23971 | 189 |
+ "summary=\"Error Summary table, listing errors, and an explanation\">\n" |
190 |
+ "<caption><span>Error Summary</span><span class=\"tabEnd\"> " |
|
191 |
+ "</span></caption>\n" + |
|
192 |
"<tr>\n" + |
|
193 |
"<th class=\"colFirst\"" |
|
194 |
+ " scope=\"col\">Error</th>\n" + |
|
195 |
"<th class=\"colLast\" " |
|
196 |
+ "scope=\"col\">Description</th>\n" + |
|
197 |
"</tr>\n" + |
|
198 |
"<tbody>\n" |
|
199 |
+ "<tr class=\"altColor\">\n" + |
|
200 |
"<td class=\"colFirst\">" |
|
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
19907
diff
changeset
|
201 |
+ "<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
|
202 |
} |
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 |
private static final String[][] PROFILES_NEGATED_TEST = { |
23971 | 205 |
{PROFILE_BUG_ID + "/pkg3/Class2Pkg3.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
206 |
"<div class=\"subTitle\">compact1" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
207 |
}, |
23971 | 208 |
{PROFILE_BUG_ID + "/pkg3/Interface1Pkg3.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
209 |
"<div class=\"subTitle\">compact1" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
210 |
}, |
23971 | 211 |
{PROFILE_BUG_ID + "/pkg4/compact2-package-frame.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
212 |
"<li><a href=\"Anno1Pkg4.html\" title=\"annotation in pkg4\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
213 |
+ "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
|
214 |
}, |
23971 | 215 |
{PROFILE_BUG_ID + "/compact1-summary.html","<li>Use</li>" |
21494
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
216 |
}, |
23971 | 217 |
{PROFILE_BUG_ID + "/compact2-summary.html", |
218 |
"<ul class=\"blockList\">\n" + |
|
219 |
"<li class=\"blockList\">\n" |
|
21494
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
220 |
+ "<h3><a href=\"pkg2/compact2-package-summary.html\" target=\"classFrame\">" |
23971 | 221 |
+ "pkg2</a></h3>\n" + |
222 |
"<li class=\"blockList\">\n" |
|
21494
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
223 |
+ "<table class=\"typeSummary\" border=\"0\" " |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
224 |
+ "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, " |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
225 |
+ "listing classes, and an explanation\">" |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
226 |
}, |
23971 | 227 |
{PROFILE_BUG_ID + "/pkg5/compact3-package-summary.html", |
228 |
"<ul class=\"blockList\">\n" + |
|
229 |
"<li class=\"blockList\">\n" |
|
230 |
+ "<li class=\"blockList\">\n" |
|
21494
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
231 |
+ "<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" " |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
232 |
+ "cellspacing=\"0\" summary=\"Interface Summary table, listing " |
eb34dbccfb60
8026770: javadoc creates invalid HTML in profile summary pages
bpatel
parents:
21478
diff
changeset
|
233 |
+ "interfaces, and an explanation\">" |
15723
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 |
}; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
236 |
private static final String[][] PACKAGES_TEST = { |
23971 | 237 |
{PACKAGE_BUG_ID + "/overview-frame.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
238 |
"<h2 title=\"Packages\">Packages</h2>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
239 |
}, |
23971 | 240 |
{PACKAGE_BUG_ID + "/pkg4/package-frame.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
241 |
"<h1 class=\"bar\"><a href=\"../pkg4/package-summary.html\" " |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
242 |
+ "target=\"classFrame\">pkg4</a></h1>" |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
243 |
}, |
23971 | 244 |
{PACKAGE_BUG_ID + "/pkg4/package-summary.html", |
245 |
"<div class=\"header\">\n" + |
|
246 |
"<h1 title=\"Package\" " |
|
247 |
+ "class=\"title\">Package pkg4</h1>\n" + |
|
248 |
"</div>" |
|
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
249 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
250 |
}; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
251 |
private static final String[][] PACKAGES_NEGATED_TEST = { |
23971 | 252 |
{PACKAGE_BUG_ID + "/overview-frame.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
253 |
"<span><a href=\"profile-overview-frame.html\" " |
19907 | 254 |
+ "target=\"packageListFrame\">All Profiles</a></span>" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
255 |
}, |
23971 | 256 |
{PACKAGE_BUG_ID + "/pkg2/Class1Pkg2.html", |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
257 |
"<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
|
258 |
}, |
23971 | 259 |
{PACKAGE_BUG_ID + "/overview-summary.html", |
260 |
"<ul>\n" + |
|
261 |
"<li><a href=\"compact1-summary.html\" target=\"classFrame\">" + |
|
262 |
"compact1</a></li>\n" + |
|
263 |
"<li><a href=\"compact2-summary.html\" " + |
|
264 |
"target=\"classFrame\">compact2</a></li>\n" + |
|
265 |
"<li><a href=\"" + |
|
266 |
"compact3-summary.html\" target=\"classFrame\">compact3</a></li>\n" + |
|
19499
23bc1014824b
8016921: Change the profiles table on overview-summary.html page to a list
bpatel
parents:
16547
diff
changeset
|
267 |
"</ul>" |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
268 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
269 |
}; |
20238
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
270 |
private static final String[] PACKAGES_NEGATED_FILE_TEST = { |
23971 | 271 |
PACKAGE_BUG_ID + "/profile-overview-frame.html", |
272 |
PACKAGE_BUG_ID + "/compact2-frame.html", |
|
273 |
PACKAGE_BUG_ID + "/pkg2/compact2-package-frame.html", |
|
274 |
PACKAGE_BUG_ID + "/compact2-summary.html", |
|
275 |
PACKAGE_BUG_ID + "/pkg5/compact3-package-summary.html" |
|
20238
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
276 |
}; |
15723
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
277 |
|
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
278 |
/** |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
279 |
* The entry point of the test. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
280 |
* |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
281 |
* @param args the array of command line arguments. |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
282 |
*/ |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
283 |
public static void main(String[] args) { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
284 |
TestProfiles tester = new TestProfiles(); |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
285 |
run(tester, ARGS1, PROFILES_TEST, PROFILES_NEGATED_TEST); |
20238
a08610368936
8024096: some javadoc tests may contain false positive results
bpatel
parents:
19913
diff
changeset
|
286 |
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
|
287 |
tester.printSummary(); |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
288 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
289 |
|
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
290 |
/** |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
291 |
* {@inheritDoc} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
292 |
*/ |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
293 |
public String getBugId() { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
294 |
return BUG_ID; |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
295 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
296 |
|
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
297 |
/** |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
298 |
* {@inheritDoc} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
299 |
*/ |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
300 |
public String getBugName() { |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
301 |
return getClass().getName(); |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
302 |
} |
58a73dac9ee4
8006124: javadoc/doclet should be updated to support profiles
bpatel
parents:
diff
changeset
|
303 |
} |