author | jjg |
Mon, 21 Jan 2013 10:07:37 -0800 | |
changeset 15371 | 8f719dc43e1f |
parent 14962 | 19ffdfafbcd2 |
child 30730 | d3ce7619db2c |
permissions | -rw-r--r-- |
14952 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
14962 | 3 |
* @bug 8004832 |
4 |
* @summary Add new doclint package |
|
14952 | 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() { } |
|
15371
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
57 |
|
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
58 |
/** |
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
59 |
* <ul> text <li> ... </li> </ul> |
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
60 |
*/ |
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
61 |
public void text_not_allowed() { } |
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
62 |
|
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
63 |
/** |
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
64 |
* <ul> <b>text</b> <li> ... </li> </ul> |
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
65 |
*/ |
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
66 |
public void inline_not_allowed() { } |
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
67 |
|
8f719dc43e1f
8006251: doclint: incorrect position for diagnostic for illegal text in tags
jjg
parents:
14962
diff
changeset
|
68 |
|
14952 | 69 |
} |
70 |