test/com/sun/javadoc/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java

changeset 2147
130b8c0e570e
parent 2101
933ba3f81a87
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 6786690 6820360 8025633 28 * @bug 6786690 6820360 8025633 8026567
29 * @summary This test verifies the nesting of definition list tags. 29 * @summary This test verifies the nesting of definition list tags.
30 * @author Bhavesh Patel 30 * @author Bhavesh Patel
31 * @library ../lib/ 31 * @library ../lib/
32 * @build JavadocTester TestHtmlDefinitionListTag 32 * @build JavadocTester TestHtmlDefinitionListTag
33 * @run main TestHtmlDefinitionListTag 33 * @run main TestHtmlDefinitionListTag
41 // properly enclosed definition list tags and the Annotation Type 41 // properly enclosed definition list tags and the Annotation Type
42 // Optional Element should print properly nested definition list tags 42 // Optional Element should print properly nested definition list tags
43 // for default value. 43 // for default value.
44 private static final String[][] TEST_ALL = { 44 private static final String[][] TEST_ALL = {
45 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<pre>public class " + 45 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<pre>public class " +
46 "<span class=\"strong\">C1</span>" + NL + 46 "<span class=\"typeNameLabel\">C1</span>" + NL +
47 "extends java.lang.Object" + NL + "implements java.io.Serializable</pre>"}, 47 "extends java.lang.Object" + NL + "implements java.io.Serializable</pre>"},
48 {BUG_ID + FS + "pkg1" + FS + "C4.html", "<dl>" + NL + 48 {BUG_ID + FS + "pkg1" + FS + "C4.html", "<dl>" + NL +
49 "<dt>Default:</dt>" + NL + "<dd>true</dd>" + NL + 49 "<dt>Default:</dt>" + NL + "<dd>true</dd>" + NL +
50 "</dl>"}}; 50 "</dl>"}};
51 51
52 // Test for normal run of javadoc in which various ClassDocs and 52 // Test for normal run of javadoc in which various ClassDocs and
53 // serialized form should have properly nested definition list tags 53 // serialized form should have properly nested definition list tags
54 // enclosing comments, tags and deprecated information. 54 // enclosing comments, tags and deprecated information.
55 private static final String[][] TEST_CMNT_DEPR = { 55 private static final String[][] TEST_CMNT_DEPR = {
56 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl>" + NL + 56 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl>" + NL +
57 "<dt><span class=\"strong\">Since:</span></dt>" + NL + 57 "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
58 "<dd>JDK1.0</dd>" + NL + "</dl>"}, 58 "<dd>JDK1.0</dd>" + NL + "</dl>"},
59 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"strong\">Since:</span></dt>" + NL + 59 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
60 "<dd>JDK1.0</dd>" + NL + "<dt><span class=\"strong\">See Also:</span></dt>" + NL + 60 "<dd>JDK1.0</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL +
61 "<dd><a href=\"../pkg1/C2.html\" title=\"class in pkg1\"><code>" + 61 "<dd><a href=\"../pkg1/C2.html\" title=\"class in pkg1\"><code>" +
62 "C2</code></a>, " + NL + "<a href=\"../serialized-form.html#pkg1.C1\">" + 62 "C2</code></a>, " + NL + "<a href=\"../serialized-form.html#pkg1.C1\">" +
63 "Serialized Form</a></dd>" + NL + "</dl>"}, 63 "Serialized Form</a></dd>" + NL + "</dl>"},
64 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"strong\">Since:</span></dt>" + NL + 64 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
65 "<dd>1.4</dd>" + NL + 65 "<dd>1.4</dd>" + NL +
66 "<dt><span class=\"strong\">See Also:</span></dt>" + NL + "<dd>" + 66 "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd>" +
67 "<a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" + 67 "<a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" +
68 "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, 68 "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
69 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>"+ NL + "<dt><span class=\"strong\">Parameters:</span></dt>" + NL + "<dd><code>title" + 69 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>"+ NL + "<dt><span class=\"paramLabel\">Parameters:</span></dt>" + NL + "<dd><code>title" +
70 "</code> - the title</dd>" + NL + "<dd><code>test</code> - boolean value" + 70 "</code> - the title</dd>" + NL + "<dd><code>test</code> - boolean value" +
71 "</dd>" + NL + "<dt><span class=\"strong\">Throws:</span></dt>" + NL + 71 "</dd>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span></dt>" + NL +
72 "<dd><code>java.lang.IllegalArgumentException</code> - if the " + 72 "<dd><code>java.lang.IllegalArgumentException</code> - if the " +
73 "<code>owner</code>'s" + NL + 73 "<code>owner</code>'s" + NL +
74 " <code>GraphicsConfiguration</code> is not from a screen " + 74 " <code>GraphicsConfiguration</code> is not from a screen " +
75 "device</dd>" + NL + "<dd><code>HeadlessException</code></dd>" + NL + "</dl>"}, 75 "device</dd>" + NL + "<dd><code>HeadlessException</code></dd>" + NL + "</dl>"},
76 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"strong\">Parameters:</span></dt>" + NL + "<dd><code>undecorated" + 76 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:</span></dt>" + NL + "<dd><code>undecorated" +
77 "</code> - <code>true</code> if no decorations are" + NL + 77 "</code> - <code>true</code> if no decorations are" + NL +
78 " to be enabled;" + NL + " <code>false</code> " + 78 " to be enabled;" + NL + " <code>false</code> " +
79 "if decorations are to be enabled.</dd>" + NL + "<dt><span class=\"strong\">Since:" + 79 "if decorations are to be enabled.</dd>" + NL + "<dt><span class=\"simpleTagLabel\">Since:" +
80 "</span></dt>" + NL + "<dd>1.4</dd>" + NL + 80 "</span></dt>" + NL + "<dd>1.4</dd>" + NL +
81 "<dt><span class=\"strong\">See Also:</span></dt>" + NL + "<dd>" + 81 "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd>" +
82 "<a href=\"../pkg1/C1.html#readObject--\"><code>readObject()" + 82 "<a href=\"../pkg1/C1.html#readObject--\"><code>readObject()" +
83 "</code></a></dd>" + NL + "</dl>"}, 83 "</code></a></dd>" + NL + "</dl>"},
84 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"strong\">Throws:</span></dt>" + NL + 84 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span></dt>" + NL +
85 "<dd><code>java.io.IOException</code></dd>" + NL + "<dt><span class=\"strong\">See Also:" + 85 "<dd><code>java.io.IOException</code></dd>" + NL + "<dt><span class=\"seeLabel\">See Also:" +
86 "</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" + 86 "</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" +
87 "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, 87 "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
88 {BUG_ID + FS + "pkg1" + FS + "C2.html", "<dl>" + NL + "<dt><span class=\"strong\">Parameters:" + 88 {BUG_ID + FS + "pkg1" + FS + "C2.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:" +
89 "</span></dt>" + NL + "<dd><code>set</code> - boolean</dd>" + NL + "<dt><span class=\"strong\">" + 89 "</span></dt>" + NL + "<dd><code>set</code> - boolean</dd>" + NL + "<dt><span class=\"simpleTagLabel\">" +
90 "Since:</span></dt>" + NL + "<dd>1.4</dd>" + NL + "</dl>"}, 90 "Since:</span></dt>" + NL + "<dd>1.4</dd>" + NL + "</dl>"},
91 {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + "<dt><span class=\"strong\">Throws:</span>" + 91 {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span>" +
92 "</dt>" + NL + "<dd><code>" + 92 "</dt>" + NL + "<dd><code>" +
93 "java.io.IOException</code></dd>" + NL + "<dt><span class=\"strong\">See Also:</span>" + 93 "java.io.IOException</code></dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" +
94 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + 94 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
95 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, 95 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
96 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">Deprecated.</span>" + 96 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
97 "&nbsp;<span class=\"italic\">As of JDK version 1.5, replaced by" + NL + 97 "&nbsp;<span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL +
98 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + 98 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
99 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + 99 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL +
100 "<div class=\"block\">This field indicates whether the C1 is " + 100 "<div class=\"block\">This field indicates whether the C1 is " +
101 "undecorated.</div>" + NL + "&nbsp;" + NL + "<dl>" + NL + "<dt><span class=\"strong\">Since:</span></dt>" + NL + 101 "undecorated.</div>" + NL + "&nbsp;" + NL + "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
102 "<dd>1.4</dd>" + NL + "<dt><span class=\"strong\">See Also:</span>" + 102 "<dd>1.4</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" +
103 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + 103 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
104 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, 104 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
105 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">Deprecated.</span>" + 105 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
106 "&nbsp;<span class=\"italic\">As of JDK version 1.5, replaced by" + NL + 106 "&nbsp;<span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL +
107 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + 107 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
108 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + 108 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL +
109 "<div class=\"block\">Reads the object stream.</div>" + NL + 109 "<div class=\"block\">Reads the object stream.</div>" + NL +
110 "<dl>" + NL + "<dt><span class=\"strong\">Throws:" + 110 "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:" +
111 "</span></dt>" + NL + "<dd><code><code>" + 111 "</span></dt>" + NL + "<dd><code><code>" +
112 "IOException</code></code></dd>" + NL + 112 "IOException</code></code></dd>" + NL +
113 "<dd><code>java.io.IOException</code></dd>" + NL + "</dl>"}, 113 "<dd><code>java.io.IOException</code></dd>" + NL + "</dl>"},
114 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">Deprecated.</span>" + 114 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
115 "&nbsp;</div>" + NL + 115 "&nbsp;</div>" + NL +
116 "<div class=\"block\">The name for this class.</div>"}}; 116 "<div class=\"block\">The name for this class.</div>"}};
117 117
118 // Test with -nodeprecated option. The ClassDocs should have properly nested 118 // Test with -nodeprecated option. The ClassDocs should have properly nested
119 // definition list tags enclosing comments and tags. The ClassDocs should not 119 // definition list tags enclosing comments and tags. The ClassDocs should not
120 // display definition list for deprecated information. The serialized form 120 // display definition list for deprecated information. The serialized form
121 // should display properly nested definition list tags for comments, tags 121 // should display properly nested definition list tags for comments, tags
122 // and deprecated information. 122 // and deprecated information.
123 private static final String[][] TEST_NODEPR = { 123 private static final String[][] TEST_NODEPR = {
124 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl>" + NL + 124 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl>" + NL +
125 "<dt><span class=\"strong\">Since:</span></dt>" + NL + 125 "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
126 "<dd>JDK1.0</dd>" + NL + "</dl>"}, 126 "<dd>JDK1.0</dd>" + NL + "</dl>"},
127 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"strong\">Since:</span>" + 127 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span>" +
128 "</dt>" + NL + "<dd>JDK1.0</dd>" + NL + "<dt><span class=\"strong\">See Also:" + 128 "</dt>" + NL + "<dd>JDK1.0</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:" +
129 "</span></dt>" + NL + "<dd><a href=\"../pkg1/C2.html\" title=\"class in pkg1\">" + 129 "</span></dt>" + NL + "<dd><a href=\"../pkg1/C2.html\" title=\"class in pkg1\">" +
130 "<code>C2</code></a>, " + NL + "<a href=\"../serialized-form.html#pkg1.C1\">" + 130 "<code>C2</code></a>, " + NL + "<a href=\"../serialized-form.html#pkg1.C1\">" +
131 "Serialized Form</a></dd>" + NL + "</dl>"}, 131 "Serialized Form</a></dd>" + NL + "</dl>"},
132 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"strong\">Parameters:" + 132 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:" +
133 "</span></dt>" + NL + "<dd><code>title</code> - the title</dd>" + NL + "<dd><code>" + 133 "</span></dt>" + NL + "<dd><code>title</code> - the title</dd>" + NL + "<dd><code>" +
134 "test</code> - boolean value</dd>" + NL + "<dt><span class=\"strong\">Throws:" + 134 "test</code> - boolean value</dd>" + NL + "<dt><span class=\"throwsLabel\">Throws:" +
135 "</span></dt>" + NL + "<dd><code>java.lang.IllegalArgumentException" + 135 "</span></dt>" + NL + "<dd><code>java.lang.IllegalArgumentException" +
136 "</code> - if the <code>owner</code>'s" + NL + " <code>GraphicsConfiguration" + 136 "</code> - if the <code>owner</code>'s" + NL + " <code>GraphicsConfiguration" +
137 "</code> is not from a screen device</dd>" + NL + "<dd><code>" + 137 "</code> is not from a screen device</dd>" + NL + "<dd><code>" +
138 "HeadlessException</code></dd>" + NL + "</dl>"}, 138 "HeadlessException</code></dd>" + NL + "</dl>"},
139 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"strong\">Parameters:" + 139 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:" +
140 "</span></dt>" + NL + "<dd><code>undecorated</code> - <code>true</code>" + 140 "</span></dt>" + NL + "<dd><code>undecorated</code> - <code>true</code>" +
141 " if no decorations are" + NL + " to be enabled;" + NL + 141 " if no decorations are" + NL + " to be enabled;" + NL +
142 " <code>false</code> if decorations are to be enabled." + 142 " <code>false</code> if decorations are to be enabled." +
143 "</dd>" + NL + "<dt><span class=\"strong\">Since:</span></dt>" + NL + "<dd>1.4</dd>" + NL + 143 "</dd>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL + "<dd>1.4</dd>" + NL +
144 "<dt><span class=\"strong\">See Also:</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#readObject--\">" + 144 "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#readObject--\">" +
145 "<code>readObject()</code></a></dd>" + NL + "</dl>"}, 145 "<code>readObject()</code></a></dd>" + NL + "</dl>"},
146 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"strong\">Throws:</span>" + 146 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span>" +
147 "</dt>" + NL + "<dd><code>java.io.IOException</code></dd>" + NL + "<dt>" + 147 "</dt>" + NL + "<dd><code>java.io.IOException</code></dd>" + NL + "<dt>" +
148 "<span class=\"strong\">See Also:</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" + 148 "<span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" +
149 "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, 149 "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
150 {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + "<dt><span class=\"strong\">Throws:</span>" + 150 {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span>" +
151 "</dt>" + NL + "<dd><code>" + 151 "</dt>" + NL + "<dd><code>" +
152 "java.io.IOException</code></dd>" + NL + "<dt><span class=\"strong\">See Also:</span>" + 152 "java.io.IOException</code></dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" +
153 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + 153 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
154 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, 154 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
155 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">Deprecated.</span>" + 155 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
156 "&nbsp;<span class=\"italic\">As of JDK version 1.5, replaced by" + NL + 156 "&nbsp;<span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL +
157 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + 157 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
158 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + 158 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL +
159 "<div class=\"block\">This field indicates whether the C1 is " + 159 "<div class=\"block\">This field indicates whether the C1 is " +
160 "undecorated.</div>" + NL + "&nbsp;" + NL + "<dl>" + NL + "<dt><span class=\"strong\">Since:</span></dt>" + NL + 160 "undecorated.</div>" + NL + "&nbsp;" + NL + "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
161 "<dd>1.4</dd>" + NL + "<dt><span class=\"strong\">See Also:</span>" + 161 "<dd>1.4</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" +
162 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + 162 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
163 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, 163 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
164 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">Deprecated.</span>" + 164 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
165 "&nbsp;<span class=\"italic\">As of JDK version 1.5, replaced by" + NL + 165 "&nbsp;<span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL +
166 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + 166 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
167 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + 167 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL +
168 "<div class=\"block\">Reads the object stream.</div>" + NL + 168 "<div class=\"block\">Reads the object stream.</div>" + NL +
169 "<dl>" + NL + "<dt><span class=\"strong\">Throws:" + 169 "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:" +
170 "</span></dt>" + NL + "<dd><code><code>" + 170 "</span></dt>" + NL + "<dd><code><code>" +
171 "IOException</code></code></dd>" + NL + 171 "IOException</code></code></dd>" + NL +
172 "<dd><code>java.io.IOException</code></dd>" + NL + "</dl>"}, 172 "<dd><code>java.io.IOException</code></dd>" + NL + "</dl>"},
173 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">Deprecated.</span>" + 173 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
174 "&nbsp;</div>" + NL + "<div class=\"block\">" + 174 "&nbsp;</div>" + NL + "<div class=\"block\">" +
175 "The name for this class.</div>"}}; 175 "The name for this class.</div>"}};
176 176
177 // Test with -nocomment and -nodeprecated options. The ClassDocs whould 177 // Test with -nocomment and -nodeprecated options. The ClassDocs whould
178 // not display definition lists for any member details. 178 // not display definition lists for any member details.
184 {BUG_ID + FS + "pkg1" + FS + "C1.ModalExclusionType.html", "<pre>public " + 184 {BUG_ID + FS + "pkg1" + FS + "C1.ModalExclusionType.html", "<pre>public " +
185 "static final&nbsp;<a href=\"../pkg1/C1.ModalExclusionType.html\" " + 185 "static final&nbsp;<a href=\"../pkg1/C1.ModalExclusionType.html\" " +
186 "title=\"enum in pkg1\">C1.ModalExclusionType</a> " + 186 "title=\"enum in pkg1\">C1.ModalExclusionType</a> " +
187 "APPLICATION_EXCLUDE</pre>" + NL + "</li>"}, 187 "APPLICATION_EXCLUDE</pre>" + NL + "</li>"},
188 {BUG_ID + FS + "serialized-form.html", "<pre>boolean " + 188 {BUG_ID + FS + "serialized-form.html", "<pre>boolean " +
189 "undecorated</pre>" + NL + "<div class=\"block\"><span class=\"strong\">" + 189 "undecorated</pre>" + NL + "<div class=\"block\"><span class=\"deprecatedLabel\">" +
190 "Deprecated.</span>&nbsp;<span class=\"italic\">As of JDK version 1.5, replaced by" + NL + 190 "Deprecated.</span>&nbsp;<span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL +
191 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\"><code>" + 191 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\"><code>" +
192 "setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"}, 192 "setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"},
193 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">" + 193 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">" +
194 "Deprecated.</span>&nbsp;<span class=\"italic\">As of JDK version" + 194 "Deprecated.</span>&nbsp;<span class=\"deprecationComment\">As of JDK version" +
195 " 1.5, replaced by" + NL + 195 " 1.5, replaced by" + NL +
196 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + 196 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
197 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"}}; 197 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"}};
198 198
199 // Test for valid HTML generation which should not comprise of empty 199 // Test for valid HTML generation which should not comprise of empty

mercurial