test/com/sun/javadoc/testTagOutput/TestTagOutput.java

changeset 2147
130b8c0e570e
parent 2116
bf6b11347b1a
child 2525
2eb010b6cb22
equal deleted inserted replaced
2146:7de97abc4a5c 2147:130b8c0e570e
23 * questions. 23 * questions.
24 */ 24 */
25 25
26 /* 26 /*
27 * @test 27 * @test
28 * @bug 8026370 28 * @bug 8026370 8026567
29 * @summary This test checks the generated tag output. 29 * @summary This test checks the generated tag output.
30 * @author Bhavesh Patel 30 * @author Bhavesh Patel
31 * @library ../lib/ 31 * @library ../lib/
32 * @build JavadocTester TestTagOutput 32 * @build JavadocTester TestTagOutput
33 * @run main TestTagOutput 33 * @run main TestTagOutput
36 public class TestTagOutput extends JavadocTester { 36 public class TestTagOutput extends JavadocTester {
37 37
38 private static final String BUG_ID = "8026370"; 38 private static final String BUG_ID = "8026370";
39 private static final String[][] TEST = { 39 private static final String[][] TEST = {
40 {BUG_ID + FS + "pkg1" + FS + "DeprecatedTag.html", 40 {BUG_ID + FS + "pkg1" + FS + "DeprecatedTag.html",
41 "<div class=\"block\"><span class=\"strong\">Deprecated.</span>&nbsp;</div>"}, 41 "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span>&nbsp;</div>"},
42 {BUG_ID + FS + "pkg1" + FS + "DeprecatedTag.html", 42 {BUG_ID + FS + "pkg1" + FS + "DeprecatedTag.html",
43 "<div class=\"block\"><span class=\"strong\">Deprecated.</span>&nbsp;" + 43 "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span>&nbsp;" +
44 "<span class=\"italic\">Do not use this.</span></div>"}}; 44 "<span class=\"deprecationComment\">Do not use this.</span></div>"}};
45 45
46 private static final String[][] NEGATED_TEST = { 46 private static final String[][] NEGATED_TEST = {
47 {BUG_ID + FS + "pkg1" + FS + "DeprecatedTag.html", 47 {BUG_ID + FS + "pkg1" + FS + "DeprecatedTag.html",
48 "<div class=\"block\"><span class=\"strong\">Deprecated." + 48 "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated." +
49 "</span>&nbsp;<span class=\"italic\"></span></div>"}}; 49 "</span>&nbsp;<span class=\"deprecationComment\"></span></div>"}};
50 50
51 private static final String[] ARGS = 51 private static final String[] ARGS =
52 new String[] { 52 new String[] {
53 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"}; 53 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"};
54 54

mercurial