test/com/sun/javadoc/testSimpleTag/TestSimpleTag.java

changeset 2147
130b8c0e570e
parent 798
4868a36f6fd8
child 2525
2eb010b6cb22
equal deleted inserted replaced
2146:7de97abc4a5c 2147:130b8c0e570e
1 /* 1 /*
2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 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 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 /* 24 /*
25 * @test 25 * @test
26 * @bug 4695326 4750173 4920381 26 * @bug 4695326 4750173 4920381 8026567
27 * @summary Test the declarartion of simple tags using -tag. Verify that 27 * @summary Test the declarartion of simple tags using -tag. Verify that
28 * "-tag name" is a shortcut for "-tag name:a:Name:". Also verity that 28 * "-tag name" is a shortcut for "-tag name:a:Name:". Also verity that
29 * you can escape the ":" character with a back slash so that it is not 29 * you can escape the ":" character with a back slash so that it is not
30 * considered a separator when parsing the simple tag argument. 30 * considered a separator when parsing the simple tag argument.
31 * @author jamieh 31 * @author jamieh
40 private static final String BUG_ID = "4695326-4750173-4920381"; 40 private static final String BUG_ID = "4695326-4750173-4920381";
41 41
42 private static final String[][] TEST = 42 private static final String[][] TEST =
43 new String[][] { 43 new String[][] {
44 {"./" + BUG_ID + "/C.html", 44 {"./" + BUG_ID + "/C.html",
45 "<span class=\"strong\">Todo:</span>"}, 45 "<span class=\"simpleTagLabel\">Todo:</span>"},
46 {"./" + BUG_ID + "/C.html", 46 {"./" + BUG_ID + "/C.html",
47 "<span class=\"strong\">EJB Beans:</span>"}, 47 "<span class=\"simpleTagLabel\">EJB Beans:</span>"},
48 {"./" + BUG_ID + "/C.html", 48 {"./" + BUG_ID + "/C.html",
49 "<span class=\"strong\">Regular Tag:</span>"}, 49 "<span class=\"simpleTagLabel\">Regular Tag:</span>"},
50 {"./" + BUG_ID + "/C.html", 50 {"./" + BUG_ID + "/C.html",
51 "<span class=\"strong\">Back-Slash-Tag:</span>"}, 51 "<span class=\"simpleTagLabel\">Back-Slash-Tag:</span>"},
52 }; 52 };
53 53
54 private static final String[] ARGS = new String[] { 54 private static final String[] ARGS = new String[] {
55 "-d", BUG_ID, "-sourcepath", SRC_DIR, 55 "-d", BUG_ID, "-sourcepath", SRC_DIR,
56 "-tag", "todo", 56 "-tag", "todo",

mercurial