36 private static final String BUG_ID = "8006124-8009684-8016921"; |
36 private static final String BUG_ID = "8006124-8009684-8016921"; |
37 private static final String PROFILE_BUG_ID = BUG_ID + "-1"; |
37 private static final String PROFILE_BUG_ID = BUG_ID + "-1"; |
38 private static final String PACKAGE_BUG_ID = BUG_ID + "-2"; |
38 private static final String PACKAGE_BUG_ID = BUG_ID + "-2"; |
39 //Javadoc arguments. |
39 //Javadoc arguments. |
40 private static final String[] ARGS1 = new String[]{ |
40 private static final String[] ARGS1 = new String[]{ |
41 "-d", PROFILE_BUG_ID, "-sourcepath", SRC_DIR, "-Xprofilespath", SRC_DIR + FS |
41 "-d", PROFILE_BUG_ID, "-sourcepath", SRC_DIR, "-Xprofilespath", |
42 + "profile-rtjar-includes.txt", "pkg1", "pkg2", "pkg3", "pkg4", "pkg5" |
42 SRC_DIR + FS + "profile-rtjar-includes.txt", "pkg1", "pkg2", |
|
43 "pkg3", "pkg4", "pkg5", "pkgDeprecated" |
43 }; |
44 }; |
44 private static final String[] ARGS2 = new String[]{ |
45 private static final String[] ARGS2 = new String[]{ |
45 "-d", PACKAGE_BUG_ID, "-sourcepath", SRC_DIR, "pkg1", "pkg2", "pkg3", "pkg4", "pkg5" |
46 "-d", PACKAGE_BUG_ID, "-sourcepath", SRC_DIR, "pkg1", "pkg2", "pkg3", "pkg4", "pkg5" |
46 }; |
47 }; |
47 //Input for string tests for profiles. |
48 //Input for string tests for profiles. |
111 "<ul>" + NL +"<li><a href=\"compact1-summary.html\" target=\"classFrame\">" + |
112 "<ul>" + NL +"<li><a href=\"compact1-summary.html\" target=\"classFrame\">" + |
112 "compact1</a></li>" + NL + "<li><a href=\"compact2-summary.html\" " + |
113 "compact1</a></li>" + NL + "<li><a href=\"compact2-summary.html\" " + |
113 "target=\"classFrame\">compact2</a></li>" + NL + "<li><a href=\"" + |
114 "target=\"classFrame\">compact2</a></li>" + NL + "<li><a href=\"" + |
114 "compact3-summary.html\" target=\"classFrame\">compact3</a></li>" + NL + |
115 "compact3-summary.html\" target=\"classFrame\">compact3</a></li>" + NL + |
115 "</ul>" |
116 "</ul>" |
|
117 }, |
|
118 //Test deprecated class in profiles |
|
119 {PROFILE_BUG_ID + FS + "compact1-summary.html","<td class=\"colFirst\">" |
|
120 + "<a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">Class1Pkg2</a></td>" |
|
121 + NL + "<td class=\"colLast\">Deprecated" |
|
122 }, |
|
123 {PROFILE_BUG_ID + FS + "deprecated-list.html","<td class=\"colOne\">" |
|
124 + "<a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">pkg2.Class1Pkg2</a>" |
|
125 + NL +"<div class=\"block\"><span class=\"italic\">Class1Pkg2. This class is deprecated</span></div>" |
|
126 }, |
|
127 //Test deprecated package in profile |
|
128 {PROFILE_BUG_ID + FS + "deprecated-list.html","<td class=\"colOne\">" |
|
129 + "<a href=\"pkgDeprecated/package-summary.html\">pkgDeprecated</a>" |
|
130 + NL +"<div class=\"block\"><span class=\"italic\">This package is <b>Deprecated</b>." |
|
131 + " Use pkg1.</span></div>" |
|
132 }, |
|
133 {PROFILE_BUG_ID + FS + "pkgDeprecated" + FS + "package-summary.html", |
|
134 "<div class=\"deprecatedContent\"><span class=\"strong\">Deprecated.</span>" |
|
135 + NL + "<div class=\"block\"><span class=\"italic\">This package is <b>Deprecated</b>." |
|
136 + " Use pkg1.</span></div>" |
|
137 }, |
|
138 // need to add teststring when JDK-8015496 will be fixed |
|
139 //Test exception in profiles |
|
140 {PROFILE_BUG_ID + FS + "compact1-summary.html","<table class=\"packageSummary\" " |
|
141 + "border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " |
|
142 + "summary=\"Exception Summary table, listing exceptions, and an explanation\">" |
|
143 + NL + "<caption><span>Exception Summary</span><span class=\"tabEnd\">" |
|
144 + " </span></caption>" + NL + "<tr>" + NL + "<th class=\"colFirst\" " |
|
145 + "scope=\"col\">Exception</th>" + NL + "<th class=\"colLast\" scope=\"col\">" |
|
146 + "Description</th>" + NL + "</tr>" + NL + "<tbody>" + NL + "<tr class=\"altColor\">" |
|
147 + NL + "<td class=\"colFirst\"><a href=\"pkg2/ClassException.html\"" |
|
148 + " title=\"class in pkg2\">ClassException</a></td>" |
|
149 }, |
|
150 //Test errors in profiles |
|
151 {PROFILE_BUG_ID + FS + "compact1-summary.html", |
|
152 "<table class=\"packageSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " |
|
153 + "summary=\"Error Summary table, listing errors, and an explanation\">" |
|
154 + NL + "<caption><span>Error Summary</span><span class=\"tabEnd\"> " |
|
155 + "</span></caption>" + NL + "<tr>" + NL + "<th class=\"colFirst\"" |
|
156 + " scope=\"col\">Error</th>" + NL + "<th class=\"colLast\" " |
|
157 + "scope=\"col\">Description</th>" + NL + "</tr>" + NL + "<tbody>" |
|
158 + NL + "<tr class=\"altColor\">" + NL + "<td class=\"colFirst\">" |
|
159 + "<a href=\"pkg2/ClassError.html\" title=\"class in pkg2\">ClassError</a></td>" |
116 } |
160 } |
117 }; |
161 }; |
118 private static final String[][] PROFILES_NEGATED_TEST = { |
162 private static final String[][] PROFILES_NEGATED_TEST = { |
119 {PROFILE_BUG_ID + FS + "pkg3" + FS + "Class2Pkg3.html", |
163 {PROFILE_BUG_ID + FS + "pkg3" + FS + "Class2Pkg3.html", |
120 "<div class=\"subTitle\">compact1" |
164 "<div class=\"subTitle\">compact1" |
123 "<div class=\"subTitle\">compact1" |
167 "<div class=\"subTitle\">compact1" |
124 }, |
168 }, |
125 {PROFILE_BUG_ID + FS + "pkg4" + FS + "compact2-package-frame.html", |
169 {PROFILE_BUG_ID + FS + "pkg4" + FS + "compact2-package-frame.html", |
126 "<li><a href=\"Anno1Pkg4.html\" title=\"annotation in pkg4\" " |
170 "<li><a href=\"Anno1Pkg4.html\" title=\"annotation in pkg4\" " |
127 + "target=\"classFrame\">Anno1Pkg4</a></li>" |
171 + "target=\"classFrame\">Anno1Pkg4</a></li>" |
|
172 }, |
|
173 {PROFILE_BUG_ID + FS + "compact1-summary.html","<li>Use</li>" |
128 } |
174 } |
129 }; |
175 }; |
130 private static final String[][] PACKAGES_TEST = { |
176 private static final String[][] PACKAGES_TEST = { |
131 {PACKAGE_BUG_ID + FS + "overview-frame.html", |
177 {PACKAGE_BUG_ID + FS + "overview-frame.html", |
132 "<h2 title=\"Packages\">Packages</h2>" |
178 "<h2 title=\"Packages\">Packages</h2>" |