author | pmuthuswamy |
Wed, 30 Jan 2019 16:39:26 +0530 | |
changeset 53562 | 0d9dee001667 |
parent 53097 | 2e82ca64b25d |
child 53879 | e7cb0348fa1c |
permissions | -rw-r--r-- |
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
1 |
/* |
53562 | 2 |
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. |
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
4 |
* |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
8 |
* |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
13 |
* accompanied this code). |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
14 |
* |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
18 |
* |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
21 |
* questions. |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
22 |
*/ |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
23 |
|
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
24 |
/* |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
25 |
* @test |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
49879
diff
changeset
|
26 |
* @bug 8039410 8042601 8042829 8049393 8050031 8155061 8155995 8167967 8169813 8182765 8196202 |
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
27 |
* @summary test to determine if members are ordered correctly |
53097 | 28 |
* @library ../../lib/ |
36526 | 29 |
* @modules jdk.javadoc/jdk.javadoc.internal.tool |
53097 | 30 |
* @build javadoc.tester.* |
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
31 |
* @run main TestOrdering |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
32 |
*/ |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
33 |
|
25004
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
34 |
import java.io.File; |
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
35 |
import java.io.IOException; |
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
36 |
import java.nio.file.Files; |
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
37 |
import java.util.ArrayList; |
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
38 |
import java.util.Arrays; |
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
39 |
import java.util.Collections; |
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
40 |
import java.util.List; |
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
41 |
|
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
42 |
import static java.nio.file.StandardOpenOption.*; |
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
43 |
|
53097 | 44 |
import javadoc.tester.JavadocTester; |
45 |
||
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24394
diff
changeset
|
46 |
public class TestOrdering extends JavadocTester { |
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
47 |
|
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
48 |
public static void main(String[] args) throws Exception { |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
49 |
TestOrdering tester = new TestOrdering(); |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24394
diff
changeset
|
50 |
tester.runTests(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24394
diff
changeset
|
51 |
} |
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
52 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24394
diff
changeset
|
53 |
@Test |
53097 | 54 |
public void testUnnamedPackagesForClassUse() { |
55 |
new UnnamedPackageForClassUseTest().run(); |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24394
diff
changeset
|
56 |
} |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24394
diff
changeset
|
57 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24394
diff
changeset
|
58 |
@Test |
53097 | 59 |
public void testNamedPackagesForClassUse() { |
60 |
new NamedPackagesForClassUseTest().run(); |
|
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
61 |
} |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
62 |
|
25004
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
63 |
@Test |
53097 | 64 |
public void testIndexOrdering() throws IOException { |
65 |
new IndexOrderingTest().run(); |
|
25004
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
66 |
} |
25300
3b8a5067fe29
8047162: [javadoc] index files are non deterministic
ksrini
parents:
25004
diff
changeset
|
67 |
|
3b8a5067fe29
8047162: [javadoc] index files are non deterministic
ksrini
parents:
25004
diff
changeset
|
68 |
@Test |
53097 | 69 |
public void testIndexTypeClustering() { |
70 |
new IndexTypeClusteringTest().run(); |
|
25300
3b8a5067fe29
8047162: [javadoc] index files are non deterministic
ksrini
parents:
25004
diff
changeset
|
71 |
} |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
30730
diff
changeset
|
72 |
|
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
30730
diff
changeset
|
73 |
@Test |
53097 | 74 |
public void testTypeElementMemberOrdering() { |
75 |
new TypeElementMemberOrderingTest().run(); |
|
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
30730
diff
changeset
|
76 |
} |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
30730
diff
changeset
|
77 |
|
53097 | 78 |
class UnnamedPackageForClassUseTest { |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
79 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
80 |
void run() { |
53097 | 81 |
javadoc("-d", "out", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
82 |
"-sourcepath", testSrc, |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
83 |
"-use", |
53097 | 84 |
testSrc("C.java"), testSrc("UsedInC.java")); |
85 |
checkExit(Exit.OK); |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
86 |
checkExecutableMemberOrdering("class-use/UsedInC.html"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
87 |
} |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
30730
diff
changeset
|
88 |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
89 |
void checkExecutableMemberOrdering(String usePage) { |
53097 | 90 |
String contents = readFile(usePage); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
91 |
// check constructors |
53097 | 92 |
checking("constructors"); |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
93 |
int idx1 = contents.indexOf("C.html#%3Cinit%3E(UsedInC"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
94 |
int idx2 = contents.indexOf("C.html#%3Cinit%3E(UsedInC,int"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
95 |
int idx3 = contents.indexOf("C.html#%3Cinit%3E(UsedInC,java.lang.String"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
96 |
if (idx1 == -1 || idx2 == -1 || idx3 == -1) { |
53097 | 97 |
failed("ctor strings not found"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
98 |
} else if (idx1 > idx2 || idx2 > idx3 || idx1 > idx3) { |
53097 | 99 |
failed("ctor strings are out of order"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
100 |
} else { |
53097 | 101 |
passed("ctor strings are in order"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
102 |
} |
40511 | 103 |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
104 |
// check methods |
53097 | 105 |
checking("methods"); |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
106 |
idx1 = contents.indexOf("C.html#ymethod(int"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
107 |
idx2 = contents.indexOf("C.html#ymethod(java.lang.String"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
108 |
if (idx1 == -1 || idx2 == -1) { |
53097 | 109 |
failed("#ymethod strings not found"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
110 |
} else if (idx1 > idx2) { |
53097 | 111 |
failed("#ymethod strings are out of order"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
112 |
} else { |
53097 | 113 |
passed("Executable Member Ordering: OK"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
114 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
115 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
116 |
} |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
117 |
|
53097 | 118 |
class NamedPackagesForClassUseTest { |
40511 | 119 |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
120 |
public void run() { |
53097 | 121 |
javadoc("-d", "out-1", |
122 |
"-sourcepath", testSrc, |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
123 |
"-use", |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
49879
diff
changeset
|
124 |
"--frames", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
125 |
"pkg1"); |
53097 | 126 |
checkExit(Exit.OK); |
127 |
checkFiles(false, "allclasses-noframe.html"); |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
128 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
129 |
checkClassUseOrdering("pkg1/class-use/UsedClass.html"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
130 |
|
53097 | 131 |
checkOrder("pkg1/class-use/UsedClass.html", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
132 |
"../MethodOrder.html#m()", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
133 |
"../MethodOrder.html#m(byte%5B%5D)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
134 |
"../MethodOrder.html#m(double)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
135 |
"../MethodOrder.html#m(double,double)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
136 |
"../MethodOrder.html#m(double,java.lang.Double)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
137 |
"../MethodOrder.html#m(int)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
138 |
"../MethodOrder.html#m(int,int)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
139 |
"../MethodOrder.html#m(int,java.lang.Integer)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
140 |
"../MethodOrder.html#m(long)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
141 |
"../MethodOrder.html#m(long,long)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
142 |
"../MethodOrder.html#m(long,java.lang.Long)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
143 |
"../MethodOrder.html#m(long,java.lang.Long...)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
144 |
"../MethodOrder.html#m(java.lang.Double)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
145 |
"../MethodOrder.html#m(java.lang.Double,double)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
146 |
"../MethodOrder.html#m(java.lang.Double,java.lang.Double)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
147 |
"../MethodOrder.html#m(java.lang.Integer)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
148 |
"../MethodOrder.html#m(java.lang.Integer,int)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
149 |
"../MethodOrder.html#m(java.lang.Integer,java.lang.Integer)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
150 |
"../MethodOrder.html#m(java.lang.Object%5B%5D)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
151 |
"../MethodOrder.html#m(java.util.ArrayList)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
152 |
"../MethodOrder.html#m(java.util.Collection)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
153 |
"../MethodOrder.html#m(java.util.List)"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
154 |
|
53097 | 155 |
checkOrder("pkg1/class-use/UsedClass.html", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
156 |
"../MethodOrder.html#tpm(pkg1.UsedClass)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
157 |
"../MethodOrder.html#tpm(pkg1.UsedClass,pkg1.UsedClass)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
158 |
"../MethodOrder.html#tpm(pkg1.UsedClass,pkg1.UsedClass%5B%5D)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
159 |
"../MethodOrder.html#tpm(pkg1.UsedClass,java.lang.String)"); |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
160 |
|
53097 | 161 |
checkOrder("pkg1/class-use/UsedClass.html", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
162 |
"../A.html#%3Cinit%3E(pkg1.UsedClass)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
163 |
"../B.A.html#%3Cinit%3E(pkg1.UsedClass)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
164 |
"../B.html#%3Cinit%3E(pkg1.UsedClass)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
165 |
"../A.C.html#%3Cinit%3E(pkg1.UsedClass,java.lang.Object%5B%5D)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
166 |
"../A.C.html#%3Cinit%3E(pkg1.UsedClass,java.util.Collection)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
167 |
"../A.C.html#%3Cinit%3E(pkg1.UsedClass,java.util.List)"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
168 |
|
53097 | 169 |
checkOrder("pkg1/ImplementsOrdering.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
170 |
"<dd><code>close</code> in interface <code>java.lang.AutoCloseable</code></dd>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
171 |
"<dd><code>close</code> in interface <code>java.nio.channels.Channel</code></dd>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
172 |
"<dd><code>close</code> in interface <code>java.io.Closeable</code></dd>"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
173 |
|
53097 | 174 |
checkOrder("pkg1/OverrideOrdering.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
175 |
"<dd><code>iterator</code> in interface <code>java.util.Collection<", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
176 |
"<dd><code>iterator</code> in interface <code>java.lang.Iterable<"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
177 |
|
53097 | 178 |
checkOrder("allclasses-frame.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
179 |
"pkg1/A.html\" title=\"class in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
180 |
"pkg1/A.C.html\" title=\"class in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
181 |
"pkg1/B.html\" title=\"class in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
182 |
"pkg1/B.A.html\" title=\"class in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
183 |
"pkg1/C1.html\" title=\"class in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
184 |
"pkg1/C2.html\" title=\"class in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
185 |
"pkg1/C3.html\" title=\"class in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
186 |
"pkg1/C4.html\" title=\"class in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
187 |
"pkg1/ImplementsOrdering.html\" title=\"interface in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
188 |
"pkg1/MethodOrder.html\" title=\"class in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
189 |
"pkg1/OverrideOrdering.html\" title=\"class in pkg1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
190 |
"pkg1/UsedClass.html\" title=\"class in pkg1"); |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
191 |
} |
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
192 |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
193 |
void checkClassUseOrdering(String usePage) { |
48654
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
194 |
checkClassUseOrdering(usePage, "C#ITERATION#.html#zfield"); |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
195 |
checkClassUseOrdering(usePage, "C#ITERATION#.html#fieldInC#ITERATION#"); |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
196 |
checkClassUseOrdering(usePage, "C#ITERATION#.html#zmethod(pkg1.UsedClass"); |
48654
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
197 |
checkClassUseOrdering(usePage, "C#ITERATION#.html#methodInC#ITERATION#"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
198 |
} |
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
199 |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
200 |
void checkClassUseOrdering(String usePage, String searchString) { |
53097 | 201 |
String contents = readFile(usePage); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
202 |
int lastidx = 0; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
203 |
System.out.println("testing for " + searchString); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
204 |
for (int i = 1; i < 5; i++) { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
205 |
String s = searchString.replaceAll("#ITERATION#", Integer.toString(i)); |
53097 | 206 |
checking(s); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
207 |
int idx = contents.indexOf(s); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
208 |
if (idx < lastidx) { |
53097 | 209 |
failed(s + ", member ordering error, last:" + lastidx + ", got:" + idx); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
210 |
} else { |
53097 | 211 |
passed("\tlast: " + lastidx + " got:" + idx); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
212 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
213 |
lastidx = idx; |
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
214 |
} |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
215 |
} |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
216 |
} |
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
217 |
|
53097 | 218 |
enum ListOrder { |
219 |
NONE, REVERSE, SHUFFLE |
|
220 |
}; |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
221 |
|
53097 | 222 |
class IndexOrderingTest { |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
223 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
224 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
225 |
/* |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
226 |
* By default we do not shuffle the input list, in order to keep the list deterministic, |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
227 |
* and the test predictable. However, we can turn on the stress mode, by setting the following |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
228 |
* property if required. |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
229 |
*/ |
53097 | 230 |
final ListOrder STRESS_MODE = Boolean.getBoolean("TestOrder.STRESS") |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
231 |
? ListOrder.SHUFFLE |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
232 |
: ListOrder.REVERSE; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
233 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
234 |
/* |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
235 |
* Controls the number of children packages, pkg0, pkg0.pkg, pkg0.pkg.pkg, ..... |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
236 |
* Note: having too long a depth (> 256 chars on Windows), will likely lead to |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
237 |
* cause problems with automated build and test systems. |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
238 |
*/ |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
239 |
static final int MAX_SUBPACKAGES_DEPTH = 4; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
240 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
241 |
/* |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
242 |
* Controls the number of sibling packages, pkg0, pkg1, pkg2, ..... |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
243 |
*/ |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
244 |
static final int MAX_PACKAGES = 4; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
245 |
|
53097 | 246 |
String[] contents = { |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
247 |
"public add ADDADD;", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
248 |
"public add AddAdd;", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
249 |
"public add addadd;", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
250 |
"public enum add {add, ADD, addd, ADDD};", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
251 |
"public enum ADD {ADD, add, addd, ADDD};", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
252 |
"public void add(){}", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
253 |
"public void add(double d){}", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
254 |
"public void add(int i, float f){}", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
255 |
"public void add(float f, int i){}", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
256 |
"public void add(double d, byte b){}", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
257 |
"public Double add(Double d) {return (double) 22/7;}", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
258 |
"public double add(double d1, double d2) {return d1 + d2;}", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
259 |
"public double add(double d1, Double d2) {return d1 + d2;}", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
260 |
"public Float add(float f) {return (float) 22/7;}", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
261 |
"public void add(int i){}", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
262 |
"public int add(Integer i) {return 0;}" |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
263 |
}; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
264 |
|
53097 | 265 |
String expectedEnumOrdering[] = { |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
266 |
"Add.add.html\" title=\"enum in REPLACE_ME\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
267 |
"Add.ADD.html\" title=\"enum in REPLACE_ME\"" |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
268 |
}; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
269 |
|
53097 | 270 |
String expectedFieldOrdering[] = { |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
271 |
"Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
272 |
"add0/add/add/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
273 |
"add0/add/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
274 |
"add0/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
275 |
"add0/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
276 |
"add1/add/add/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
277 |
"add1/add/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
278 |
"add1/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
279 |
"add1/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
280 |
"add2/add/add/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
281 |
"add2/add/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
282 |
"add2/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
283 |
"add2/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
284 |
"add3/add/add/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
285 |
"add3/add/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
286 |
"add3/add/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
287 |
"add3/Add.html#addadd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
288 |
"Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
289 |
"add0/add/add/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
290 |
"add0/add/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
291 |
"add0/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
292 |
"add0/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
293 |
"add1/add/add/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
294 |
"add1/add/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
295 |
"add1/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
296 |
"add1/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
297 |
"add2/add/add/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
298 |
"add2/add/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
299 |
"add2/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
300 |
"add2/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
301 |
"add3/add/add/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
302 |
"add3/add/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
303 |
"add3/add/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
304 |
"add3/Add.html#AddAdd\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
305 |
"Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
306 |
"add0/add/add/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
307 |
"add0/add/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
308 |
"add0/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
309 |
"add0/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
310 |
"add1/add/add/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
311 |
"add1/add/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
312 |
"add1/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
313 |
"add1/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
314 |
"add2/add/add/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
315 |
"add2/add/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
316 |
"add2/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
317 |
"add2/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
318 |
"add3/add/add/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
319 |
"add3/add/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
320 |
"add3/add/Add.html#ADDADD\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
321 |
"add3/Add.html#ADDADD\"" |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
322 |
}; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
323 |
|
53097 | 324 |
String expectedMethodOrdering[] = { |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
325 |
"Add.html#add()", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
326 |
"Add.html#add(double)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
327 |
"Add.html#add(double,byte)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
328 |
"Add.html#add(double,double)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
329 |
"Add.html#add(double,java.lang.Double)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
330 |
"Add.html#add(float)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
331 |
"Add.html#add(float,int)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
332 |
"Add.html#add(int)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
333 |
"Add.html#add(int,float)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
334 |
"Add.html#add(java.lang.Double)", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
335 |
"Add.html#add(java.lang.Integer)" |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
336 |
}; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
337 |
|
53097 | 338 |
String expectedPackageOrdering[] = { |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
339 |
"\"add0/package-summary.html\">add0</a> - package add0", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
340 |
"\"add0/add/package-summary.html\">add0.add</a> - package add0.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
341 |
"\"add0/add/add/package-summary.html\">add0.add.add</a> - package add0.add.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
342 |
"\"add0/add/add/add/package-summary.html\">add0.add.add.add</a> - package add0.add.add.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
343 |
"\"add1/package-summary.html\">add1</a> - package add1", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
344 |
"\"add1/add/package-summary.html\">add1.add</a> - package add1.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
345 |
"\"add1/add/add/package-summary.html\">add1.add.add</a> - package add1.add.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
346 |
"\"add1/add/add/add/package-summary.html\">add1.add.add.add</a> - package add1.add.add.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
347 |
"\"add2/package-summary.html\">add2</a> - package add2", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
348 |
"\"add2/add/package-summary.html\">add2.add</a> - package add2.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
349 |
"\"add2/add/add/package-summary.html\">add2.add.add</a> - package add2.add.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
350 |
"\"add2/add/add/add/package-summary.html\">add2.add.add.add</a> - package add2.add.add.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
351 |
"\"add3/package-summary.html\">add3</a> - package add3", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
352 |
"\"add3/add/package-summary.html\">add3.add</a> - package add3.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
353 |
"\"add3/add/add/package-summary.html\">add3.add.add</a> - package add3.add.add", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
354 |
"\"add3/add/add/add/package-summary.html\">add3.add.add.add</a> - package add3.add.add.add" |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
355 |
}; |
25004
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
356 |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
357 |
void run() throws IOException { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
358 |
final String clsname = "Add"; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
359 |
List<String> cmdArgs = new ArrayList(); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
360 |
cmdArgs.add("-d"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
361 |
cmdArgs.add("out-2"); |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
49879
diff
changeset
|
362 |
cmdArgs.add("--frames"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
363 |
cmdArgs.add("-sourcepath"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
364 |
cmdArgs.add("src"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
365 |
cmdArgs.add("-package"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
366 |
System.out.println("STRESS_MODE: " + STRESS_MODE); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
367 |
emitFile(null, clsname, STRESS_MODE); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
368 |
for (int width = 0; width < MAX_PACKAGES; width++) { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
369 |
String wpkgname = "add" + width; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
370 |
String dpkgname = wpkgname; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
371 |
emitFile(wpkgname, clsname, ListOrder.NONE); // list as-is |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
372 |
cmdArgs.add(wpkgname); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
373 |
for (int depth = 1; depth < MAX_SUBPACKAGES_DEPTH; depth++) { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
374 |
dpkgname = dpkgname + ".add"; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
375 |
emitFile(dpkgname, clsname, STRESS_MODE); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
376 |
cmdArgs.add(dpkgname); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
377 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
378 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
379 |
File srcDir = new File(new File("."), "src"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
380 |
cmdArgs.add(new File(srcDir, clsname + ".java").getPath()); |
53097 | 381 |
javadoc(cmdArgs.toArray(new String[cmdArgs.size()])); |
382 |
checkExit(Exit.OK); |
|
383 |
checkOrder("index-all.html", composeTestVectors()); |
|
384 |
checkOrder("add0/add/package-tree.html", |
|
48654
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
385 |
"<a href=\"Add.add.html\" title=\"enum in add0.add\">", |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
386 |
"<a href=\"Add.ADD.html\" title=\"enum in add0.add\">"); |
53097 | 387 |
checkOrder("overview-tree.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
388 |
"<a href=\"Add.add.html\" title=\"enum in <Unnamed>\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
389 |
"<a href=\"add0/Add.add.html\" title=\"enum in add0\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
390 |
"<a href=\"add0/add/Add.add.html\" title=\"enum in add0.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
391 |
"<a href=\"add0/add/add/Add.add.html\" title=\"enum in add0.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
392 |
"<a href=\"add0/add/add/add/Add.add.html\" title=\"enum in add0.add.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
393 |
"<a href=\"add1/Add.add.html\" title=\"enum in add1\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
394 |
"<a href=\"add1/add/Add.add.html\" title=\"enum in add1.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
395 |
"<a href=\"add1/add/add/Add.add.html\" title=\"enum in add1.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
396 |
"<a href=\"add1/add/add/add/Add.add.html\" title=\"enum in add1.add.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
397 |
"<a href=\"add2/Add.add.html\" title=\"enum in add2\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
398 |
"<a href=\"add2/add/Add.add.html\" title=\"enum in add2.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
399 |
"<a href=\"add2/add/add/Add.add.html\" title=\"enum in add2.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
400 |
"<a href=\"add2/add/add/add/Add.add.html\" title=\"enum in add2.add.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
401 |
"<a href=\"add3/Add.add.html\" title=\"enum in add3\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
402 |
"<a href=\"add3/add/Add.add.html\" title=\"enum in add3.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
403 |
"<a href=\"add3/add/add/Add.add.html\" title=\"enum in add3.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
404 |
"<a href=\"add3/add/add/add/Add.add.html\" title=\"enum in add3.add.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
405 |
"<a href=\"Add.ADD.html\" title=\"enum in <Unnamed>\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
406 |
"<a href=\"add0/Add.ADD.html\" title=\"enum in add0\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
407 |
"<a href=\"add0/add/Add.ADD.html\" title=\"enum in add0.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
408 |
"<a href=\"add0/add/add/Add.ADD.html\" title=\"enum in add0.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
409 |
"<a href=\"add0/add/add/add/Add.ADD.html\" title=\"enum in add0.add.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
410 |
"<a href=\"add1/Add.ADD.html\" title=\"enum in add1\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
411 |
"<a href=\"add1/add/Add.ADD.html\" title=\"enum in add1.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
412 |
"<a href=\"add1/add/add/Add.ADD.html\" title=\"enum in add1.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
413 |
"<a href=\"add1/add/add/add/Add.ADD.html\" title=\"enum in add1.add.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
414 |
"<a href=\"add2/Add.ADD.html\" title=\"enum in add2\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
415 |
"<a href=\"add2/add/Add.ADD.html\" title=\"enum in add2.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
416 |
"<a href=\"add2/add/add/Add.ADD.html\" title=\"enum in add2.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
417 |
"<a href=\"add2/add/add/add/Add.ADD.html\" title=\"enum in add2.add.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
418 |
"<a href=\"add3/Add.ADD.html\" title=\"enum in add3\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
419 |
"<a href=\"add3/add/Add.ADD.html\" title=\"enum in add3.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
420 |
"<a href=\"add3/add/add/Add.ADD.html\" title=\"enum in add3.add.add\">", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
421 |
"<a href=\"add3/add/add/add/Add.ADD.html\" title=\"enum in add3.add.add.add\">"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
422 |
|
53097 | 423 |
checkOrder("overview-frame.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
424 |
"<a href=\"package-frame.html\" target=\"packageFrame\"><unnamed package></a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
425 |
"<a href=\"add0/package-frame.html\" target=\"packageFrame\">add0</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
426 |
"<a href=\"add0/add/package-frame.html\" target=\"packageFrame\">add0.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
427 |
"<a href=\"add0/add/add/package-frame.html\" target=\"packageFrame\">add0.add.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
428 |
"<a href=\"add0/add/add/add/package-frame.html\" target=\"packageFrame\">add0.add.add.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
429 |
"<a href=\"add1/package-frame.html\" target=\"packageFrame\">add1</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
430 |
"<a href=\"add1/add/package-frame.html\" target=\"packageFrame\">add1.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
431 |
"<a href=\"add1/add/add/package-frame.html\" target=\"packageFrame\">add1.add.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
432 |
"<a href=\"add1/add/add/add/package-frame.html\" target=\"packageFrame\">add1.add.add.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
433 |
"<a href=\"add2/package-frame.html\" target=\"packageFrame\">add2</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
434 |
"<a href=\"add2/add/package-frame.html\" target=\"packageFrame\">add2.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
435 |
"<a href=\"add2/add/add/package-frame.html\" target=\"packageFrame\">add2.add.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
436 |
"<a href=\"add2/add/add/add/package-frame.html\" target=\"packageFrame\">add2.add.add.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
437 |
"<a href=\"add3/package-frame.html\" target=\"packageFrame\">add3</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
438 |
"<a href=\"add3/add/package-frame.html\" target=\"packageFrame\">add3.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
439 |
"<a href=\"add3/add/add/package-frame.html\" target=\"packageFrame\">add3.add.add</a>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
440 |
"<a href=\"add3/add/add/add/package-frame.html\" target=\"packageFrame\">add3.add.add.add</a></li>"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
441 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
442 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
443 |
void emitFile(String pkgname, String clsname, ListOrder order) throws IOException { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
444 |
File srcDir = new File("src"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
445 |
File outDir = pkgname == null |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
446 |
? srcDir |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
447 |
: new File(srcDir, pkgname.replace(".", File.separator)); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
448 |
File outFile = new File(outDir, clsname + ".java"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
449 |
outDir.mkdirs(); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
450 |
List<String> scratch = new ArrayList<>(Arrays.asList(contents)); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
451 |
switch (order) { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
452 |
case SHUFFLE: |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
453 |
Collections.shuffle(scratch); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
454 |
break; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
455 |
case REVERSE: |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
456 |
Collections.reverse(scratch); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
457 |
break; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
458 |
default: |
25004
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
459 |
// leave list as-is |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
460 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
461 |
// insert the header |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
462 |
scratch.add(0, "public class " + clsname + " {"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
463 |
if (pkgname != null) { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
464 |
scratch.add(0, "package " + pkgname + ";"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
465 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
466 |
// append the footer |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
467 |
scratch.add("}"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
468 |
Files.write(outFile.toPath(), scratch, CREATE, TRUNCATE_EXISTING); |
25004
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
469 |
} |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
470 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
471 |
String[] composeTestVectors() { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
472 |
List<String> testList = new ArrayList<>(); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
473 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
474 |
for (String x : expectedEnumOrdering) { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
475 |
testList.add(x.replace("REPLACE_ME", "<Unnamed>")); |
43570
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
476 |
} |
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
477 |
for (int i = 0; i < MAX_PACKAGES; i++) { |
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
478 |
String wpkg = "add" + i; |
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
479 |
for (String x : expectedEnumOrdering) { |
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
480 |
testList.add(wpkg + "/" + x.replace("REPLACE_ME", wpkg)); |
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
481 |
} |
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
482 |
String dpkg = wpkg; |
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
483 |
for (int j = 1; j < MAX_SUBPACKAGES_DEPTH; j++) { |
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
484 |
dpkg = dpkg + "/" + "add"; |
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
485 |
for (String x : expectedEnumOrdering) { |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
486 |
testList.add(dpkg + "/" + x.replace("REPLACE_ME", pathToPackage(dpkg))); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
487 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
488 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
489 |
} |
25004
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
490 |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
491 |
for (String x : expectedMethodOrdering) { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
492 |
testList.add(x); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
493 |
for (int i = 0; i < MAX_PACKAGES; i++) { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
494 |
String wpkg = "add" + i; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
495 |
testList.add(wpkg + "/" + x); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
496 |
String dpkg = wpkg; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
497 |
for (int j = 1; j < MAX_SUBPACKAGES_DEPTH; j++) { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
498 |
dpkg = dpkg + "/" + "add"; |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
499 |
testList.add(dpkg + "/" + x); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
500 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
501 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
502 |
} |
43570
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
503 |
testList.addAll(Arrays.asList(expectedPackageOrdering)); |
c7b68caf3ab4
8169813: The index pages are sorted in a confusing manner
bpatel
parents:
42000
diff
changeset
|
504 |
testList.addAll(Arrays.asList(expectedFieldOrdering)); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
505 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
506 |
return testList.toArray(new String[testList.size()]); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
507 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
508 |
|
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
509 |
String pathToPackage(String in) { |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
510 |
return in.replace("/", "."); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
511 |
} |
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
512 |
} |
25004
b33effe4f252
8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents:
24399
diff
changeset
|
513 |
|
53097 | 514 |
class IndexTypeClusteringTest { |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
515 |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
516 |
void run() { |
53097 | 517 |
javadoc("-d", "out-3", |
518 |
"-sourcepath", testSrc("src-2"), |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
519 |
"-use", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
520 |
"a", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
521 |
"b", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
522 |
"e", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
523 |
"something"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
524 |
|
53097 | 525 |
checkExit(Exit.OK); |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
526 |
|
53097 | 527 |
checkOrder("index-all.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
528 |
"something</a> - package something</dt>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
529 |
"something</span></a> - Class in", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
530 |
"something</span></a> - Enum in", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
531 |
"something</span></a> - Interface in", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
532 |
"something</span></a> - Annotation Type in", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
533 |
"something</a></span> - Variable in class", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
534 |
"something()</a></span> - Constructor", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
535 |
"something()</a></span> - Method in class a.<a href=\"a/A.html\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
536 |
"something()</a></span> - Method in class a.<a href=\"a/something.html\"", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
537 |
"something()</a></span> - Method in class something.<a href=\"something/J.html\""); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
538 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
539 |
} |
25449
3c14a2e16bd6
8049393: [javadoc] parameters are not sorted correctly
ksrini
parents:
25300
diff
changeset
|
540 |
|
53097 | 541 |
class TypeElementMemberOrderingTest { |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
542 |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
543 |
void run() { |
53097 | 544 |
javadoc("-d", "out-5", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
545 |
"-javafx", |
49879
601277b1d582
8025091: VisibleMemberMap.java possible performance improvements
ksrini
parents:
49139
diff
changeset
|
546 |
"--disable-javafx-strict-checks", |
53097 | 547 |
"-sourcepath", testSrc(new File(".").getPath()), |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
548 |
"pkg5" |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
549 |
); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
550 |
|
53097 | 551 |
checkExit(Exit.OK); |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
552 |
|
53097 | 553 |
checkOrder("pkg5/AnnoFieldTest.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
554 |
"<h3>Field Detail</h3>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
555 |
"<pre>static final int one</pre>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
556 |
"<pre>static final int two</pre>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
557 |
"<pre>static final int three</pre>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
558 |
"<pre>static final int four</pre>"); |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
559 |
|
53097 | 560 |
checkOrder("pkg5/AnnoOptionalTest.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
561 |
"<h3>Optional Element Summary</h3>", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
562 |
"<a href=\"#four()\">four</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
563 |
"<a href=\"#one()\">one</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
564 |
"<a href=\"#three()\">three</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
565 |
"<a href=\"#two()\">two</a>", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
566 |
"<h3>Element Detail</h3>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
567 |
"<h4>one</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
568 |
"<h4>two</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
569 |
"<h4>three</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
570 |
"<h4>four</h4>"); |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
571 |
|
53097 | 572 |
checkOrder("pkg5/AnnoRequiredTest.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
573 |
"<h3>Required Element Summary</h3>", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
574 |
"<a href=\"#four()\">four</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
575 |
"<a href=\"#one()\">one</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
576 |
"<a href=\"#three()\">three</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
577 |
"<a href=\"#two()\">two</a>", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
578 |
"<h3>Element Detail</h3>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
579 |
"<h4>one</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
580 |
"<h4>two</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
581 |
"<h4>three</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
582 |
"<h4>four</h4>"); |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
583 |
|
53097 | 584 |
checkOrder("pkg5/CtorTest.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
585 |
"<h3>Constructor Summary</h3>", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
586 |
"<a href=\"#%3Cinit%3E(int)\"", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
587 |
"<a href=\"#%3Cinit%3E(int,int)\"", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
588 |
"<a href=\"#%3Cinit%3E(int,int,int)\"", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
589 |
"<a href=\"#%3Cinit%3E(int,int,int,int)\"", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
590 |
"<h3>Constructor Detail</h3>", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
591 |
"<a id=\"<init>(int,int,int,int)\">", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
592 |
"<a id=\"<init>(int,int,int)\">", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
593 |
"<a id=\"<init>(int,int)\">", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
594 |
"<a id=\"<init>(int)\">"); |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
595 |
|
53097 | 596 |
checkOrder("pkg5/EnumTest.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
597 |
"<h3>Enum Constant Summary</h3>", |
48654
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
598 |
"<a href=\"#FOUR\">FOUR</a>", |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
599 |
"<a href=\"#ONE\">ONE</a>", |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
600 |
"<a href=\"#THREE\">THREE</a>", |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
601 |
"<a href=\"#TWO\">TWO</a>", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
602 |
"<h3>Enum Constant Detail</h3>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
603 |
"<h4>ONE</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
604 |
"<h4>TWO</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
605 |
"<h4>THREE</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
606 |
"<h4>FOUR</h4>"); |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
607 |
|
53097 | 608 |
checkOrder("pkg5/FieldTest.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
609 |
"<h3>Field Summary</h3>", |
48654
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
610 |
"<a href=\"#four\">four</a>", |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
611 |
"<a href=\"#one\">one</a>", |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
612 |
"<a href=\"#three\">three</a>", |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
613 |
"<a href=\"#two\">two</a>", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
614 |
"<h3>Field Detail</h3>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
615 |
"<h4>one</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
616 |
"<h4>two</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
617 |
"<h4>three</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
618 |
"<h4>four</h4>"); |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
619 |
|
53097 | 620 |
checkOrder("pkg5/IntfTest.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
621 |
"<h3>Method Summary</h3>", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
622 |
"<a href=\"#four()\">four</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
623 |
"<a href=\"#one()\">one</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
624 |
"<a href=\"#three()\">three</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
625 |
"<a href=\"#two()\">two</a>", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
626 |
"<h3>Method Detail</h3>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
627 |
"<h4>one</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
628 |
"<h4>two</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
629 |
"<h4>three</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
630 |
"<h4>four</h4>"); |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
631 |
|
53097 | 632 |
checkOrder("pkg5/MethodTest.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
633 |
"<h3>Method Summary</h3>", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
634 |
"<a href=\"#four()\">four</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
635 |
"<a href=\"#one()\">one</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
636 |
"<a href=\"#three()\">three</a>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
637 |
"<a href=\"#two()\">two</a>", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
638 |
"<h3>Method Detail</h3>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
639 |
"<h4>one</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
640 |
"<h4>two</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
641 |
"<h4>three</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
642 |
"<h4>four</h4>"); |
37752
4243173b58db
8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents:
36526
diff
changeset
|
643 |
|
53097 | 644 |
checkOrder("pkg5/PropertyTest.html", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
645 |
"<h3>Property Summary</h3>", |
48654
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
646 |
"<a href=\"#fourProperty\">four</a>", |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
647 |
"<a href=\"#oneProperty\">one</a>", |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
648 |
"<a href=\"#threeProperty\">three</a>", |
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
47216
diff
changeset
|
649 |
"<a href=\"#twoProperty\">two</a>", |
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
650 |
"<h3>Property Detail</h3>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
651 |
"<h4>oneProperty</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
652 |
"<h4>twoProperty</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
653 |
"<h4>threeProperty</h4>", |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
654 |
"<h4>fourProperty</h4>"); |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
655 |
|
42000
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
656 |
} |
8b7412f7eecd
8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents:
40511
diff
changeset
|
657 |
} |
24220
eb213562268d
8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff
changeset
|
658 |
} |