author | jjg |
Fri, 09 May 2014 15:37:12 -0700 | |
changeset 24399 | af1a0220d0fa |
parent 23971 | f5ff1f5a8dee |
child 30730 | d3ce7619db2c |
permissions | -rw-r--r-- |
10 | 1 |
/* |
23971 | 2 |
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. |
10 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5520 | 19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
10 | 22 |
*/ |
23 |
||
24 |
/* |
|
25 |
* @test |
|
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
17566
diff
changeset
|
26 |
* @bug 4651598 8026567 |
10 | 27 |
* @summary Javadoc wrongly inserts </DD> tags when using multiple @author tags |
28 |
* @author dkramer |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
29 |
* @library ../lib |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
30 |
* @build JavadocTester |
10 | 31 |
* @run main AuthorDD |
32 |
*/ |
|
33 |
||
34 |
/** |
|
35 |
* Runs javadoc and runs regression tests on the resulting HTML. |
|
36 |
*/ |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
37 |
public class AuthorDD extends JavadocTester { |
10 | 38 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
39 |
public static void main(String... args) throws Exception { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
40 |
AuthorDD tester = new AuthorDD(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
41 |
tester.runTests(); |
10 | 42 |
} |
43 |
||
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
44 |
@Test |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
45 |
void test() { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
46 |
// Test for all cases except the split index page |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
47 |
javadoc("-d", "out", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
48 |
"-author", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
49 |
"-version", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
50 |
"-sourcepath", testSrc, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
51 |
"p1"); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
52 |
checkExit(Exit.OK); |
10 | 53 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
54 |
checkOutput("p1/C1.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
55 |
// Test single @since tag: |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
56 |
"<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
57 |
+ "<dd>JDK 1.0</dd>", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
58 |
// Test multiple @author tags: |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
59 |
"<dt><span class=\"simpleTagLabel\">Author:</span></dt>\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
23971
diff
changeset
|
60 |
+ "<dd>Doug Kramer, Jamie, Neal</dd>"); |
10 | 61 |
} |
62 |
} |