test/tools/doclint/HtmlTagsTest.java

changeset 0
959103a6100f
child 2525
2eb010b6cb22
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/doclint/HtmlTagsTest.java	Wed Apr 27 01:34:52 2016 +0800
     1.3 @@ -0,0 +1,70 @@
     1.4 +/*
     1.5 + * @test /nodynamiccopyright/
     1.6 + * @bug 8004832
     1.7 + * @summary Add new doclint package
     1.8 + * @build DocLintTester
     1.9 + * @run main DocLintTester -Xmsgs:-html HtmlTagsTest.java
    1.10 + * @run main DocLintTester -ref HtmlTagsTest.out HtmlTagsTest.java
    1.11 + */
    1.12 +
    1.13 +/** */
    1.14 +public class HtmlTagsTest {
    1.15 +    /**
    1.16 +     * <xyz> ... </xyz>
    1.17 +     */
    1.18 +    public void unknownTag1() { }
    1.19 +
    1.20 +    /**
    1.21 +     * <div> <xyz> </div>
    1.22 +     */
    1.23 +    public void unknownTag2() { }
    1.24 +
    1.25 +    /**
    1.26 +     * <br/>
    1.27 +     */
    1.28 +    public void selfClosingTag() { }
    1.29 +
    1.30 +    /**
    1.31 +     * <html>
    1.32 +     */
    1.33 +    public void not_allowed() { }
    1.34 +
    1.35 +    /**
    1.36 +     * <span> <p> </span>
    1.37 +     */
    1.38 +    public void not_allowed_inline() { }
    1.39 +
    1.40 +    /**
    1.41 +     * {@link java.lang.String <p> }
    1.42 +     * {@link java.lang.String <p> }
    1.43 +     */
    1.44 +    public void not_allowed_inline_2() { }
    1.45 +
    1.46 +    /**
    1.47 +     * <img src="any.jpg" alt="alt"> </img>
    1.48 +     */
    1.49 +    public void end_not_allowed() { }
    1.50 +
    1.51 +    /**
    1.52 +     * <i> <b> </i>
    1.53 +     */
    1.54 +    public void start_not_matched() { }
    1.55 +
    1.56 +    /**
    1.57 +     * <i> </b> </i>
    1.58 +     */
    1.59 +    public void end_unexpected() { }
    1.60 +
    1.61 +    /**
    1.62 +     * <ul> text <li> ... </li> </ul>
    1.63 +     */
    1.64 +    public void text_not_allowed() { }
    1.65 +
    1.66 +    /**
    1.67 +     * <ul> <b>text</b> <li> ... </li> </ul>
    1.68 +     */
    1.69 +    public void inline_not_allowed() { }
    1.70 +
    1.71 +
    1.72 +}
    1.73 +

mercurial