/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6786690 6820360
* @summary This test verifies the nesting of definition list tags.
* @author Bhavesh Patel
* @library ../lib/
* @build JavadocTester TestHtmlDefinitionListTag
* @run main TestHtmlDefinitionListTag
*/
// Test common to all runs of javadoc. The class signature should print
// properly enclosed definition list tags and the Annotation Type
// Optional Element should print properly nested definition list tags
// for default value.
"<span class=\"strong\">C1</span>" + NL +
"</dl>"}};
// Test for normal run of javadoc in which various ClassDocs and
// serialized form should have properly nested definition list tags
// enclosing comments, tags and deprecated information.
"<dt><span class=\"strong\">Since:</span></dt>" + NL +
" <dd>JDK1.0</dd></dl>"},
"Serialized Form</a></dd></dl>"},
" <dd>1.4</dd>" + NL +
"<dt><span class=\"strong\">See Also:</span></dt><dd>" +
"<code>setUndecorated(boolean)</code></a></dd></dl>"},
{BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl><dt><span class=\"strong\">Parameters:</span></dt><dd><code>title" +
"</code> - the title</dd><dd><code>test</code> - boolean value" +
"<dd><code>java.lang.IllegalArgumentException</code> - if the " +
"<code>owner</code>'s" + NL +
" <code>GraphicsConfiguration</code> is not from a screen " +
{BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl><dt><span class=\"strong\">Parameters:</span></dt><dd><code>undecorated" +
"</code> - <code>true</code> if no decorations are" + NL +
"if decorations are to be enabled.</dd><dt><span class=\"strong\">Since:" +
"<dt><span class=\"strong\">See Also:</span></dt><dd>" +
"</code></a></dd></dl>"},
"<dd><code>java.io.IOException</code></dd><dt><span class=\"strong\">See Also:" +
"<code>setUndecorated(boolean)</code></a></dd></dl>"},
"</span></dt><dd><code>set</code> - boolean</dd><dt><span class=\"strong\">" +
"java.io.IOException</code></dd><dt><span class=\"strong\">See Also:</span>" +
"<code>C1.setUndecorated(boolean)</code></a></dd></dl>"},
" <i>As of JDK version 1.5, replaced by" + NL +
"<code>setUndecorated(boolean)</code></a>.</i></div>" + NL +
"<div class=\"block\">This field indicates whether the C1 is " +
"undecorated.</div>" + NL + " " + NL + "<dl><dt><span class=\"strong\">Since:</span></dt>" + NL +
"<code>C1.setUndecorated(boolean)</code></a></dd></dl>"},
" <i>As of JDK version 1.5, replaced by" + NL +
"<code>setUndecorated(boolean)</code></a>.</i></div>" + NL +
"<div class=\"block\">Reads the object stream.</div>" + NL +
"<dl><dt><span class=\"strong\">Throws:" +
"IOException</code></code></dd>" + NL +
"<dd><code>java.io.IOException</code></dd></dl>"},
" </div>" + NL +
"<div class=\"block\">The name for this class.</div>"}};
// Test with -nodeprecated option. The ClassDocs should have properly nested
// definition list tags enclosing comments and tags. The ClassDocs should not
// display definition list for deprecated information. The serialized form
// should display properly nested definition list tags for comments, tags
// and deprecated information.
"<dt><span class=\"strong\">Since:</span></dt>" + NL +
" <dd>JDK1.0</dd></dl>"},
"Serialized Form</a></dd></dl>"},
"</span></dt><dd><code>title</code> - the title</dd><dd><code>" +
"HeadlessException</code></dd></dl>"},
"</span></dt><dd><code>undecorated</code> - <code>true</code>" +
" <code>false</code> if decorations are to be enabled." +
"<code>readObject()</code></a></dd></dl>"},
"<span class=\"strong\">See Also:</span></dt><dd><a href=\"../pkg1/C1.html#setUndecorated(boolean)\">" +
"<code>setUndecorated(boolean)</code></a></dd></dl>"},
"java.io.IOException</code></dd><dt><span class=\"strong\">See Also:</span>" +
"<code>C1.setUndecorated(boolean)</code></a></dd></dl>"},
" <i>As of JDK version 1.5, replaced by" + NL +
"<code>setUndecorated(boolean)</code></a>.</i></div>" + NL +
"<div class=\"block\">This field indicates whether the C1 is " +
"undecorated.</div>" + NL + " " + NL + "<dl><dt><span class=\"strong\">Since:</span></dt>" + NL +
"<code>C1.setUndecorated(boolean)</code></a></dd></dl>"},
" <i>As of JDK version 1.5, replaced by" + NL +
"<code>setUndecorated(boolean)</code></a>.</i></div>" + NL +
"<div class=\"block\">Reads the object stream.</div>" + NL +
"<dl><dt><span class=\"strong\">Throws:" +
"IOException</code></code></dd>" + NL +
"<dd><code>java.io.IOException</code></dd></dl>"},
"The name for this class.</div>"}};
// Test with -nocomment and -nodeprecated options. The ClassDocs whould
// not display definition lists for any member details.
"</li>"},
"static final <a href=\"../pkg1/C1.ModalExclusionType.html\" " +
"title=\"enum in pkg1\">C1.ModalExclusionType</a> " +
"Deprecated.</span> <i>As of JDK version 1.5, replaced by" + NL +
"Deprecated.</span> <i>As of JDK version" +
" 1.5, replaced by" + NL +
// Test for valid HTML generation which should not comprise of empty
// definition list tags.
new String[] {
new String[] {
new String[] {
new String[] {
/**
* The entry point of the test.
* @param args the array of command line arguments.
*/
tester.exactNewlineMatch = false;
}
/**
* {@inheritDoc}
*/
return BUG_ID;
}
/**
* {@inheritDoc}
*/
}
}