Wed, 13 Aug 2014 14:50:00 -0700
Added tag jdk8u40-b01 for changeset bf89a471779d
bpatel@233 | 1 | /* |
jjg@1490 | 2 | * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. |
bpatel@233 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
bpatel@233 | 4 | * |
bpatel@233 | 5 | * This code is free software; you can redistribute it and/or modify it |
bpatel@233 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@554 | 7 | * published by the Free Software Foundation. Oracle designates this |
bpatel@233 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@554 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
bpatel@233 | 10 | * |
bpatel@233 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
bpatel@233 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
bpatel@233 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
bpatel@233 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
bpatel@233 | 15 | * accompanied this code). |
bpatel@233 | 16 | * |
bpatel@233 | 17 | * You should have received a copy of the GNU General Public License version |
bpatel@233 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
bpatel@233 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
bpatel@233 | 20 | * |
ohair@554 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@554 | 23 | * questions. |
bpatel@233 | 24 | */ |
bpatel@233 | 25 | |
bpatel@233 | 26 | /* |
bpatel@233 | 27 | * @test |
bpatel@2147 | 28 | * @bug 6786690 6820360 8025633 8026567 |
bpatel@233 | 29 | * @summary This test verifies the nesting of definition list tags. |
bpatel@233 | 30 | * @author Bhavesh Patel |
bpatel@233 | 31 | * @library ../lib/ |
bpatel@958 | 32 | * @build JavadocTester TestHtmlDefinitionListTag |
bpatel@233 | 33 | * @run main TestHtmlDefinitionListTag |
bpatel@233 | 34 | */ |
bpatel@233 | 35 | |
bpatel@233 | 36 | public class TestHtmlDefinitionListTag extends JavadocTester { |
bpatel@233 | 37 | |
bpatel@244 | 38 | private static final String BUG_ID = "6786690-6820360"; |
bpatel@233 | 39 | |
bpatel@233 | 40 | // Test common to all runs of javadoc. The class signature should print |
bpatel@233 | 41 | // properly enclosed definition list tags and the Annotation Type |
bpatel@233 | 42 | // Optional Element should print properly nested definition list tags |
bpatel@233 | 43 | // for default value. |
bpatel@233 | 44 | private static final String[][] TEST_ALL = { |
bpatel@958 | 45 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<pre>public class " + |
bpatel@2147 | 46 | "<span class=\"typeNameLabel\">C1</span>" + NL + |
bpatel@766 | 47 | "extends java.lang.Object" + NL + "implements java.io.Serializable</pre>"}, |
bpatel@766 | 48 | {BUG_ID + FS + "pkg1" + FS + "C4.html", "<dl>" + NL + |
bpatel@766 | 49 | "<dt>Default:</dt>" + NL + "<dd>true</dd>" + NL + |
bpatel@766 | 50 | "</dl>"}}; |
bpatel@233 | 51 | |
bpatel@233 | 52 | // Test for normal run of javadoc in which various ClassDocs and |
bpatel@233 | 53 | // serialized form should have properly nested definition list tags |
bpatel@233 | 54 | // enclosing comments, tags and deprecated information. |
bpatel@233 | 55 | private static final String[][] TEST_CMNT_DEPR = { |
jjg@1744 | 56 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl>" + NL + |
bpatel@2147 | 57 | "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL + |
jjg@1744 | 58 | "<dd>JDK1.0</dd>" + NL + "</dl>"}, |
bpatel@2147 | 59 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL + |
bpatel@2147 | 60 | "<dd>JDK1.0</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL + |
bpatel@766 | 61 | "<dd><a href=\"../pkg1/C2.html\" title=\"class in pkg1\"><code>" + |
bpatel@766 | 62 | "C2</code></a>, " + NL + "<a href=\"../serialized-form.html#pkg1.C1\">" + |
jjg@1744 | 63 | "Serialized Form</a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 64 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL + |
jjg@1743 | 65 | "<dd>1.4</dd>" + NL + |
bpatel@2147 | 66 | "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd>" + |
bpatel@2101 | 67 | "<a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" + |
jjg@1744 | 68 | "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 69 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>"+ NL + "<dt><span class=\"paramLabel\">Parameters:</span></dt>" + NL + "<dd><code>title" + |
jjg@1743 | 70 | "</code> - the title</dd>" + NL + "<dd><code>test</code> - boolean value" + |
bpatel@2147 | 71 | "</dd>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span></dt>" + NL + |
bpatel@766 | 72 | "<dd><code>java.lang.IllegalArgumentException</code> - if the " + |
bpatel@766 | 73 | "<code>owner</code>'s" + NL + |
bpatel@766 | 74 | " <code>GraphicsConfiguration</code> is not from a screen " + |
jjg@1744 | 75 | "device</dd>" + NL + "<dd><code>HeadlessException</code></dd>" + NL + "</dl>"}, |
bpatel@2147 | 76 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:</span></dt>" + NL + "<dd><code>undecorated" + |
bpatel@766 | 77 | "</code> - <code>true</code> if no decorations are" + NL + |
bpatel@766 | 78 | " to be enabled;" + NL + " <code>false</code> " + |
bpatel@2147 | 79 | "if decorations are to be enabled.</dd>" + NL + "<dt><span class=\"simpleTagLabel\">Since:" + |
jjg@1743 | 80 | "</span></dt>" + NL + "<dd>1.4</dd>" + NL + |
bpatel@2147 | 81 | "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd>" + |
bpatel@2101 | 82 | "<a href=\"../pkg1/C1.html#readObject--\"><code>readObject()" + |
jjg@1744 | 83 | "</code></a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 84 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span></dt>" + NL + |
bpatel@2147 | 85 | "<dd><code>java.io.IOException</code></dd>" + NL + "<dt><span class=\"seeLabel\">See Also:" + |
bpatel@2101 | 86 | "</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" + |
jjg@1744 | 87 | "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 88 | {BUG_ID + FS + "pkg1" + FS + "C2.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:" + |
bpatel@2147 | 89 | "</span></dt>" + NL + "<dd><code>set</code> - boolean</dd>" + NL + "<dt><span class=\"simpleTagLabel\">" + |
jjg@1744 | 90 | "Since:</span></dt>" + NL + "<dd>1.4</dd>" + NL + "</dl>"}, |
bpatel@2147 | 91 | {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span>" + |
bpatel@766 | 92 | "</dt>" + NL + "<dd><code>" + |
bpatel@2147 | 93 | "java.io.IOException</code></dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" + |
bpatel@2101 | 94 | "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
jjg@1744 | 95 | "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 96 | {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" + |
bpatel@2147 | 97 | " <span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL + |
bpatel@2101 | 98 | " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
bpatel@1935 | 99 | "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + |
bpatel@766 | 100 | "<div class=\"block\">This field indicates whether the C1 is " + |
bpatel@2147 | 101 | "undecorated.</div>" + NL + " " + NL + "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL + |
bpatel@2147 | 102 | "<dd>1.4</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" + |
bpatel@2101 | 103 | "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
jjg@1744 | 104 | "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 105 | {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" + |
bpatel@2147 | 106 | " <span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL + |
bpatel@2101 | 107 | " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
bpatel@1935 | 108 | "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + |
bpatel@766 | 109 | "<div class=\"block\">Reads the object stream.</div>" + NL + |
bpatel@2147 | 110 | "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:" + |
bpatel@766 | 111 | "</span></dt>" + NL + "<dd><code><code>" + |
bpatel@766 | 112 | "IOException</code></code></dd>" + NL + |
jjg@1744 | 113 | "<dd><code>java.io.IOException</code></dd>" + NL + "</dl>"}, |
bpatel@2147 | 114 | {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" + |
bpatel@766 | 115 | " </div>" + NL + |
bpatel@766 | 116 | "<div class=\"block\">The name for this class.</div>"}}; |
bpatel@233 | 117 | |
bpatel@233 | 118 | // Test with -nodeprecated option. The ClassDocs should have properly nested |
bpatel@233 | 119 | // definition list tags enclosing comments and tags. The ClassDocs should not |
bpatel@233 | 120 | // display definition list for deprecated information. The serialized form |
bpatel@233 | 121 | // should display properly nested definition list tags for comments, tags |
bpatel@233 | 122 | // and deprecated information. |
bpatel@233 | 123 | private static final String[][] TEST_NODEPR = { |
jjg@1744 | 124 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl>" + NL + |
bpatel@2147 | 125 | "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL + |
jjg@1744 | 126 | "<dd>JDK1.0</dd>" + NL + "</dl>"}, |
bpatel@2147 | 127 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span>" + |
bpatel@2147 | 128 | "</dt>" + NL + "<dd>JDK1.0</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:" + |
jjg@1743 | 129 | "</span></dt>" + NL + "<dd><a href=\"../pkg1/C2.html\" title=\"class in pkg1\">" + |
bpatel@766 | 130 | "<code>C2</code></a>, " + NL + "<a href=\"../serialized-form.html#pkg1.C1\">" + |
jjg@1744 | 131 | "Serialized Form</a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 132 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:" + |
jjg@1743 | 133 | "</span></dt>" + NL + "<dd><code>title</code> - the title</dd>" + NL + "<dd><code>" + |
bpatel@2147 | 134 | "test</code> - boolean value</dd>" + NL + "<dt><span class=\"throwsLabel\">Throws:" + |
bpatel@766 | 135 | "</span></dt>" + NL + "<dd><code>java.lang.IllegalArgumentException" + |
bpatel@766 | 136 | "</code> - if the <code>owner</code>'s" + NL + " <code>GraphicsConfiguration" + |
bpatel@766 | 137 | "</code> is not from a screen device</dd>" + NL + "<dd><code>" + |
jjg@1744 | 138 | "HeadlessException</code></dd>" + NL + "</dl>"}, |
bpatel@2147 | 139 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:" + |
jjg@1743 | 140 | "</span></dt>" + NL + "<dd><code>undecorated</code> - <code>true</code>" + |
bpatel@233 | 141 | " if no decorations are" + NL + " to be enabled;" + NL + |
bpatel@233 | 142 | " <code>false</code> if decorations are to be enabled." + |
bpatel@2147 | 143 | "</dd>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL + "<dd>1.4</dd>" + NL + |
bpatel@2147 | 144 | "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#readObject--\">" + |
jjg@1744 | 145 | "<code>readObject()</code></a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 146 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span>" + |
jjg@1743 | 147 | "</dt>" + NL + "<dd><code>java.io.IOException</code></dd>" + NL + "<dt>" + |
bpatel@2147 | 148 | "<span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" + |
jjg@1744 | 149 | "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 150 | {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span>" + |
bpatel@766 | 151 | "</dt>" + NL + "<dd><code>" + |
bpatel@2147 | 152 | "java.io.IOException</code></dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" + |
bpatel@2101 | 153 | "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
jjg@1744 | 154 | "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 155 | {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" + |
bpatel@2147 | 156 | " <span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL + |
bpatel@2101 | 157 | " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
bpatel@1935 | 158 | "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + |
bpatel@766 | 159 | "<div class=\"block\">This field indicates whether the C1 is " + |
bpatel@2147 | 160 | "undecorated.</div>" + NL + " " + NL + "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL + |
bpatel@2147 | 161 | "<dd>1.4</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" + |
bpatel@2101 | 162 | "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
jjg@1744 | 163 | "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
bpatel@2147 | 164 | {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" + |
bpatel@2147 | 165 | " <span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL + |
bpatel@2101 | 166 | " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
bpatel@1935 | 167 | "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + |
bpatel@766 | 168 | "<div class=\"block\">Reads the object stream.</div>" + NL + |
bpatel@2147 | 169 | "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:" + |
bpatel@766 | 170 | "</span></dt>" + NL + "<dd><code><code>" + |
bpatel@766 | 171 | "IOException</code></code></dd>" + NL + |
jjg@1744 | 172 | "<dd><code>java.io.IOException</code></dd>" + NL + "</dl>"}, |
bpatel@2147 | 173 | {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" + |
bpatel@766 | 174 | " </div>" + NL + "<div class=\"block\">" + |
bpatel@766 | 175 | "The name for this class.</div>"}}; |
bpatel@233 | 176 | |
bpatel@233 | 177 | // Test with -nocomment and -nodeprecated options. The ClassDocs whould |
bpatel@766 | 178 | // not display definition lists for any member details. |
bpatel@233 | 179 | private static final String[][] TEST_NOCMNT_NODEPR = { |
bpatel@766 | 180 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<pre>public void readObject()" + NL + |
bpatel@766 | 181 | " throws java.io.IOException</pre>" + NL + "</li>"}, |
bpatel@766 | 182 | {BUG_ID + FS + "pkg1" + FS + "C2.html", "<pre>public C2()</pre>" + NL + |
bpatel@766 | 183 | "</li>"}, |
bpatel@766 | 184 | {BUG_ID + FS + "pkg1" + FS + "C1.ModalExclusionType.html", "<pre>public " + |
bpatel@766 | 185 | "static final <a href=\"../pkg1/C1.ModalExclusionType.html\" " + |
bpatel@766 | 186 | "title=\"enum in pkg1\">C1.ModalExclusionType</a> " + |
bpatel@766 | 187 | "APPLICATION_EXCLUDE</pre>" + NL + "</li>"}, |
bpatel@766 | 188 | {BUG_ID + FS + "serialized-form.html", "<pre>boolean " + |
bpatel@2147 | 189 | "undecorated</pre>" + NL + "<div class=\"block\"><span class=\"deprecatedLabel\">" + |
bpatel@2147 | 190 | "Deprecated.</span> <span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL + |
bpatel@2101 | 191 | " <a href=\"pkg1/C1.html#setUndecorated-boolean-\"><code>" + |
bpatel@1935 | 192 | "setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"}, |
bpatel@2147 | 193 | {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">" + |
bpatel@2147 | 194 | "Deprecated.</span> <span class=\"deprecationComment\">As of JDK version" + |
bpatel@233 | 195 | " 1.5, replaced by" + NL + |
bpatel@2101 | 196 | " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
bpatel@1935 | 197 | "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"}}; |
bpatel@233 | 198 | |
bpatel@233 | 199 | // Test for valid HTML generation which should not comprise of empty |
bpatel@233 | 200 | // definition list tags. |
bpatel@233 | 201 | private static final String[][] NEGATED_TEST = { |
bpatel@766 | 202 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl></dl>"}, |
bpatel@766 | 203 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl>" + NL + "</dl>"}, |
bpatel@766 | 204 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl></dl>"}, |
bpatel@766 | 205 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "</dl>"}, |
bpatel@766 | 206 | {BUG_ID + FS + "pkg1" + FS + "C1.ModalExclusionType.html", "<dl></dl>"}, |
bpatel@766 | 207 | {BUG_ID + FS + "pkg1" + FS + "C1.ModalExclusionType.html", "<dl>" + NL + "</dl>"}, |
bpatel@766 | 208 | {BUG_ID + FS + "pkg1" + FS + "C2.html", "<dl></dl>"}, |
bpatel@766 | 209 | {BUG_ID + FS + "pkg1" + FS + "C2.html", "<dl>" + NL + "</dl>"}, |
bpatel@766 | 210 | {BUG_ID + FS + "pkg1" + FS + "C2.ModalType.html", "<dl></dl>"}, |
bpatel@766 | 211 | {BUG_ID + FS + "pkg1" + FS + "C2.ModalType.html", "<dl>" + NL + "</dl>"}, |
bpatel@766 | 212 | {BUG_ID + FS + "pkg1" + FS + "C3.html", "<dl></dl>"}, |
bpatel@766 | 213 | {BUG_ID + FS + "pkg1" + FS + "C3.html", "<dl>" + NL + "</dl>"}, |
bpatel@766 | 214 | {BUG_ID + FS + "pkg1" + FS + "C4.html", "<dl></dl>"}, |
bpatel@766 | 215 | {BUG_ID + FS + "pkg1" + FS + "C4.html", "<dl>" + NL + "</dl>"}, |
bpatel@766 | 216 | {BUG_ID + FS + "pkg1" + FS + "C5.html", "<dl></dl>"}, |
bpatel@766 | 217 | {BUG_ID + FS + "pkg1" + FS + "C5.html", "<dl>" + NL + "</dl>"}, |
bpatel@766 | 218 | {BUG_ID + FS + "overview-tree.html", "<dl></dl>"}, |
bpatel@766 | 219 | {BUG_ID + FS + "overview-tree.html", "<dl>" + NL + "</dl>"}, |
bpatel@766 | 220 | {BUG_ID + FS + "serialized-form.html", "<dl></dl>"}, |
bpatel@766 | 221 | {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + "</dl>"}}; |
bpatel@233 | 222 | |
bpatel@233 | 223 | private static final String[] ARGS1 = |
bpatel@233 | 224 | new String[] { |
jjg@1490 | 225 | "-Xdoclint:none", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"}; |
bpatel@233 | 226 | |
bpatel@233 | 227 | private static final String[] ARGS2 = |
bpatel@233 | 228 | new String[] { |
jjg@1490 | 229 | "-Xdoclint:none", "-d", BUG_ID, "-nocomment", "-sourcepath", SRC_DIR, "pkg1"}; |
bpatel@233 | 230 | |
bpatel@233 | 231 | private static final String[] ARGS3 = |
bpatel@233 | 232 | new String[] { |
jjg@1490 | 233 | "-Xdoclint:none", "-d", BUG_ID, "-nodeprecated", "-sourcepath", SRC_DIR, "pkg1"}; |
bpatel@233 | 234 | |
bpatel@233 | 235 | private static final String[] ARGS4 = |
bpatel@233 | 236 | new String[] { |
jjg@1490 | 237 | "-Xdoclint:none", "-d", BUG_ID, "-nocomment", "-nodeprecated", "-sourcepath", SRC_DIR, "pkg1"}; |
bpatel@233 | 238 | |
bpatel@233 | 239 | /** |
bpatel@233 | 240 | * The entry point of the test. |
bpatel@233 | 241 | * @param args the array of command line arguments. |
bpatel@233 | 242 | */ |
bpatel@233 | 243 | public static void main(String[] args) { |
bpatel@233 | 244 | TestHtmlDefinitionListTag tester = new TestHtmlDefinitionListTag(); |
jjg@389 | 245 | tester.exactNewlineMatch = false; |
bpatel@233 | 246 | run(tester, ARGS1, TEST_ALL, NEGATED_TEST); |
bpatel@233 | 247 | run(tester, ARGS1, TEST_CMNT_DEPR, NEGATED_TEST); |
bpatel@233 | 248 | run(tester, ARGS2, TEST_ALL, NEGATED_TEST); |
bpatel@766 | 249 | run(tester, ARGS2, NO_TEST, TEST_CMNT_DEPR); |
bpatel@233 | 250 | run(tester, ARGS3, TEST_ALL, NEGATED_TEST); |
bpatel@233 | 251 | run(tester, ARGS3, TEST_NODEPR, TEST_NOCMNT_NODEPR); |
bpatel@233 | 252 | run(tester, ARGS4, TEST_ALL, NEGATED_TEST); |
bpatel@233 | 253 | run(tester, ARGS4, TEST_NOCMNT_NODEPR, TEST_CMNT_DEPR); |
bpatel@233 | 254 | tester.printSummary(); |
bpatel@233 | 255 | } |
bpatel@233 | 256 | |
bpatel@233 | 257 | /** |
bpatel@233 | 258 | * {@inheritDoc} |
bpatel@233 | 259 | */ |
bpatel@233 | 260 | public String getBugId() { |
bpatel@233 | 261 | return BUG_ID; |
bpatel@233 | 262 | } |
bpatel@233 | 263 | |
bpatel@233 | 264 | /** |
bpatel@233 | 265 | * {@inheritDoc} |
bpatel@233 | 266 | */ |
bpatel@233 | 267 | public String getBugName() { |
bpatel@233 | 268 | return getClass().getName(); |
bpatel@233 | 269 | } |
bpatel@233 | 270 | } |