test/tools/doclint/HtmlTagsTest.java

changeset 0
959103a6100f
child 2525
2eb010b6cb22
equal deleted inserted replaced
-1:000000000000 0:959103a6100f
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 8004832
4 * @summary Add new doclint package
5 * @build DocLintTester
6 * @run main DocLintTester -Xmsgs:-html HtmlTagsTest.java
7 * @run main DocLintTester -ref HtmlTagsTest.out HtmlTagsTest.java
8 */
9
10 /** */
11 public class HtmlTagsTest {
12 /**
13 * <xyz> ... </xyz>
14 */
15 public void unknownTag1() { }
16
17 /**
18 * <div> <xyz> </div>
19 */
20 public void unknownTag2() { }
21
22 /**
23 * <br/>
24 */
25 public void selfClosingTag() { }
26
27 /**
28 * <html>
29 */
30 public void not_allowed() { }
31
32 /**
33 * <span> <p> </span>
34 */
35 public void not_allowed_inline() { }
36
37 /**
38 * {@link java.lang.String <p> }
39 * {@link java.lang.String <p> }
40 */
41 public void not_allowed_inline_2() { }
42
43 /**
44 * <img src="any.jpg" alt="alt"> </img>
45 */
46 public void end_not_allowed() { }
47
48 /**
49 * <i> <b> </i>
50 */
51 public void start_not_matched() { }
52
53 /**
54 * <i> </b> </i>
55 */
56 public void end_unexpected() { }
57
58 /**
59 * <ul> text <li> ... </li> </ul>
60 */
61 public void text_not_allowed() { }
62
63 /**
64 * <ul> <b>text</b> <li> ... </li> </ul>
65 */
66 public void inline_not_allowed() { }
67
68
69 }
70

mercurial