40 |
40 |
41 // Test for normal run of javadoc. The serialized-form.html should |
41 // Test for normal run of javadoc. The serialized-form.html should |
42 // display the inline comments, tags and deprecation information if any. |
42 // display the inline comments, tags and deprecation information if any. |
43 private static final String[][] TEST_CMNT_DEPR = { |
43 private static final String[][] TEST_CMNT_DEPR = { |
44 {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + |
44 {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + |
45 "<dt><span class=\"strong\">Throws:</span></dt>" + NL + "<dd><code>" + |
45 "<dt><span class=\"throwsLabel\">Throws:</span></dt>" + NL + "<dd><code>" + |
46 "java.io.IOException</code></dd>"+ NL + "<dt><span class=\"strong\">See Also:</span>" + |
46 "java.io.IOException</code></dd>"+ NL + "<dt><span class=\"seeLabel\">See Also:</span>" + |
47 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
47 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
48 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
48 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
49 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">Deprecated.</span>" + |
49 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" + |
50 " <span class=\"italic\">As of JDK version 1.5, replaced by" + NL + |
50 " <span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL + |
51 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
51 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
52 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + |
52 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + |
53 "<div class=\"block\">This field indicates whether the C1 " + |
53 "<div class=\"block\">This field indicates whether the C1 " + |
54 "is undecorated.</div>" + NL + " " + NL + |
54 "is undecorated.</div>" + NL + " " + NL + |
55 "<dl>" + NL + "<dt><span class=\"strong\">Since:</span></dt>" + NL + |
55 "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL + |
56 "<dd>1.4</dd>" + NL + "<dt><span class=\"strong\">See Also:</span>" + |
56 "<dd>1.4</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" + |
57 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
57 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
58 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
58 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"}, |
59 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">Deprecated.</span>" + |
59 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" + |
60 " <span class=\"italic\">As of JDK version 1.5, replaced by" + NL + |
60 " <span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL + |
61 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
61 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
62 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + |
62 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + |
63 "<div class=\"block\">Reads the object stream.</div>" + NL + |
63 "<div class=\"block\">Reads the object stream.</div>" + NL + |
64 "<dl>" + NL + "<dt><span class=\"strong\">Throws:</span></dt>" + NL + "<dd><code><code>" + |
64 "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span></dt>" + NL + "<dd><code><code>" + |
65 "IOException</code></code></dd>" + NL + |
65 "IOException</code></code></dd>" + NL + |
66 "<dd><code>java.io.IOException</code></dd>" + NL + "</dl>"}, |
66 "<dd><code>java.io.IOException</code></dd>" + NL + "</dl>"}, |
67 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">Deprecated.</span>" + |
67 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" + |
68 " </div>" + NL + "<div class=\"block\">" + |
68 " </div>" + NL + "<div class=\"block\">" + |
69 "The name for this class.</div>"}}; |
69 "The name for this class.</div>"}}; |
70 |
70 |
71 // Test with -nocomment option. The serialized-form.html should |
71 // Test with -nocomment option. The serialized-form.html should |
72 // not display the inline comments and tags but should display deprecation |
72 // not display the inline comments and tags but should display deprecation |
73 // information if any. |
73 // information if any. |
74 private static final String[][] TEST_NOCMNT = { |
74 private static final String[][] TEST_NOCMNT = { |
75 {BUG_ID + FS + "serialized-form.html", "<pre>boolean undecorated</pre>" + NL + |
75 {BUG_ID + FS + "serialized-form.html", "<pre>boolean undecorated</pre>" + NL + |
76 "<div class=\"block\"><span class=\"strong\">Deprecated.</span> <span class=\"italic\">" + |
76 "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span> <span class=\"deprecationComment\">" + |
77 "As of JDK version 1.5, replaced by" + NL + |
77 "As of JDK version 1.5, replaced by" + NL + |
78 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\"><code>" + |
78 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\"><code>" + |
79 "setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"}, |
79 "setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"}, |
80 {BUG_ID + FS + "serialized-form.html", "<span class=\"strong\">" + |
80 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">" + |
81 "Deprecated.</span> <span class=\"italic\">As of JDK version" + |
81 "Deprecated.</span> <span class=\"deprecationComment\">As of JDK version" + |
82 " 1.5, replaced by" + NL + |
82 " 1.5, replaced by" + NL + |
83 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
83 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" + |
84 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"}}; |
84 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"}}; |
85 |
85 |
86 // Test with -nodeprecated option. The serialized-form.html should |
86 // Test with -nodeprecated option. The serialized-form.html should |