author | jjg |
Fri, 21 Dec 2018 10:38:33 -0800 | |
changeset 53097 | 2e82ca64b25d |
parent 52961 | d67b37917e82 |
child 53121 | 4c4651aba203 |
permissions | -rw-r--r-- |
33920 | 1 |
/* |
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
2 |
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
33920 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
22 |
*/ |
|
23 |
||
24 |
/* |
|
25 |
* @test |
|
47328
d18df41954ba
8187521: In some corner cases the javadoc tool can reuse id attribute
jjg
parents:
47300
diff
changeset
|
26 |
* @bug 8141492 8071982 8141636 8147890 8166175 8168965 8176794 8175218 8147881 |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
27 |
* 8181622 8182263 8074407 8187521 8198522 8182765 8199278 8196201 8196202 |
52961
d67b37917e82
8214468: jQuery UI upgrade from 1.11.4 to 1.12.1
pmuthuswamy
parents:
52695
diff
changeset
|
28 |
* 8184205 8214468 |
33920 | 29 |
* @summary Test the search feature of javadoc. |
30 |
* @author bpatel |
|
53097 | 31 |
* @library ../../lib |
36526 | 32 |
* @modules jdk.javadoc/jdk.javadoc.internal.tool |
53097 | 33 |
* @build javadoc.tester.* |
33920 | 34 |
* @run main TestSearch |
35 |
*/ |
|
53097 | 36 |
import javadoc.tester.JavadocTester; |
37 |
||
33920 | 38 |
public class TestSearch extends JavadocTester { |
39 |
||
40 |
public static void main(String... args) throws Exception { |
|
41 |
TestSearch tester = new TestSearch(); |
|
42 |
tester.runTests(); |
|
43 |
} |
|
44 |
||
45 |
@Test |
|
53097 | 46 |
public void test1() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
47 |
javadoc("-d", "out-1", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
48 |
"-sourcepath", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
49 |
"-use", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
50 |
testSrc("UnnamedPkgClass.java")); |
33920 | 51 |
checkExit(Exit.OK); |
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
52 |
checkSearchOutput("UnnamedPkgClass.html", true, true); |
33920 | 53 |
checkJqueryAndImageFiles(true); |
41523
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
54 |
checkSearchJS(); |
33920 | 55 |
checkFiles(false, |
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
56 |
"tag-search-index.zip", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
57 |
"tag-search-index.js"); |
33920 | 58 |
checkFiles(true, |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
59 |
"package-search-index.zip", |
33920 | 60 |
"member-search-index.zip", |
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
61 |
"type-search-index.zip", |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
62 |
"package-search-index.js", |
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
63 |
"member-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
64 |
"type-search-index.js"); |
33920 | 65 |
} |
66 |
||
67 |
@Test |
|
53097 | 68 |
public void test2() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
69 |
javadoc("-d", "out-2", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
70 |
"-Xdoclint:none", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
71 |
"-sourcepath", testSrc, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
72 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
73 |
"--frames", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
74 |
"pkg", "pkg1", "pkg2", "pkg3"); |
33920 | 75 |
checkExit(Exit.OK); |
76 |
checkInvalidUsageIndexTag(); |
|
77 |
checkSearchOutput(true); |
|
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
78 |
checkSingleIndex(true, true); |
45913
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
79 |
checkSingleIndexSearchTagDuplication(); |
33920 | 80 |
checkJqueryAndImageFiles(true); |
41523
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
81 |
checkSearchJS(); |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
82 |
checkAllPkgsAllClasses(); |
33920 | 83 |
checkFiles(true, |
84 |
"member-search-index.zip", |
|
85 |
"package-search-index.zip", |
|
86 |
"tag-search-index.zip", |
|
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
87 |
"type-search-index.zip", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
88 |
"member-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
89 |
"package-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
90 |
"tag-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
91 |
"type-search-index.js"); |
33920 | 92 |
} |
93 |
||
94 |
@Test |
|
53097 | 95 |
public void test2_html4() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
96 |
javadoc("-d", "out-2-html4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
97 |
"-html4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
98 |
"-Xdoclint:none", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
99 |
"-sourcepath", testSrc, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
100 |
"-use", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
101 |
"pkg", "pkg1", "pkg2", "pkg3"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
102 |
checkExit(Exit.OK); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
103 |
checkSingleIndex(true, false); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
104 |
} |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
105 |
|
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
106 |
@Test |
53097 | 107 |
public void test2a() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
108 |
javadoc("-d", "out-2a", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
109 |
"-Xdoclint:all", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
110 |
"-sourcepath", testSrc, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
111 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
112 |
"--frames", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
113 |
"pkg", "pkg1", "pkg2", "pkg3"); |
41451 | 114 |
checkExit(Exit.ERROR); |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
115 |
checkDocLintErrors(); |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
116 |
checkSearchOutput(true); |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
117 |
checkSingleIndex(true, true); |
45913
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
118 |
checkSingleIndexSearchTagDuplication(); |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
119 |
checkJqueryAndImageFiles(true); |
41523
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
120 |
checkSearchJS(); |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
121 |
checkFiles(true, |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
122 |
"member-search-index.zip", |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
123 |
"package-search-index.zip", |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
124 |
"tag-search-index.zip", |
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
125 |
"type-search-index.zip", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
126 |
"member-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
127 |
"package-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
128 |
"tag-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
129 |
"type-search-index.js"); |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
130 |
} |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
131 |
|
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
132 |
@Test |
53097 | 133 |
public void test2a_html4() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
134 |
javadoc("-d", "out-2a-html4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
135 |
"-html4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
136 |
"-Xdoclint:all", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
137 |
"-sourcepath", testSrc, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
138 |
"-use", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
139 |
"pkg", "pkg1", "pkg2", "pkg3"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
140 |
checkSingleIndex(true, false); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
141 |
} |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
142 |
|
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
143 |
@Test |
53097 | 144 |
public void test3() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
145 |
javadoc("-d", "out-3", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
146 |
"-noindex", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
147 |
"-Xdoclint:none", |
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
33920
diff
changeset
|
148 |
"-sourcepath", testSrc, |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
149 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
150 |
"--frames", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
151 |
"pkg", "pkg1", "pkg2", "pkg3"); |
33920 | 152 |
checkExit(Exit.OK); |
153 |
checkSearchOutput(false); |
|
154 |
checkJqueryAndImageFiles(false); |
|
155 |
checkFiles(false, |
|
156 |
"member-search-index.zip", |
|
157 |
"package-search-index.zip", |
|
158 |
"tag-search-index.zip", |
|
159 |
"type-search-index.zip", |
|
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
160 |
"member-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
161 |
"package-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
162 |
"tag-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
163 |
"type-search-index.js", |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
164 |
"index-all.html", |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
165 |
"allpackages-index.html", |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
166 |
"allclasses-index.html"); |
33920 | 167 |
} |
168 |
||
169 |
@Test |
|
53097 | 170 |
public void test4() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
171 |
javadoc("-d", "out-4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
172 |
"-html5", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
173 |
"-Xdoclint:none", |
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
33920
diff
changeset
|
174 |
"-sourcepath", testSrc, |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
175 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
176 |
"--frames", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
177 |
"pkg", "pkg1", "pkg2", "pkg3"); |
33920 | 178 |
checkExit(Exit.OK); |
179 |
checkSearchOutput(true); |
|
47328
d18df41954ba
8187521: In some corner cases the javadoc tool can reuse id attribute
jjg
parents:
47300
diff
changeset
|
180 |
checkSingleIndex(true, true); |
45913
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
181 |
checkSingleIndexSearchTagDuplication(); |
33920 | 182 |
checkJqueryAndImageFiles(true); |
41523
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
183 |
checkSearchJS(); |
33920 | 184 |
checkFiles(true, |
185 |
"member-search-index.zip", |
|
186 |
"package-search-index.zip", |
|
187 |
"tag-search-index.zip", |
|
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
188 |
"type-search-index.zip", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
189 |
"member-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
190 |
"package-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
191 |
"tag-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
192 |
"type-search-index.js"); |
33920 | 193 |
} |
194 |
||
195 |
@Test |
|
53097 | 196 |
public void test5() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
197 |
javadoc("-d", "out-5", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
198 |
"-html5", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
199 |
"-noindex", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
200 |
"-Xdoclint:none", |
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
33920
diff
changeset
|
201 |
"-sourcepath", testSrc, |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
202 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
203 |
"--frames", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
204 |
"pkg", "pkg1", "pkg2", "pkg3"); |
33920 | 205 |
checkExit(Exit.OK); |
206 |
checkSearchOutput(false); |
|
207 |
checkJqueryAndImageFiles(false); |
|
208 |
checkFiles(false, |
|
209 |
"member-search-index.zip", |
|
210 |
"package-search-index.zip", |
|
211 |
"tag-search-index.zip", |
|
212 |
"type-search-index.zip", |
|
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
213 |
"member-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
214 |
"package-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
215 |
"tag-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
216 |
"type-search-index.js", |
33920 | 217 |
"index-all.html"); |
218 |
} |
|
219 |
||
220 |
@Test |
|
53097 | 221 |
public void test6() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
222 |
javadoc("-d", "out-6", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
223 |
"-nocomment", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
224 |
"-Xdoclint:none", |
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
33920
diff
changeset
|
225 |
"-sourcepath", testSrc, |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
226 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
227 |
"--frames", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
228 |
"pkg", "pkg1", "pkg2", "pkg3"); |
33920 | 229 |
checkExit(Exit.OK); |
230 |
checkSearchOutput(true); |
|
231 |
checkIndexNoComment(); |
|
232 |
checkJqueryAndImageFiles(true); |
|
41523
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
233 |
checkSearchJS(); |
33920 | 234 |
checkFiles(true, |
235 |
"member-search-index.zip", |
|
236 |
"package-search-index.zip", |
|
237 |
"tag-search-index.zip", |
|
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
238 |
"type-search-index.zip", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
239 |
"member-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
240 |
"package-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
241 |
"tag-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
242 |
"type-search-index.js"); |
33920 | 243 |
} |
244 |
||
245 |
@Test |
|
53097 | 246 |
public void test7() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
247 |
javadoc("-d", "out-7", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
248 |
"-nodeprecated", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
249 |
"-Xdoclint:none", |
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
33920
diff
changeset
|
250 |
"-sourcepath", testSrc, |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
251 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
252 |
"--frames", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
253 |
"pkg", "pkg1", "pkg2", "pkg3"); |
50370
676b7c44eeae
8202627: javadoc generates broken links to deprecated items when -nodeprecated is used
pmuthuswamy
parents:
50293
diff
changeset
|
254 |
|
33920 | 255 |
checkExit(Exit.OK); |
256 |
checkSearchOutput(true); |
|
257 |
checkIndexNoDeprecated(); |
|
258 |
checkJqueryAndImageFiles(true); |
|
41523
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
259 |
checkSearchJS(); |
33920 | 260 |
checkFiles(true, |
261 |
"member-search-index.zip", |
|
262 |
"package-search-index.zip", |
|
263 |
"tag-search-index.zip", |
|
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
264 |
"type-search-index.zip", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
265 |
"member-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
266 |
"package-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
267 |
"tag-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
268 |
"type-search-index.js"); |
33920 | 269 |
} |
270 |
||
271 |
@Test |
|
53097 | 272 |
public void test8() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
273 |
javadoc("-d", "out-8", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
274 |
"-splitindex", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
275 |
"-Xdoclint:none", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
276 |
"-sourcepath", testSrc, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
277 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
278 |
"--frames", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
279 |
"pkg", "pkg1", "pkg2", "pkg3"); |
33920 | 280 |
checkExit(Exit.OK); |
281 |
checkInvalidUsageIndexTag(); |
|
282 |
checkSearchOutput(true); |
|
283 |
checkSplitIndex(); |
|
45913
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
284 |
checkSplitIndexSearchTagDuplication(); |
33920 | 285 |
checkJqueryAndImageFiles(true); |
41523
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
286 |
checkSearchJS(); |
33920 | 287 |
checkFiles(true, |
288 |
"member-search-index.zip", |
|
289 |
"package-search-index.zip", |
|
290 |
"tag-search-index.zip", |
|
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
291 |
"type-search-index.zip", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
292 |
"member-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
293 |
"package-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
294 |
"tag-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
295 |
"type-search-index.js"); |
33920 | 296 |
} |
297 |
||
298 |
@Test |
|
53097 | 299 |
public void test9() { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
300 |
javadoc("-d", "out-9", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
301 |
"-sourcepath", testSrc, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
302 |
"-javafx", |
49879
601277b1d582
8025091: VisibleMemberMap.java possible performance improvements
ksrini
parents:
49427
diff
changeset
|
303 |
"--disable-javafx-strict-checks", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
304 |
"-package", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
305 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
306 |
"--frames", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
307 |
"pkgfx", "pkg3"); |
33920 | 308 |
checkExit(Exit.OK); |
309 |
checkSearchOutput(true); |
|
310 |
checkJavaFXOutput(); |
|
311 |
checkJqueryAndImageFiles(true); |
|
41523
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
312 |
checkSearchJS(); |
33920 | 313 |
checkFiles(false, |
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
314 |
"tag-search-index.zip", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
315 |
"tag-search-index.js"); |
33920 | 316 |
checkFiles(true, |
317 |
"member-search-index.zip", |
|
318 |
"package-search-index.zip", |
|
43370
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
319 |
"type-search-index.zip", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
320 |
"member-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
321 |
"package-search-index.js", |
5969237f927c
8166175: javadoc search doesn't work on local doc bundles
bpatel
parents:
42263
diff
changeset
|
322 |
"type-search-index.js"); |
33920 | 323 |
} |
324 |
||
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
325 |
@Test |
53097 | 326 |
public void testNoModuleDirectories() { |
49427
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
327 |
javadoc("-d", "out-noMdlDir", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
328 |
"--no-module-directories", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
329 |
"-Xdoclint:none", |
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
330 |
"-sourcepath", testSrc, |
49427
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
331 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
332 |
"--frames", |
49427
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
333 |
"pkg", "pkg1", "pkg2", "pkg3"); |
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
334 |
checkExit(Exit.OK); |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
335 |
checkSearchOutput(true, false); |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
336 |
checkSearchJS(); |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
337 |
} |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
338 |
|
49427
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
339 |
@Test |
53097 | 340 |
public void testURLEncoding() { |
49427
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
341 |
javadoc("-d", "out-encode-html5", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
342 |
"--no-module-directories", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
343 |
"-Xdoclint:none", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
344 |
"-sourcepath", testSrc, |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
345 |
"-use", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
346 |
"pkg", "pkg1", "pkg2", "pkg3"); |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
347 |
checkExit(Exit.OK); |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
348 |
checkSearchJS(); |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
349 |
checkSearchIndex(true); |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
350 |
} |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
351 |
|
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
352 |
@Test |
53097 | 353 |
public void testURLEncoding_html4() { |
49427
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
354 |
javadoc("-d", "out-encode-html4", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
355 |
"-html4", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
356 |
"--no-module-directories", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
357 |
"-Xdoclint:none", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
358 |
"-sourcepath", testSrc, |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
359 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
50167
diff
changeset
|
360 |
"--frames", |
49427
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
361 |
"pkg", "pkg1", "pkg2", "pkg3"); |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
362 |
checkExit(Exit.OK); |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
363 |
checkSearchJS(); |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
364 |
checkSearchIndex(false); |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
365 |
} |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
366 |
|
52695
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
367 |
@Test |
53097 | 368 |
public void testJapaneseLocale() { |
52695
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
369 |
javadoc("-locale", "ja_JP", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
370 |
"-d", "out-jp", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
371 |
"--no-module-directories", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
372 |
"-Xdoclint:none", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
373 |
"-sourcepath", testSrc, |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
374 |
"-use", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
375 |
"pkg", "pkg1", "pkg2", "pkg3"); |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
376 |
checkExit(Exit.OK); |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
377 |
checkOutput(Output.OUT, true, |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
378 |
"\u30d1\u30c3\u30b1\u30fc\u30b8pkg\u306e\u30bd\u30fc\u30b9\u30fb\u30d5\u30a1" + |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
379 |
"\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059...\n", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
380 |
"\u30d1\u30c3\u30b1\u30fc\u30b8pkg1\u306e\u30bd\u30fc\u30b9\u30fb\u30d5\u30a1" + |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
381 |
"\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059...\n"); |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
382 |
checkSearchJS(); |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
383 |
checkSearchIndex(true); |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
384 |
} |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
385 |
|
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
386 |
@Test |
53097 | 387 |
public void testChineseLocale() { |
52695
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
388 |
javadoc("-locale", "zh_CN", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
389 |
"-d", "out-cn", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
390 |
"--no-module-directories", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
391 |
"-Xdoclint:none", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
392 |
"-sourcepath", testSrc, |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
393 |
"-use", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
394 |
"pkg", "pkg1", "pkg2", "pkg3"); |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
395 |
checkExit(Exit.OK); |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
396 |
checkOutput(Output.OUT, true, |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
397 |
"\u6b63\u5728\u52a0\u8f7d\u7a0b\u5e8f\u5305pkg\u7684\u6e90\u6587\u4ef6...\n", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
398 |
"\u6b63\u5728\u52a0\u8f7d\u7a0b\u5e8f\u5305pkg1\u7684\u6e90\u6587\u4ef6...\n", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
399 |
"\u6b63\u5728\u52a0\u8f7d\u7a0b\u5e8f\u5305pkg2\u7684\u6e90\u6587\u4ef6...\n", |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
400 |
"\u6b63\u5728\u52a0\u8f7d\u7a0b\u5e8f\u5305pkg3\u7684\u6e90\u6587\u4ef6...\n"); |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
401 |
checkSearchJS(); |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
402 |
checkSearchIndex(true); |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
403 |
} |
99eb43bc3595
8213716: javadoc search not working with Japanese and Chinese locales
hannesw
parents:
52616
diff
changeset
|
404 |
|
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
405 |
void checkDocLintErrors() { |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
406 |
checkOutput(Output.OUT, true, |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
407 |
"A sample method. Testing search tag for {@index \"unclosed quote}.", |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
408 |
"Another test class. Testing empty {@index }.", |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
409 |
"Constant field. Testing no text in index tag {@index}.", |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
410 |
"A test field. Testing only white-spaces in index tag text {@index }."); |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
411 |
} |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
412 |
|
33920 | 413 |
void checkSearchOutput(boolean expectedOutput) { |
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
414 |
checkSearchOutput("overview-summary.html", expectedOutput, true); |
33920 | 415 |
} |
416 |
||
49427
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
417 |
void checkSearchIndex(boolean expectedOutput) { |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
418 |
checkOutput("member-search-index.js", expectedOutput, |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
419 |
"{\"p\":\"pkg\",\"c\":\"AnotherClass\",\"l\":\"AnotherClass()\",\"url\":\"%3Cinit%3E()\"}", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
420 |
"{\"p\":\"pkg1\",\"c\":\"RegClass\",\"l\":\"RegClass()\",\"url\":\"%3Cinit%3E()\"}", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
421 |
"{\"p\":\"pkg2\",\"c\":\"TestError\",\"l\":\"TestError()\",\"url\":\"%3Cinit%3E()\"}", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
422 |
"{\"p\":\"pkg\",\"c\":\"AnotherClass\",\"l\":\"method(byte[], int, String)\",\"url\":\"method(byte[],int,java.lang.String)\"}"); |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
423 |
checkOutput("member-search-index.js", !expectedOutput, |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
424 |
"{\"p\":\"pkg\",\"c\":\"AnotherClass\",\"l\":\"method(RegClass)\",\"url\":\"method-pkg1.RegClass-\"}", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
425 |
"{\"p\":\"pkg2\",\"c\":\"TestClass\",\"l\":\"TestClass()\",\"url\":\"TestClass--\"}", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
426 |
"{\"p\":\"pkg\",\"c\":\"TestError\",\"l\":\"TestError()\",\"url\":\"TestError--\"}", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
427 |
"{\"p\":\"pkg\",\"c\":\"AnotherClass\",\"l\":\"method(byte[], int, String)\",\"url\":\"method-byte:A-int-java.lang.String-\"}"); |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
428 |
} |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
429 |
|
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
430 |
void checkSearchOutput(boolean expectedOutput, boolean moduleDirectoriesVar) { |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
431 |
checkSearchOutput("overview-summary.html", expectedOutput, moduleDirectoriesVar); |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
432 |
} |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
433 |
|
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
434 |
void checkSearchOutput(String fileName, boolean expectedOutput, boolean moduleDirectoriesVar) { |
33920 | 435 |
// Test for search related markup |
436 |
checkOutput(fileName, expectedOutput, |
|
437 |
"<link rel=\"stylesheet\" type=\"text/css\" href=\"jquery/jquery-ui.css\" title=\"Style\">\n", |
|
438 |
"<script type=\"text/javascript\" src=\"jquery/jszip/dist/jszip.min.js\"></script>\n", |
|
439 |
"<script type=\"text/javascript\" src=\"jquery/jszip-utils/dist/jszip-utils.min.js\"></script>\n", |
|
440 |
"<!--[if IE]>\n", |
|
441 |
"<script type=\"text/javascript\" src=\"jquery/jszip-utils/dist/jszip-utils-ie.min.js\"></script>\n", |
|
442 |
"<![endif]-->\n", |
|
50575
72c694f035ee
8204666: javadoc should be updated to use jQuery 3.3.1
pmuthuswamy
parents:
50415
diff
changeset
|
443 |
"<script type=\"text/javascript\" src=\"jquery/jquery-3.3.1.js\"></script>\n", |
72c694f035ee
8204666: javadoc should be updated to use jQuery 3.3.1
pmuthuswamy
parents:
50415
diff
changeset
|
444 |
"<script type=\"text/javascript\" src=\"jquery/jquery-migrate-3.0.1.js\"></script>\n", |
33920 | 445 |
"<script type=\"text/javascript\" src=\"jquery/jquery-ui.js\"></script>", |
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
446 |
"var pathtoroot = \"./\";\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
447 |
+ "var useModuleDirectories = " + moduleDirectoriesVar + ";\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
448 |
+ "loadScripts(document, 'script');", |
33920 | 449 |
"<ul class=\"navListSearch\">\n", |
47047
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45913
diff
changeset
|
450 |
"<li><label for=\"search\">SEARCH:</label>\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45913
diff
changeset
|
451 |
+ "<input type=\"text\" id=\"search\" value=\"search\" disabled=\"disabled\">\n" |
91082c3c1d05
8182263: Search box and reset button needs to be a11y fixed.
bpatel
parents:
45913
diff
changeset
|
452 |
+ "<input type=\"reset\" id=\"reset\" value=\"reset\" disabled=\"disabled\">\n"); |
33920 | 453 |
checkOutput(fileName, true, |
454 |
"<div class=\"fixedNav\">"); |
|
455 |
} |
|
456 |
||
47328
d18df41954ba
8187521: In some corner cases the javadoc tool can reuse id attribute
jjg
parents:
47300
diff
changeset
|
457 |
void checkSingleIndex(boolean expectedOutput, boolean html5) { |
d18df41954ba
8187521: In some corner cases the javadoc tool can reuse id attribute
jjg
parents:
47300
diff
changeset
|
458 |
String html_span_see_span = html5 ? "html%3Cspan%3Esee%3C/span%3E" : "html-span-see-/span-"; |
d18df41954ba
8187521: In some corner cases the javadoc tool can reuse id attribute
jjg
parents:
47300
diff
changeset
|
459 |
|
33920 | 460 |
// Test for search tags markup in index file. |
461 |
checkOutput("index-all.html", expectedOutput, |
|
462 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#phrasewithspaces\">" |
|
42263 | 463 |
+ "phrase with spaces</a></span> - Search tag in pkg</dt>", |
36705 | 464 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#pkg\">" |
42263 | 465 |
+ "pkg</a></span> - Search tag in pkg</dt>", |
36705 | 466 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#pkg2.5\">" |
42263 | 467 |
+ "pkg2.5</a></span> - Search tag in pkg</dt>", |
36705 | 468 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#r\">" |
42263 | 469 |
+ "r</a></span> - Search tag in pkg</dt>", |
33920 | 470 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg1/RegClass.html#searchphrase\">" |
42263 | 471 |
+ "search phrase</a></span> - Search tag in pkg1.RegClass</dt>", |
33920 | 472 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg1/RegClass.html#SearchWordWithDescription\">" |
42263 | 473 |
+ "SearchWordWithDescription</a></span> - Search tag in pkg1.RegClass.CONSTANT_FIELD_1</dt>", |
33920 | 474 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestAnnotationType.html#searchphrasewithdescdeprecated\">" |
42263 | 475 |
+ "search phrase with desc deprecated</a></span> - Search tag in pkg2.TestAnnotationType</dt>", |
33920 | 476 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestClass.html#SearchTagDeprecatedClass\">" |
42263 | 477 |
+ "SearchTagDeprecatedClass</a></span> - Search tag in pkg2.TestClass</dt>", |
478 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestEnum.html#searchphrasedeprecated\">" |
|
479 |
+ "search phrase deprecated</a></span> - Search tag in pkg2.TestEnum.ONE</dt>", |
|
33920 | 480 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestEnum.html#searchphrasedeprecated\">" |
42263 | 481 |
+ "search phrase deprecated</a></span> - Search tag in pkg2.TestEnum.ONE</dt>", |
33920 | 482 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
42263 | 483 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>", |
33920 | 484 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
42263 | 485 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>", |
33920 | 486 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#SingleWord\">" |
42263 | 487 |
+ "SingleWord</a></span> - Search tag in pkg</dt>", |
33920 | 488 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/AnotherClass.ModalExclusionType.html" |
42263 | 489 |
+ "#nested%7B@indexnested_tag_test%7D\">nested {@index nested_tag_test}</a></span> - " |
490 |
+ "Search tag in pkg.AnotherClass.ModalExclusionType.NO_EXCLUDE</dt>", |
|
33920 | 491 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/AnotherClass.ModalExclusionType.html" |
47328
d18df41954ba
8187521: In some corner cases the javadoc tool can reuse id attribute
jjg
parents:
47300
diff
changeset
|
492 |
+ "#" + html_span_see_span + "\">html <span> see </span></a></span> - Search " |
42263 | 493 |
+ "tag in pkg.AnotherClass.ModalExclusionType.APPLICATION_EXCLUDE</dt>", |
33920 | 494 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/AnotherClass.html#quoted\">quoted</a>" |
42263 | 495 |
+ "</span> - Search tag in pkg.AnotherClass.CONSTANT1</dt>", |
496 |
"<dt><span class=\"memberNameLink\"><a href=\"pkg2/TestEnum.html#ONE\">ONE</a></span> - " |
|
497 |
+ "pkg2.<a href=\"pkg2/TestEnum.html\" title=\"enum in pkg2\">TestEnum</a></dt>", |
|
498 |
"<dt><span class=\"memberNameLink\"><a href=\"pkg2/TestEnum.html#THREE\">THREE</a></span> - " |
|
499 |
+ "pkg2.<a href=\"pkg2/TestEnum.html\" title=\"enum in pkg2\">TestEnum</a></dt>", |
|
500 |
"<dt><span class=\"memberNameLink\"><a href=\"pkg2/TestEnum.html#TWO\">TWO</a></span> - " |
|
501 |
+ "pkg2.<a href=\"pkg2/TestEnum.html\" title=\"enum in pkg2\">TestEnum</a></dt>"); |
|
33920 | 502 |
checkOutput("index-all.html", true, |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
503 |
"<div class=\"deprecationComment\">class_test1 passes. Search tag" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
504 |
+ " <a id=\"SearchTagDeprecatedClass\" class=\"searchTagResult\">SearchTagDeprecatedClass</a></div>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
505 |
"<div class=\"deprecationComment\">error_test3 passes. Search tag for\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
506 |
+ " method <a id=\"SearchTagDeprecatedMethod\" class=\"searchTagResult\">SearchTagDeprecatedMethod</a></div>"); |
33920 | 507 |
} |
508 |
||
509 |
void checkSplitIndex() { |
|
510 |
// Test for search tags markup in split index file. |
|
42263 | 511 |
checkOutput("index-files/index-13.html", true, |
33920 | 512 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg1/RegClass.html#searchphrase\">" |
42263 | 513 |
+ "search phrase</a></span> - Search tag in pkg1.RegClass</dt>", |
33920 | 514 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg1/RegClass.html#SearchWordWithDescription\">" |
42263 | 515 |
+ "SearchWordWithDescription</a></span> - Search tag in pkg1.RegClass.CONSTANT_FIELD_1</dt>", |
33920 | 516 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestAnnotationType.html#searchphrasewithdescdeprecated\">" |
42263 | 517 |
+ "search phrase with desc deprecated</a></span> - Search tag in pkg2.TestAnnotationType</dt>", |
33920 | 518 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestClass.html#SearchTagDeprecatedClass\">" |
42263 | 519 |
+ "SearchTagDeprecatedClass</a></span> - Search tag in pkg2.TestClass</dt>", |
33920 | 520 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestEnum.html#searchphrasedeprecated\">" |
42263 | 521 |
+ "search phrase deprecated</a></span> - Search tag in pkg2.TestEnum.ONE</dt>", |
33920 | 522 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestEnum.html#searchphrasedeprecated\">" |
42263 | 523 |
+ "search phrase deprecated</a></span> - Search tag in pkg2.TestEnum.ONE</dt>", |
33920 | 524 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
42263 | 525 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>", |
33920 | 526 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
42263 | 527 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>", |
33920 | 528 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#SingleWord\">" |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
529 |
+ "SingleWord</a></span> - Search tag in pkg</dt>", |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
530 |
"<br><a href=\"../allclasses-index.html\">All Classes</a> " |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
531 |
+ "<a href=\"../allpackages-index.html\">All Packages</a>"); |
42263 | 532 |
checkOutput("index-files/index-10.html", true, |
33920 | 533 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#phrasewithspaces\">" |
42263 | 534 |
+ "phrase with spaces</a></span> - Search tag in pkg</dt>", |
36705 | 535 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#pkg\">" |
42263 | 536 |
+ "pkg</a></span> - Search tag in pkg</dt>", |
36705 | 537 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#pkg2.5\">" |
42263 | 538 |
+ "pkg2.5</a></span> - Search tag in pkg</dt>"); |
539 |
checkOutput("index-files/index-12.html", true, |
|
36705 | 540 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#r\">" |
42263 | 541 |
+ "r</a></span> - Search tag in pkg</dt>"); |
33920 | 542 |
checkOutput("index-files/index-8.html", true, |
543 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg/AnotherClass.ModalExclusionType.html" |
|
42263 | 544 |
+ "#nested%7B@indexnested_tag_test%7D\">nested {@index nested_tag_test}</a></span> - " |
545 |
+ "Search tag in pkg.AnotherClass.ModalExclusionType.NO_EXCLUDE</dt>"); |
|
33920 | 546 |
checkOutput("index-files/index-5.html", true, |
547 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg/AnotherClass.ModalExclusionType.html" |
|
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48991
diff
changeset
|
548 |
+ "#html%3Cspan%3Esee%3C/span%3E\">html <span> see </span></a></span> - Search " |
42263 | 549 |
+ "tag in pkg.AnotherClass.ModalExclusionType.APPLICATION_EXCLUDE</dt>"); |
550 |
checkOutput("index-files/index-11.html", true, |
|
33920 | 551 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg/AnotherClass.html#quoted\">quoted</a>" |
42263 | 552 |
+ "</span> - Search tag in pkg.AnotherClass.CONSTANT1</dt>"); |
553 |
checkOutput("index-files/index-9.html", true, |
|
554 |
"<dt><span class=\"memberNameLink\"><a href=\"../pkg2/TestEnum.html#ONE\">ONE</a>" |
|
555 |
+ "</span> - pkg2.<a href=\"../pkg2/TestEnum.html\" title=\"enum in pkg2\">TestEnum</a></dt>"); |
|
556 |
checkOutput("index-files/index-14.html", true, |
|
557 |
"<dt><span class=\"memberNameLink\"><a href=\"../pkg2/TestEnum.html#THREE\">THREE</a></span> - " |
|
558 |
+ "pkg2.<a href=\"../pkg2/TestEnum.html\" title=\"enum in pkg2\">TestEnum</a></dt>", |
|
559 |
"<dt><span class=\"memberNameLink\"><a href=\"../pkg2/TestEnum.html#TWO\">TWO</a></span> - " |
|
560 |
+ "pkg2.<a href=\"../pkg2/TestEnum.html\" title=\"enum in pkg2\">TestEnum</a></dt>"); |
|
33920 | 561 |
} |
562 |
||
563 |
void checkIndexNoComment() { |
|
564 |
// Test for search tags markup in index file when javadoc is executed with -nocomment. |
|
565 |
checkOutput("index-all.html", false, |
|
566 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#phrasewithspaces\">" |
|
42263 | 567 |
+ "phrase with spaces</a></span> - Search tag in pkg</dt>", |
36705 | 568 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#pkg\">" |
42263 | 569 |
+ "pkg</a></span> - Search tag in pkg</dt>", |
36705 | 570 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#pkg2.5\">" |
42263 | 571 |
+ "pkg2.5</a></span> - Search tag in pkg</dt>", |
36705 | 572 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#r\">" |
42263 | 573 |
+ "r</a></span> - Search tag in pkg</dt>", |
33920 | 574 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg1/RegClass.html#searchphrase\">" |
42263 | 575 |
+ "search phrase</a></span> - Search tag in pkg1.RegClass</dt>", |
33920 | 576 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg1/RegClass.html#SearchWordWithDescription\">" |
42263 | 577 |
+ "SearchWordWithDescription</a></span> - Search tag in pkg1.RegClass.CONSTANT_FIELD_1</dt>", |
33920 | 578 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestAnnotationType.html#searchphrasewithdescdeprecated\">" |
42263 | 579 |
+ "search phrase with desc deprecated</a></span> - Search tag in pkg2.TestAnnotationType</dt>", |
33920 | 580 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestClass.html#SearchTagDeprecatedClass\">" |
42263 | 581 |
+ "SearchTagDeprecatedClass</a></span> - Search tag in pkg2.TestClass</dt>", |
33920 | 582 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#SingleWord\">" |
42263 | 583 |
+ "SingleWord</a></span> - Search tag in pkg</dt>", |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
584 |
"<div class=\"deprecationComment\">class_test1 passes. Search tag" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
585 |
+ " <a id=\"SearchTagDeprecatedClass\">SearchTagDeprecatedClass</a></div>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
586 |
"<div class=\"deprecationComment\">error_test3 passes. Search tag for\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
587 |
+ " method <a id=\"SearchTagDeprecatedMethod\">SearchTagDeprecatedMethod</a></div>"); |
33920 | 588 |
checkOutput("index-all.html", true, |
589 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestEnum.html#searchphrasedeprecated\">" |
|
42263 | 590 |
+ "search phrase deprecated</a></span> - Search tag in pkg2.TestEnum.ONE</dt>", |
33920 | 591 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
42263 | 592 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>"); |
33920 | 593 |
} |
594 |
||
595 |
void checkIndexNoDeprecated() { |
|
596 |
// Test for search tags markup in index file when javadoc is executed using -nodeprecated. |
|
597 |
checkOutput("index-all.html", true, |
|
598 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#phrasewithspaces\">" |
|
42263 | 599 |
+ "phrase with spaces</a></span> - Search tag in pkg</dt>", |
33920 | 600 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg1/RegClass.html#searchphrase\">" |
42263 | 601 |
+ "search phrase</a></span> - Search tag in pkg1.RegClass</dt>", |
33920 | 602 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg1/RegClass.html#SearchWordWithDescription\">" |
42263 | 603 |
+ "SearchWordWithDescription</a></span> - Search tag in pkg1.RegClass.CONSTANT_FIELD_1</dt>", |
33920 | 604 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg/package-summary.html#SingleWord\">" |
42263 | 605 |
+ "SingleWord</a></span> - Search tag in pkg</dt>"); |
33920 | 606 |
checkOutput("index-all.html", false, |
607 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestAnnotationType.html#searchphrasewithdescdeprecated\">" |
|
42263 | 608 |
+ "search phrase with desc deprecated</a></span> - Search tag in pkg2.TestAnnotationType</dt>", |
33920 | 609 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestClass.html#SearchTagDeprecatedClass\">" |
42263 | 610 |
+ "SearchTagDeprecatedClass</a></span> - Search tag in pkg2.TestClass</dt>", |
33920 | 611 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestEnum.html#searchphrasedeprecated\">" |
42263 | 612 |
+ "search phrase deprecated</a></span> - Search tag in pkg2.TestEnum.ONE</dt>", |
33920 | 613 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
42263 | 614 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>", |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
615 |
"<div class=\"deprecationComment\">class_test1 passes. Search tag" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
616 |
+ " <a id=\"SearchTagDeprecatedClass\">SearchTagDeprecatedClass</a></div>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
617 |
"<div class=\"deprecationComment\">error_test3 passes. Search tag for\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47216
diff
changeset
|
618 |
+ " method <a id=\"SearchTagDeprecatedMethod\">SearchTagDeprecatedMethod</a></div>"); |
33920 | 619 |
} |
620 |
||
621 |
void checkJavaFXOutput() { |
|
622 |
checkOutput("index-all.html", false, "test treat as private"); |
|
623 |
} |
|
624 |
||
625 |
void checkInvalidUsageIndexTag() { |
|
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
626 |
checkOutput(Output.OUT, true, |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
627 |
"AnotherClass.java:29: warning - invalid usage of tag {@index", |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
628 |
"AnotherClass.java:41: warning - invalid usage of tag {@index", |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
629 |
"AnotherClass.java:36: warning - invalid usage of tag {@index", |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34567
diff
changeset
|
630 |
"AnotherClass.java:70: warning - invalid usage of tag {@index"); |
33920 | 631 |
} |
632 |
||
633 |
void checkJqueryAndImageFiles(boolean expectedOutput) { |
|
634 |
checkFiles(expectedOutput, |
|
635 |
"search.js", |
|
50575
72c694f035ee
8204666: javadoc should be updated to use jQuery 3.3.1
pmuthuswamy
parents:
50415
diff
changeset
|
636 |
"jquery/jquery-3.3.1.js", |
72c694f035ee
8204666: javadoc should be updated to use jQuery 3.3.1
pmuthuswamy
parents:
50415
diff
changeset
|
637 |
"jquery/jquery-migrate-3.0.1.js", |
33920 | 638 |
"jquery/jquery-ui.js", |
639 |
"jquery/jquery-ui.css", |
|
640 |
"jquery/jquery-ui.min.js", |
|
641 |
"jquery/jquery-ui.min.css", |
|
642 |
"jquery/jquery-ui.structure.min.css", |
|
643 |
"jquery/jquery-ui.structure.css", |
|
644 |
"jquery/external/jquery/jquery.js", |
|
645 |
"jquery/jszip/dist/jszip.js", |
|
646 |
"jquery/jszip/dist/jszip.min.js", |
|
647 |
"jquery/jszip-utils/dist/jszip-utils.js", |
|
648 |
"jquery/jszip-utils/dist/jszip-utils.min.js", |
|
649 |
"jquery/jszip-utils/dist/jszip-utils-ie.js", |
|
650 |
"jquery/jszip-utils/dist/jszip-utils-ie.min.js", |
|
52961
d67b37917e82
8214468: jQuery UI upgrade from 1.11.4 to 1.12.1
pmuthuswamy
parents:
52695
diff
changeset
|
651 |
"jquery/images/ui-bg_glass_65_dadada_1x400.png", |
33920 | 652 |
"jquery/images/ui-icons_454545_256x240.png", |
653 |
"jquery/images/ui-bg_glass_95_fef1ec_1x400.png", |
|
654 |
"jquery/images/ui-bg_glass_75_dadada_1x400.png", |
|
655 |
"jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png", |
|
656 |
"jquery/images/ui-icons_888888_256x240.png", |
|
657 |
"jquery/images/ui-icons_2e83ff_256x240.png", |
|
658 |
"jquery/images/ui-icons_cd0a0a_256x240.png", |
|
659 |
"jquery/images/ui-bg_glass_55_fbf9ee_1x400.png", |
|
660 |
"jquery/images/ui-icons_222222_256x240.png", |
|
661 |
"jquery/images/ui-bg_glass_75_e6e6e6_1x400.png", |
|
662 |
"resources/x.png", |
|
663 |
"resources/glass.png"); |
|
664 |
} |
|
41523
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
665 |
|
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
666 |
void checkSearchJS() { |
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
667 |
checkOutput("search.js", true, |
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
668 |
"camelCaseRegexp = ($.ui.autocomplete.escapeRegex(request.term)).split(/(?=[A-Z])/).join(\"([a-z0-9_$]*?)\");", |
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
669 |
"var camelCaseMatcher = new RegExp(\"^\" + camelCaseRegexp);", |
43762
515fe48569fe
8168965: search items are not listed in any sensible order
bpatel
parents:
43370
diff
changeset
|
670 |
"camelCaseMatcher.test(item.l)", |
515fe48569fe
8168965: search items are not listed in any sensible order
bpatel
parents:
43370
diff
changeset
|
671 |
"var secondaryresult = new Array();", |
515fe48569fe
8168965: search items are not listed in any sensible order
bpatel
parents:
43370
diff
changeset
|
672 |
"function nestedName(e) {", |
50856
1857ca5aca37
8190876: javadoc search on "java.se" shows "java.se" the last one among other modules
hannesw
parents:
50575
diff
changeset
|
673 |
"function concatResults(a1, a2) {", |
44296
e9bbaeab6f49
8176794: javadoc search results sorted incorrectly on packages
bpatel
parents:
43762
diff
changeset
|
674 |
"if (exactMatcher.test(item.l)) {\n" |
50856
1857ca5aca37
8190876: javadoc search on "java.se" shows "java.se" the last one among other modules
hannesw
parents:
50575
diff
changeset
|
675 |
+ " presult.push(item);", |
45496 | 676 |
"$(\"#search\").on('click keydown', function() {\n" |
677 |
+ " if ($(this).val() == watermark) {\n" |
|
678 |
+ " $(this).val('').removeClass('watermark');\n" |
|
679 |
+ " }\n" |
|
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
680 |
+ " });", |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
681 |
"function getURLPrefix(ui) {\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
682 |
+ " var urlPrefix=\"\";\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
683 |
+ " if (useModuleDirectories) {\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
684 |
+ " var slash = \"/\";\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
685 |
+ " if (ui.item.category === catModules) {\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
686 |
+ " return ui.item.l + slash;\n" |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
687 |
+ " } else if (ui.item.category === catPackages && ui.item.m) {\n" |
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
688 |
+ " return ui.item.m + slash;\n" |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
689 |
+ " } else if ((ui.item.category === catTypes && ui.item.p) || ui.item.category === catMembers) {\n" |
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
690 |
+ " $.each(packageSearchIndex, function(index, item) {\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
691 |
+ " if (ui.item.p == item.l) {\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
692 |
+ " urlPrefix = item.m + slash;\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
693 |
+ " }\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
694 |
+ " });\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
695 |
+ " return urlPrefix;\n" |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
696 |
+ " } else {\n" |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
697 |
+ " return urlPrefix;\n" |
48991
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
698 |
+ " }\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
699 |
+ " }\n" |
978c3036fbfc
8198522: Javadoc search broken after output files organization for modules
bpatel
parents:
47328
diff
changeset
|
700 |
+ " return urlPrefix;\n" |
49427
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
701 |
+ "}", |
d2fd2581325b
8199278: Javadoc search results does not link to anchors on a page
bpatel
parents:
49139
diff
changeset
|
702 |
"url += ui.item.l;"); |
41523
da4f500b886d
8141636: Javadoc search should support camelCase search
bpatel
parents:
41451
diff
changeset
|
703 |
} |
45913
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
704 |
|
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
705 |
void checkSingleIndexSearchTagDuplication() { |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
706 |
// Test for search tags duplication in index file. |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
707 |
checkOutput("index-all.html", true, |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
708 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
709 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>\n" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
710 |
+ "<dd>with description</dd>"); |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
711 |
checkOutput("index-all.html", false, |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
712 |
"<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
713 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>\n" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
714 |
+ "<dd>with description</dd>\n" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
715 |
+ "<dt><span class=\"searchTagLink\"><a href=\"pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
716 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>\n" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
717 |
+ "<dd>with description</dd>"); |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
718 |
} |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
719 |
|
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
720 |
void checkSplitIndexSearchTagDuplication() { |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
721 |
// Test for search tags duplication in index file. |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
722 |
checkOutput("index-files/index-13.html", true, |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
723 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
724 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>\n" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
725 |
+ "<dd>with description</dd>"); |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
726 |
checkOutput("index-files/index-13.html", false, |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
727 |
"<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
728 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>\n" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
729 |
+ "<dd>with description</dd>\n" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
730 |
+ "<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
731 |
+ "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>\n" |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
732 |
+ "<dd>with description</dd>"); |
90f6a96c1603
8181622: new {@index} tag generates multiple index entries
bpatel
parents:
45496
diff
changeset
|
733 |
} |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
734 |
|
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
735 |
void checkAllPkgsAllClasses() { |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
736 |
checkOutput("allclasses-index.html", true, |
52616
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
737 |
"<div class=\"typeSummary\">\n" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
738 |
+ "<div role=\"tablist\" aria-orientation=\"horizontal\"><button role=\"tab\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
739 |
+ " aria-selected=\"true\" aria-controls=\"typeSummary_tabpanel\" tabindex=\"0\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
740 |
+ " onkeydown=\"switchTab(event)\" id=\"t0\" class=\"activeTableTab\">All Classes</button>" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
741 |
+ "<button role=\"tab\" aria-selected=\"false\" aria-controls=\"typeSummary_tabpanel\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
742 |
+ " tabindex=\"-1\" onkeydown=\"switchTab(event)\" id=\"t1\" class=\"tableTab\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
743 |
+ " onclick=\"show(1);\">Interface Summary</button><button role=\"tab\" aria-selected=\"false\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
744 |
+ " aria-controls=\"typeSummary_tabpanel\" tabindex=\"-1\" onkeydown=\"switchTab(event)\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
745 |
+ " id=\"t2\" class=\"tableTab\" onclick=\"show(2);\">Class Summary</button><button role=\"tab\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
746 |
+ " aria-selected=\"false\" aria-controls=\"typeSummary_tabpanel\" tabindex=\"-1\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
747 |
+ " onkeydown=\"switchTab(event)\" id=\"t3\" class=\"tableTab\" onclick=\"show(4);\">" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
748 |
+ "Enum Summary</button><button role=\"tab\" aria-selected=\"false\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
749 |
+ " aria-controls=\"typeSummary_tabpanel\" tabindex=\"-1\" onkeydown=\"switchTab(event)\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
750 |
+ " id=\"t4\" class=\"tableTab\" onclick=\"show(8);\">Exception Summary</button><button role=\"tab\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
751 |
+ " aria-selected=\"false\" aria-controls=\"typeSummary_tabpanel\" tabindex=\"-1\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
752 |
+ " onkeydown=\"switchTab(event)\" id=\"t5\" class=\"tableTab\" onclick=\"show(16);\">" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
753 |
+ "Error Summary</button><button role=\"tab\" aria-selected=\"false\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
754 |
+ " aria-controls=\"typeSummary_tabpanel\" tabindex=\"-1\" onkeydown=\"switchTab(event)\"" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
755 |
+ " id=\"t6\" class=\"tableTab\" onclick=\"show(32);\">Annotation Types Summary</button></div>\n" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
756 |
+ "<div id=\"typeSummary_tabpanel\" role=\"tabpanel\">\n" |
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
757 |
+ "<table aria-labelledby=\"t0\">\n" |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
758 |
+ "<tr>\n" |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
759 |
+ "<th class=\"colFirst\" scope=\"col\">Class</th>\n" |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
760 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
761 |
+ "</tr>", |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
762 |
"var data = {\"i0\":32,\"i1\":2,\"i2\":4,\"i3\":2,\"i4\":2,\"i5\":1,\"i6\":2,\"i7\":32," |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
763 |
+ "\"i8\":2,\"i9\":4,\"i10\":16,\"i11\":16,\"i12\":8,\"i13\":8,\"i14\":1,\"i15\":2};"); |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
764 |
checkOutput("allpackages-index.html", true, |
52616
1a395165c09b
8184205: Captions on tabbed tables are squashed together
pmuthuswamy
parents:
50856
diff
changeset
|
765 |
"<div class=\"packagesSummary\">\n<table>\n" |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
766 |
+ "<caption><span>Package Summary</span><span class=\"tabEnd\"> </span></caption>\n" |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
767 |
+ "<tr>\n" |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
768 |
+ "<th class=\"colFirst\" scope=\"col\">Package</th>\n" |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
769 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
770 |
+ "</tr>\n"); |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
771 |
checkOutput("type-search-index.js", true, |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
772 |
"{\"l\":\"All Classes\",\"url\":\"allclasses-index.html\"}"); |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
773 |
checkOutput("package-search-index.js", true, |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
774 |
"{\"l\":\"All Packages\",\"url\":\"allpackages-index.html\"}"); |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
775 |
checkOutput("index-all.html", true, |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
776 |
"<br><a href=\"allclasses-index.html\">All Classes</a> " |
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
777 |
+ "<a href=\"allpackages-index.html\">All Packages</a>"); |
33920 | 778 |
} |
50167
cc705c956798
8196201: Generate pages to list all classes and all packages in javadoc output
bpatel
parents:
50118
diff
changeset
|
779 |
} |